Overview
Passthrough integrations let you call provider-native API paths and payloads through Bifrost without route-level request/response conversion. When you use passthrough endpoints, the request still flows through Bifrost core logic. You keep Bifrost features such as logging and observability while sending provider-native paths and bodies.Endpoints
/openai_passthroughDefault provider:openai/anthropic_passthroughDefault provider:anthropic/azure_passthroughDefault provider:azure/genai_passthroughDefault provider:gemini(with automatic Vertex detection for clients configured to use Vertex)
How It Works
- Send your request to a passthrough endpoint (OpenAI, Anthropic, Azure, or GenAI passthrough).
- The integration strips the passthrough prefix and forwards the remaining provider-native path/body.
- Bifrost handles provider execution through core inference and plugin pipelines.
- Response status, headers, and body are returned as passthrough output (for both stream and non-stream requests).
Provider Selection Rules
OpenAI Passthrough
- Uses
openaias the default provider.
Anthropic Passthrough
- Uses
anthropicas the default provider.
Azure Passthrough
- Uses
azureas the default provider. - Requires an Azure key with
endpointconfigured.api-versionis injected automatically:- Key config
api_versiontakes priority (consistent with how auth is handled). - Falls back to any
api-versionthe client supplied in the query string.
- Key config
GenAI Passthrough
- Uses
geminiby default. - Automatically switches to
vertexwhen Vertex patterns are detected, such as:- URL path containing
/projects/{PROJECT_ID}/locations/{LOCATION}/ - Request body
modelcontaining a Vertex resource path - OAuth token pattern typically used for Vertex (
Bearer ya29...)
- URL path containing
Usage Examples
OpenAI Passthrough
- Python SDK
- cURL
Anthropic Passthrough
- Python SDK
- cURL
Azure Passthrough
- Azure OpenAI SDK
- OpenAI SDK
- Anthropic SDK (Anthropic on Azure)
- cURL
GenAI Passthrough (Gemini)
- Python SDK
- cURL
GenAI Passthrough (Vertex-style request)
- Python SDK
- cURL
Notes
- Use passthrough when you need a provider endpoint that is not directly supported by Bifrost integration routes yet.
- For Azure passthrough, auth headers (
api-key,x-api-key, OAuth token) are always sourced from the Bifrost key config and never forwarded from the client request.

