Skip to main content

Tera

AI capabilities API — chat completions, writing (rewrite / draft), and coding (explain / review / write).

Part of Talocode. Hosted at /v1/tera/* on the Talocode Cloud base URL.

Package pip install talocode-tera
Import from tera import TeraClient
Cloud API https://api.talocode.site/v1/tera/*
Auth TALOCODE_API_KEY
npm @talocode/tera / product also via Tera hosts
Repo github.com/talocode/tera
License MIT

Why Tera?

Builders need a small set of high-value AI actions with clear credit prices—not a raw model reseller dump.

Capability Credits (typical) Use when
Chat completions 3 General assistant / tool loops
Writing rewrite 5 Tone / style polish
Writing draft 10 New content from a brief
Coding explain 10 Teach / document code
Coding review 20 Bugs, style, security focus
Coding write 20 Implement a task (+ optional tests)

Open clients; hosted inference is metered on Talocode Cloud.


Install

pip install -U talocode-tera

Python 3.10+, stdlib only.


Quickstart

import os
from tera import TeraClient

client = TeraClient(api_key=os.environ["TALOCODE_API_KEY"])
# TALOCODE_BASE_URL defaults to https://api.talocode.site

# Health / pricing / capabilities
print(client.health())
print(client.pricing())
print(client.capabilities())

# Chat
chat = client.chat_completions(
    messages=[{"role": "user", "content": "What is Talocode?"}],
    model=None,  # host default
    max_tokens=512,
    temperature=0.3,
)

# Writing
rewritten = client.writing_rewrite(
    "hey team ship is delayed",
    style="professional",
    tone="neutral",
)
draft = client.writing_draft(
    type="email",
    brief="Announce SearchLane launch to early users",
    audience="developers",
)

# Coding
explain = client.coding_explain("python", "print('hello')", level="beginner")
review = client.coding_review("typescript", "const x: any = 1;", focus=["types", "bugs"])
write = client.coding_write(
    "python",
    task="Parse ISO dates safely",
    style="production-ready",
    generate_tests=True,
)

Environment

Variable Default
TALOCODE_API_KEY
TALOCODE_BASE_URL https://api.talocode.site

HTTP routes

Method Path Credits
GET /v1/tera/health
GET /v1/tera/pricing
GET /v1/tera/capabilities
POST /v1/tera/chat/completions 3
POST /v1/tera/writing/rewrite 5
POST /v1/tera/writing/draft 10
POST /v1/tera/coding/explain 10
POST /v1/tera/coding/review 20
POST /v1/tera/coding/write 20

Auth: Authorization: Bearer $TALOCODE_API_KEY.


CLI

export TALOCODE_API_KEY=...

tera health
tera capabilities
tera chat --message "What is Python?"
tera rewrite --text "Hello world"
tera draft --type email --brief "Follow up with a customer"
tera explain --language python --code "print('hello')"
tera review --language typescript --code "const x = 1"

Client API

from tera import TeraClient, TeraError, create_tera_client

client = TeraClient(api_key=None, base_url=None)
client.health()
client.pricing()
client.capabilities()
client.chat_completions(messages, model=None, max_tokens=None, temperature=None)
client.writing_rewrite(text, style="professional", tone="neutral", max_length=None)
client.writing_draft(type, brief, audience="general", tone="neutral", max_length=None)
client.coding_explain(language, code, level="intermediate", focus=None)
client.coding_review(language, code, focus=None, strictness="normal")
client.coding_write(language, task, context=None, style="production-ready", generate_tests=False)

TeraError is raised on API failures.


Related packages

Package Role
talocode Unified cloud client (all products)
talocode-tera This package
talocode-codra Repo summary / plan / review agent API
talocode-searchlane Web search & research

Talocode ecosystem

Project Role
Tera AI capability API (this package)
StackLane Cloud control plane and credits
Codra Coding agent workflows
SearchLane Agent search and research
GateLane Policy and access controls
ContextLane Context management
ScreenLane Screen understanding
MemoryLane Agent memory
Tradia Trading workflows
DevTool Developer automation
XProLane Social workflow setup
Agent Browser Browser automation
InvoiceLane Invoice workflows
GeoLane Geospatial workflows
ClipLoop Video clipping workflows

More: github.com/talocode · talocode.site · docs.talocode.site

License

MIT © Talocode

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talocode_tera-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talocode_tera-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file talocode_tera-0.1.1.tar.gz.

File metadata

  • Download URL: talocode_tera-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for talocode_tera-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fad5575da06c5055fa8970015e30d8fa56684a344dbbd96a1ee866bd57071e33
MD5 c4cb3c2c866c0377f04d00bde8fa0f9d
BLAKE2b-256 27b49872031aecb60c4f2f909fc352c23f943f92492a4de4794dc9d2f06159f7

See more details on using hashes here.

File details

Details for the file talocode_tera-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: talocode_tera-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for talocode_tera-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0228a11b7c28df5fb954c8aee9fc2467693efb10ea40e3c05d6d0415fe94c1f1
MD5 ffc6193e4d59e00bebb0a31642e25a53
BLAKE2b-256 d201f2bd93961232a7833c6999726257bc3eb1a2bfc18cded5faf5363ab3c8aa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page