Gemini OpenAI-Compatible Format
You can call Gemini through the OpenAI Chat Completions compatible route.2026-03-22.
Current primary example model:
gemini-3-pro-preview
Current conclusion
This production recheck confirmed that:gemini-3-pro-previewworks through/v1/chat/completionsfor normal text chat- streaming returns standard
chat.completion.chunkSSE objects - for Gemini-specific capabilities such as structured outputs, Google Search, and thinking, you should still prefer Gemini Native Format
Basic conversation
cURL
Python example
Python
Streaming output
This production recheck also confirmed streaming compatibility:Python
When to use compatible vs native
- If you already have OpenAI SDK code and only need standard chat, use the compatible route
- If you need Gemini-native structured outputs, Google Search, thinking, or native metadata, use Gemini Native Format
This page still only covers the
/v1/chat/completions compatibility layer and does not fold Gemini-backed image behavior into it. If you need Crazyrouter’s current public image contract, use the Nano Banana family pages for POST /v1/images/generations:
Nano Banana,
Nano Banana Pro,
and Nano Banana 2.