Skip to main content

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

Supported Models

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

Feature Support

Gemini 3 Models

This converter targets OpenAI and Anthropic models, so Gemini thought signature rules do not apply to it. To call Gemini 3 models with the Gemini SDK, use the native Gemini route.
Cross-protocol streaming output in Gemini format is not implemented. Use generateContent on this converter route; use the native Gemini API for streaming Gemini models.