Skip to main content

Overview

Bifrost provides 100% Anthropic API compatibility with enhanced features:
  • Zero code changes - Works with existing Anthropic SDK applications
  • Same request/response formats - Exact Anthropic API specification
  • Enhanced capabilities - Multi-provider fallbacks, MCP tools, monitoring
  • Full tool use support - Native Anthropic tool calling + MCP integration
  • Any provider under the hood - Use any configured provider (Anthropic, OpenAI, etc.)
Endpoint: POST /anthropic/v1/messages
Provider Flexibility: While using Anthropic SDK format, you can specify any model like "claude-3-sonnet-20240229" (uses Anthropic) or "openai/gpt-4o-mini" (uses OpenAI) - Bifrost will route to the appropriate provider automatically.

Quick Migration

Python (Anthropic SDK)

JavaScript (Anthropic SDK)


Supported Features

Fully Supported

Enhanced Features


Request Examples

Basic Message

Response:

System Message

Tool Use

Response with Tool Use:

Vision/Image Analysis


Advanced Usage

Multi-turn Conversation

Tool Use with Results

Error Handling


Enhanced Features

Automatic MCP Tool Integration

MCP tools are automatically available in Anthropic-compatible requests:

Load Balancing

Multiple API keys automatically load balanced:

Testing & Validation

Compatibility Testing

Test your existing Anthropic code with Bifrost:

Tool Use Testing


Multi-Provider Support

Use multiple providers with Anthropic SDK format by prefixing model names:

Configuration

Bifrost Config for Anthropic

Environment Variables


Common Issues & Solutions

Issue: “Invalid API Key”

Problem: API key not being passed correctly Solution:

Issue: “Model not found”

Problem: Model not configured in Bifrost Solution: Add model to config.json:

Issue: “Missing anthropic-version header”

Problem: Required Anthropic API version header missing Solution:

Issue: “Tool schema validation error”

Problem: Tool schema format incorrect Solution:
Architecture: For Anthropic integration implementation details, see Architecture Documentation.