Overview
Bifrost provides complete Anthropic API compatibility through protocol adaptation. The integration handles request transformation, response normalization, and error mapping between Anthropic’s Messages API specification and Bifrost’s internal processing pipeline. This integration enables you to utilize Bifrost’s features like governance, load balancing, semantic caching, multi-provider support, and more, all while preserving your existing Anthropic SDK-based architecture. Endpoint:/anthropic
Enabling the beta header: Anthropic frequently uses the
anthropic-beta header to gate access to new features.
Clients like Vercels AI SDK use these. Bifrost will block unrecognized headers by default for security purposes.
To enable the beta header for full compatability, add anthropic-beta to the AllowList under Settings -> Client Settings in the UI.Setup
- Python
- JavaScript
Provider/Model Usage Examples
Use multiple providers through the same Anthropic SDK format by prefixing model names with the provider:- Python
- JavaScript
Adding Custom Headers
Pass custom headers required by Bifrost plugins (like governance, telemetry, etc.):- Python
- JavaScript
Async Inference
Submit inference requests asynchronously and poll for results later using thex-bf-async header. This is useful for long-running requests where you don’t want to hold a connection open. See Async Inference for full details.
Async inference requires a Logs Store to be configured and is not compatible with streaming.
Messages
- Python
- JavaScript
Async Headers
Supported Features
The Anthropic integration supports all features that are available in both the Anthropic SDK and Bifrost core functionality. If the Anthropic SDK supports a feature and Bifrost supports it, the integration will work seamlessly.Next Steps
- Files and Batch API - File uploads and batch processing
- OpenAI SDK - GPT integration patterns
- Google GenAI SDK - Gemini integration patterns
- Configuration - Bifrost setup and configuration
- Core Features - Advanced Bifrost capabilities

