Complete guide to using Bifrost as a drop-in replacement for Anthropic API with full compatibility and enhanced features.
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.
Feature | Status | Notes |
---|---|---|
Messages API | ✅ Full | All parameters supported |
Tool Use | ✅ Full | Native + MCP tools |
System Messages | ✅ Full | Anthropic system prompts |
Vision/Images | ✅ Full | Image analysis |
Streaming | ✅ Full | Currently returns full response |
Max Tokens | ✅ Full | Token limit control |
Temperature | ✅ Full | Sampling control |
Stop Sequences | ✅ Full | Custom stop tokens |
Feature | Enhancement | Benefit |
---|---|---|
Multi-provider Fallbacks | Automatic failover | Higher reliability |
MCP Tool Integration | External tools available | Extended capabilities |
Load Balancing | Multiple API keys | Better performance |
Monitoring | Prometheus metrics | Observability |
Cross-provider Tools | Use with any provider | Flexibility |