Models
List Models
GET
Returns the list of models available through the gateway.
Default behavior (no
Default catalog path (Anthropic shape, when
X-Toolken-Provider): responds with our own catalog of all supported models. The response is OpenAI-compatible by default. If your request includes an Anthropic hint header (anthropic-version or anthropic-beta), the same catalog is returned in Anthropic-compatible format instead. Only X-Toolken-Key is required — no provider key needed.
With X-Toolken-Provider: <slug>: passes the request through to that provider’s live model list endpoint. This path requires both X-Toolken-Key and your provider BYOK auth header.
Headers
Your Toolken API key. Validated by the gateway and stripped before forwarding.
Pin to a specific provider (e.g.
openai, anthropic, gemini, mistral). When set, the gateway passes the request through to that provider’s live model list. Omit to use our catalog instead.Your provider key in Bearer format (BYOK), e.g.
Bearer sk-.... Required only for the provider-passthrough path (X-Toolken-Provider set). Forwarded untouched, never stored.Anthropic API key. Used instead of
Authorization when routing to Anthropic. Required only for the provider-passthrough path with X-Toolken-Provider: anthropic.If included, the catalog response is returned in Anthropic-compatible format (no
X-Toolken-Provider needed). Forwarded to the provider on passthrough paths.Same as
anthropic-version — triggers Anthropic-shaped response for the default catalog path.Response
Default catalog path (OpenAI shape)
Always
list.Array of model objects. Each has
id (model name), object (model), created (Unix timestamp), and owned_by (provider slug).Default catalog path (Anthropic shape, when anthropic-version / anthropic-beta is present)
Array of model objects in Anthropic format.
Always
false — our catalog is returned in full.ID of the first model in the list.
ID of the last model in the list.