Overview

The complete Token Factory inference surface — every endpoint across chat, completions, messages, embeddings, images, audio, rerank, video, and the model catalogue.

The surface at a glance

Every endpoint lives under https://api.<domain>/v1/*. Auth is Authorization: Bearer <key> (or x-api-key on the Anthropic path) — which header, when. The model field in every request must be a curated alias; every response echoes that alias back and carries provider_metadata.

  • Inference OpenAPI specification: YAML · JSON
  • Import by URL (Postman, Insomnia, code generators): /docs/api-reference/openapi.json

Shared behaviour

BehaviourRule
ErrorsOne uniform envelope with request_id on every error — see Errors.
StreamingSSE with a guaranteed final usage chunk; ends with [DONE] — see Streaming.
Rate limitsx-ratelimit-* headers on 200 and 429; honour Retry-After — see Rate Limits.
Funds402 insufficient_funds — never 429, never SDK-retried; top up — see Billing.
Deprecationprovider_metadata.deprecation + X-TF-Deprecation header, then 410 past sunset — lifecycle: Models & Aliases.

Note

Where a page here and the OpenAPI specification above disagree, the specification wins.