Gemini Native Format
This page only documents Gemini Native behavior that was revalidated against Crazyrouter production on2026-03-22.
Current primary example model:
gemini-3-pro-preview
Endpoints
Authentication
Pass the API key through the URL parameter:Basic text generation
cURL
Streaming generation
This recheck confirmed thatstreamGenerateContent returns incremental SSE output.
cURL
Structured outputs
This production recheck confirmed thatresponseMimeType + responseSchema works:
cURL
Google Search
This production recheck confirmed that thegoogleSearch tool works:
cURL
groundingMetadata.webSearchQueriesgroundingMetadata.groundingChunksgroundingMetadata.groundingSupports
Thinking
This production recheck confirmed thatthinkingConfig works:
cURL
Common generationConfig fields
| Field | Type | Description |
|---|---|---|
maxOutputTokens | integer | Maximum output tokens |
temperature | number | Sampling temperature |
responseMimeType | string | MIME type for structured outputs |
responseSchema | object | Structured output constraint |
thinkingConfig | object | Thinking mode configuration |
Gemini Native uses the
contents[].parts[] structure rather than OpenAI-style messages. If you want an OpenAI-style route instead, use Gemini OpenAI-Compatible Format.