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

This service hosts every catalogue model on its own compute. Your requests are never sent to external model providers; OpenAI and Anthropic name the compatible API formats only.
  • 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-it or qwen/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 the model field 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>/v1

All 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):

DialectPath prefixAuth headerError envelope
OpenAI/v1/* (except /v1/messages)Authorization: Bearer <key>OpenAI-shaped, with request_id
Anthropic/v1/messagesx-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

CapabilityBehaviour
ResidencyRequests run within the project's region scope or are refused.
FailoverIf 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.
MeteringUsage is read from the provider's own usage report — never estimated — and priced per model at nano-USD precision.
Prepaid creditsA reservation is held against your credit balance before the provider runs, so concurrent requests cannot overspend a small balance.
Provider credential safetyProvider-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

We use strictly necessary cookies to record your choice and run this site. We do not use cookies for advertising or tracking. See the Cookie Policy.