When passthrough applies
A request resolves to passthrough when the model it names does not match any function or route. to11 looks up which connected provider serves that model and forwards the request to that provider. If no connected provider serves the model either, the gateway returns a404 (unknown model).
How a customer uses passthrough
You reach passthrough in two ways:- Bring-your-own-key (BYOK) credential mode — a dashboard setting. When you connect a provider in the Project → AI Gateway → Providers connect-provider drawer, you can choose a passthrough (BYOK) credential mode for it. In that mode the caller’s own provider key is used to reach the upstream API. See Connecting a provider.
- The
provider::modelprefix — set per request, not in the dashboard. Putting this prefix in the request’smodelfield forces a direct proxy to a named provider, bypassing any route or function configured for that model:
gpt-4o, the prefix sends the request through passthrough to the openai provider.
Which credential is used
A passthrough request can be served by a managed credential or by the caller’s own provider key. The precedence default is managed-credential-wins: if a stored credential resolves for the request, the gateway uses it. The caller’s own key — supplied in theAuthorization header (or x-api-key for providers that use it) — is used when no managed credential resolves.
Two different keys travel on two different headers.
x-to11-authorization: Bearer <to11 key> carries your to11 credential and authenticates the request to the gateway. Authorization: Bearer <provider key> (or x-api-key) carries an upstream provider key when you bring your own. Never put the to11 key in Authorization.Coexistence with managed routing
Passthrough and managed routing live side by side in the same project. A model with a matching route or function uses managed routing; every other model falls through to passthrough. You do not configure passthrough explicitly — it is the behavior for any model that no route or function claims. To confirm whether a given request went through passthrough or a managed route, open Projects → Traces in Observe. Passthrough requests are recorded with a passthrough routing path; managed requests record the resolved route, strategy, and target.Next steps
Direct routing
Route a model to a single managed target.
Providers
Connect a provider and choose its credential mode.
Routing overview
The three-layer model and top-down resolution.