Developer docs
Quickstart
Install the Trace Python SDK, sign in, and make your first model call.
Authentication
API keys, the device login flow, and the child-protection pipeline every request runs.
Chat completions
client.chat.completions.create — every option, and everything the completion carries.
Streaming
Reading an approved reply in OpenAI-compatible chunks with stream=True.
Tool calling
Letting a model call your own Python functions, and returning the results to it.
Embeddings
Turning text into vectors with client.embeddings.create.
Models and pricing
The approved roster, capability flags, and reservation estimates for each model.
Credits and limits
How Trace charges for a request, what the ledger records, and every limit the gateway enforces.
Errors
Every exception trace_sdk raises, what causes it, and how to recover.
CLI reference
Every trace command, its options, and its exit codes.
Changelog
Released versions of the Trace Python SDK and gateway, newest first.