Overview
The Gemini Format Converter allows you to call OpenAI and Anthropic models using the Gemini SDK and API format. This is useful when you have existing code using the Gemini SDK but want to access other providers’ models.Configuration
SDK Configuration
Set your base URL to:The SDK automatically appends the model path, so you only need to set the base
URL to
/gemini.cURL / Direct API
For direct API calls, use the full endpoint:Usage Examples
- Python SDK
- cURL
- Streaming (cURL)