Content updated: 2026-06-09
Gemini Native Format
This page only records Gemini Native usages of2026-03-22 that have been verified in the Crazyrouter production environment.
Current main example model:
gemini-3.1-pro
Endpoint
Authentication
Pass the API Key via URL parameter:Basic Text Generation
cURL
Streaming Generation
This round has verifiedstreamGenerateContent, which can use SSE to return incremental content.
cURL
Structured Output
The current production environment has verifiedresponseMimeType + responseSchema as usable:
cURL
Google Search
The toolgoogleSearch has been verified as usable in the current production environment:
cURL
groundingMetadata.webSearchQueriesgroundingMetadata.groundingChunksgroundingMetadata.groundingSupports
Thinking
The current production environment has verifiedthinkingConfig as usable:
cURL
Common generationConfig Fields
Gemini Native uses the
contents[].parts[] structure, not the OpenAI messages structure. If you want to follow the OpenAI style, please use Gemini OpenAI Compatible Format.