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