Overview
One OpenAI-compatible API for every model in the catalogue, with metering, credits and enforcement before a request runs.
What is the Token Factory Inference API?
One OpenAI-compatible API, on https://api.<domain>/v1/*, for every model in the catalogue.
Catalogue models are served by the backends the operator onboards: open-weight models on the
platform's own compute (vLLM, NVIDIA NIM) and, where the operator adds them, external providers
such as OpenAI and Anthropic. The catalogue in your console shows what your deployment offers.
Note
- SDK compatibility — use the OpenAI SDK or the Anthropic Messages dialect with the same API key.
- Catalogue model IDs — request an available model such as
google/gemma-4-31b-itorqwen/qwen3-embedding-8b. The response echoes your requested model ID. When a model has more than one serving backend, failover can change the backend without changing your code or themodelfield you see back. - Controls before inference — API-key authentication, model and IP allowlists, rate limits and credit checks apply before a request runs, so a denied request never incurs any spend.
- Residency — a request is served within its project's region scope or refused; it is never rerouted to another region.
Base URL
https://api.<domain>/v1All paths in this documentation are relative to the API base URL shown in your console.
Two dialects, one contract
The gateway serves two wire dialects — OpenAI (/v1/*) and Anthropic
(/v1/messages) — over the same keys, models, limits, and ledger (auth
headers: Authentication):
| Dialect | Path prefix | Auth header | Error envelope |
|---|---|---|---|
| OpenAI | /v1/* (except /v1/messages) | Authorization: Bearer <key> | OpenAI-shaped, with request_id |
| Anthropic | /v1/messages | x-api-key: <key> (Bearer also accepted) | Anthropic-shaped, with request_id |
Both dialects observe the same underlying contract: the model you send is
echoed back verbatim, every successful body carries a provider_metadata
object, and every error carries a server-minted request_id. Full
side-by-side and worked examples:
OpenAI & Anthropic Compatibility.
Shared request controls
| Capability | Behaviour |
|---|---|
| Residency | Requests run within the project's region scope or are refused. |
| Failover | If a model's serving backend fails or is degraded, a model with more than one backend routes to the next one; your request shape does not change. See Provider Routing & Failover. |
| Metering | Usage is read from the provider's own usage report — never estimated — and priced per model at nano-USD precision. |
| Prepaid credits | A reservation is held against your credit balance before the provider runs, so concurrent requests cannot overspend a small balance. |
| Provider credential safety | Provider-internal fields are stripped or relocated, and provider credentials are never exposed. If a provider rejects our credential, you get a clean, actionable 502 provider_unavailable instead of a confusing provider auth failure. |
Full OpenAPI spec
A machine-readable OpenAPI 3.1 description of this surface (JSON and YAML) is available to download from the API Reference. Where it and these pages disagree, the contract pages here win.
Next steps
- Make your first call in five minutes: Quickstart
- Get and use an API key: Authentication
- Pick aliases for your workload: Models & Aliases
- Handle failures properly: Errors