Skip to main content

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


Provider/Model Usage Examples

Use multiple providers through the same Anthropic SDK format by prefixing model names with the provider:

Adding Custom Headers

Pass custom headers required by Bifrost plugins (like governance, telemetry, etc.):

Async Inference

Submit inference requests asynchronously and poll for results later using the x-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

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