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
Metadata
Release files for talocode-tera 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| talocode_tera-0.1.1.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| talocode_tera-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / talocode_tera-0.1.1.tar.gz
| Download URL | talocode_tera-0.1.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fad5575da06c5055fa8970015e30d8fa56684a344dbbd96a1ee866bd57071e33
|
|
BLAKE2b-256 checksum How to use checksums |
27b49872031aecb60c4f2f909fc352c23f943f92492a4de4794dc9d2f06159f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / talocode_tera-0.1.1-py3-none-any.whl
| Download URL | talocode_tera-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0228a11b7c28df5fb954c8aee9fc2467693efb10ea40e3c05d6d0415fe94c1f1
|
|
BLAKE2b-256 checksum How to use checksums |
d201f2bd93961232a7833c6999726257bc3eb1a2bfc18cded5faf5363ab3c8aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|