Complete guide to using Bifrost as a drop-in replacement for Google GenAI API with full compatibility and enhanced features.
POST /genai/v1beta/models/{model}:generateContent
🔄 Provider Flexibility: While using Google GenAI SDK format, you can specify any model like"gemini-pro"
(uses Google) or"openai/gpt-4o-mini"
(uses OpenAI) - Bifrost will route to the appropriate provider automatically.
Feature | Status | Notes |
---|---|---|
GenerateContent | ✅ Full | All parameters supported |
Multi-turn Chat | ✅ Full | Conversation history |
System Instructions | ✅ Full | Model behavior control |
Vision/Multimodal | ✅ Full | Images, videos, documents |
Streaming | ✅ Full | Currently returns full response |
Safety Settings | ✅ Full | Content filtering |
Generation Config | ✅ Full | Temperature, top-k, etc. |
Function Calling | ✅ Full | Google + MCP tools |
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 |