Capabilities and routes
Last updated: 2026-11-25T02:26:16-03:00 (UTC-3)
A capability is something a model (alias) can do: chat, generate an image, transcribe audio. You declare the capabilities of each alias, and the gateway accepts a request only if the alias declares that route’s capability. That way, nobody calls /v1/images/generations on a text model by mistake and gets an obscure error from the provider: the gateway responds 422 capability_unsupported before any call.
Routes and capabilities
Section titled “Routes and capabilities”| Capability | Route | Format | Body limit | Flag |
|---|---|---|---|---|
chat |
/v1/chat/completions |
Chat Completions, with streaming | 1 MiB | chat_completions |
responses |
/v1/responses |
OpenAI Responses, with streaming | 8 MiB | openai_responses |
messages |
/v1/messages |
Anthropic Messages, with streaming | 8 MiB | anthropic_messages |
generate_content |
/v1beta/models/{alias}:generateContent and :streamGenerateContent |
Native Gemini | 8 MiB | gemini_generate_content |
embeddings |
/v1/embeddings |
JSON | 8 MiB | embeddings |
images |
/v1/images/generations |
JSON | 8 MiB | image_generation |
image_edits |
/v1/images/edits |
JSON or multipart with image/image[] files; see image generation and edits |
8 MiB | image_generation |
audio_speech |
/v1/audio/speech; GET /v1/audio/voices lists voices (speech_voices) |
JSON; audio response, streamed as it arrives (speech) | 8 MiB | audio_speech |
audio_transcriptions |
/v1/audio/transcriptions |
multipart with file |
8 MiB | audio_transcriptions |
moderations |
/v1/moderations |
JSON | 8 MiB | moderations |
rerank |
/v1/rerank |
JSON | 8 MiB | rerank |
video |
/v1/videos/generations |
JSON | 8 MiB | video_generation |
decisions |
/v1/decisions |
OpenAI Decisions | 8 MiB | openai_decisions |
systemone |
/v1/systemone |
System One (TypeSafe, Cloudflare, vLLM Semantic Router) | 8 MiB | systemone_decisions |
gemini_decisions |
/v1beta/decisions |
Gemini Decisions (gemini-decision-1); see decisions |
8 MiB | gemini_decisions |
interactions |
/v1beta/interactions and /v1/interactions |
Gemini Interactions, native on the Gemini API only, alone on the alias; see file inputs | 8 MiB | gemini_interactions |
The body limits are the built-in defaults; network.max_request_body_mib changes them for every route and models[].max_request_body_mib for one alias (1 to 64 MiB). See request body limits.
Every route requires a key with the route’s scope (route:chat, route:embeddings…) and the alias on the key’s allowlist. An alias without capabilities serves only chat.
Declaring capabilities on an alias
Section titled “Declaring capabilities on an alias”models: - id: assistant capabilities: [chat, responses] targets: [{provider: openai, model: gpt-4.1-mini}] - id: rerank-default capabilities: [rerank] targets: - provider: my-reranker model: bge-reranker paths: {rerank: /rerank} # routes without an OpenAI convention need the pathFor video and rerank, which have no standard path in the OpenAI format, the target declares the provider’s path in paths.
Moderation has its own page with requests, the response fields and the errors: Moderation.
What is translated
Section titled “What is translated”The gateway swaps the model for the provider’s name and passes the rest through. When the provider does not speak the route’s format, the protocol adapter translates the request and the response. Anything without an equivalent is refused with 422 before the call, never silently ignored.
The four text routes (Chat Completions, Responses, Messages and GenerateContent) reach every text provider through one canonical format: see protocol translation.
| Protocol | Translated capabilities |
|---|---|
openai |
native chat and responses; chat on the Responses API and responses on Chat Completions with the target’s api (auto picks per request); messages and generate_content |
anthropic |
chat, responses and generate_content, and native messages |
gemini |
chat, messages, responses, native generate_content, embeddings (Vertex AI), audio_speech on the Gemini API (speech_gemini), and native interactions on the Gemini API (gemini_interactions). File parts and their slices reach it on every one of these routes (file inputs) |
bedrock |
chat, messages, responses and generate_content (Converse), and embeddings |
cohere |
chat, messages, responses and generate_content, embeddings, and rerank (Cohere v2) |
sagemaker |
chat |
oci |
chat |
elevenlabs |
audio_speech |
polly |
audio_speech (speech_polly) |
azure_speech |
audio_speech (speech_azure) |
deepgram |
audio_transcriptions |
stability, replicate, fal, bfl |
images |
runway |
video, as an asynchronous job |
What each translation covers and refuses is in providers.
Native APIs
Section titled “Native APIs”For SDKs that expect a provider’s original format, the gateway serves the native routes without translating when every target of the alias speaks that format: it swaps only the model and the credential. An alias with another provider among its targets is translated instead (protocol translation).
OpenAI Responses
Section titled “OpenAI Responses”features: {openai_responses: true}models: - id: assistant capabilities: [responses] targets: [{provider: openai, model: gpt-4.1-mini}]Tools, stream events, and usage pass through as received. Without the responses_lifecycle flag, previous_response_id and conversation require a single-target alias, and background: true is refused. With it, response IDs are signed by the gateway and unlock:
- retrieval and cancellation;
- background mode;
- continuation on aliases with several targets.
With responses_lifecycle on, a raw provider ID in previous_response_id still passes to the provider in single-tenant mode. With organization admins on as well, it answers 404 response_not_found before the provider, on /v1/responses and /v1/responses/input_tokens: every organization’s responses live in the same provider account, so only the key’s own signed IDs continue a response. A provider whose answers lack "object": "response" gets no signed IDs, so its responses cannot be continued in that mode. In multi-tenant mode, a request naming stored state the gateway cannot attribute answers 422 provider_state_not_isolated with the setting that fixes it: a raw previous_response_id without responses_lifecycle, a raw conversation without conversations, a container ID without containers, an item reference input or a reasoning item by ID without encrypted_content, a provider file the request reads (input_file/input_image file_id; a Chat Completions file part’s file_id), and, on /v1/messages, a container ID (omit it and the provider creates a new container), a file source or a container_upload, and, on Gemini GenerateContent, a cachedContent or a fileData.fileUri (contents, system instruction or function response parts). File IDs in replayed output (citations, annotations, code-execution results) are not refused.
Responses is never retried automatically, because it may have executed tools.
Anthropic Messages
Section titled “Anthropic Messages”An alias with capabilities: [messages] on an anthropic provider serves /v1/messages in the native format, with the connection’s anthropic-version and the gateway’s credential. This is the path for Claude Code (providers). An Anthropic alias serves one capability: messages (native), or chat, responses or generate_content (translated).
Gemini GenerateContent
Section titled “Gemini GenerateContent”An alias with capabilities: [generate_content] on a gemini provider serves /v1beta/models/{alias}:generateContent and :streamGenerateContent?alt=sse in the native format. The provider key goes only in the x-goog-api-key header. The alias is part of the path, so it uses only letters, digits, dots, dashes and underscores, on any provider.
Conversations
Section titled “Conversations”With the conversations flag, the gateway serves OpenAI’s Conversations API and the Responses conversation parameter, even on aliases with several targets.
- Gateway IDs: every conversation comes back as
conv_gw1.…, a signed ID that carries the provider and the owner, which is the key’s team. An ID from another team, tampered with, or raw returns 404 without calling the provider. The signature uses the session key (admin.session_key_env); changing that key makes old conversations unreachable. - Creation:
POST /v1/conversationsacceptsmodelto choose the provider when the key reaches more than one. - Items: new items go through the input guardrails.
conv = client.conversations.create(items=[{"role": "user", "content": "My name is Ana."}], extra_body={"model": "assistant"})client.responses.create(model="assistant", conversation=conv.id, input="What is my name?")Multimodal and limits
Section titled “Multimodal and limits”- Chat with image or audio: the JSON parts pass through as received. The gateway does not fetch URLs or convert media, and the chat body limit (1 MiB unless configured) restricts embedded media.
- Concurrency: inference shares the configured per-instance generation/body admission limits (
network.max_inflight_requests,max_buffered_request_mib), with a default 512 generation slots. Multipart uploads are read into memory. The optional boot flagstream_admissionallows separately bounded detached relays; full relay room keeps the generation slot, so the relay cap is not the total open-stream cap. See network controls. - Fallback: happens on a transport error, 429, or 5xx before the first byte of the response, and when a target cannot express the request in its protocol (skipped without a call). Stateful
responsesrequests are the exception (Responses fallback).
Other API families
Section titled “Other API families”Beyond per-alias capabilities, the gateway also serves:
- Realtime, Files and Batches, and fine-tuning;
- Containers and vector stores;
- OCR;
- A2A agents and MCP tools;
- the public evals API.
See also
Section titled “See also”- Providers: what each adapter covers.
- Protocol translation: any client route to any text provider.
- Decisions: the bridge between OpenAI Decisions and System One.
- Inference flags: the flag for each capability.