Documentation Index
Fetch the complete documentation index at: https://gomodel-docs-providers-restructure.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The passthrough API proxies provider-native requests through GoModel without translating the request or response body. Use it when a client library expects a provider’s native API instead of the OpenAI-compatible API. For example, the Anthropic SDK sends requests to/v1/messages, so you can point it at GoModel’s Anthropic passthrough base URL:
v1 segment and forwards the request upstream
as Anthropic’s native:
How it works
Passthrough routes use this shape:ALLOW_PASSTHROUGH_V1_ALIAS=true, which is the default:
GOMODEL_MASTER_KEY or
managed auth keys are enabled, the client must send a GoModel bearer token:
Authorization and X-Api-Key headers before forwarding
the request, then applies the upstream provider credential configured on the
server. For Anthropic, GoModel uses its configured ANTHROPIC_API_KEY.
Because passthrough is provider-native, the response is also provider-native.
For Anthropic messages, the response uses Anthropic’s message schema, not an
OpenAI chat completion schema.
Anthropic SDK example
Set the Anthropic SDK base URL to GoModel’s Anthropic passthrough route. Use the GoModel token as Anthropic SDK bearer auth.not-needed instead of auth_token or authToken. GoModel strips X-Api-Key
from passthrough requests before forwarding them upstream.
Current limitations
Passthrough is intentionally narrow while the API is in beta.openai,anthropic,openrouter,zai,vllm, anddeepseekare enabled by default.- GoModel does not translate passthrough request bodies or response bodies.
- Provider-native error bodies and status codes are proxied instead of converted into OpenAI-compatible responses.
- Features that depend on OpenAI-compatible request or response shapes may not
apply to passthrough traffic in the same way as
/v1traffic.
Related environment variables
Passthrough routes are enabled by default:ENABLED_PASSTHROUGH_PROVIDERS to the provider types you want to expose.