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