Gemini OpenAI-Compatible Format
You can call Gemini models through the standard OpenAI Chat Completions API format without learning the Gemini native API.Basic Conversation
Vision Understanding
Python
File Understanding
Send PDFs and other files through the OpenAI-compatible format:Python
Image Generation
Use Gemini image generation models through the OpenAI-compatible format:Python
Streaming Output
Python
Available Gemini Models
| Model | Description |
|---|---|
gemini-2.5-pro | Gemini 2.5 Pro, strongest capability |
gemini-2.5-flash | Gemini 2.5 Flash, fast response |
gemini-2.5-flash-thinking | Flash with thinking capability |
gemini-2-5-flash-image | Flash with image generation support |
gemini-3-pro-image-preview | Gemini 3 Pro image preview |
When using Gemini through the OpenAI-compatible format, Crazyrouter automatically converts requests to Gemini native format and converts responses back to OpenAI format. Most features work normally, but certain Gemini-specific features (such as code execution, Google Search) require using the native format.