Skip to main content

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

Supported Models

You can use any Gemini or Anthropic model available on PipeLLM with the OpenAI format:

Feature Support