Skip to main content
Content updated: 2026-06-09

Gemini Native Format

This page only records Gemini Native usages of 2026-03-22 that have been verified in the Crazyrouter production environment. Current main example model:
  • gemini-3.1-pro
Individually organized multimodal pages based on successful request experiences:

Endpoint

Authentication

Pass the API Key via URL parameter:

Basic Text Generation

cURL
Key structure returned in the current production environment:

Streaming Generation

This round has verified streamGenerateContent, which can use SSE to return incremental content.
cURL
The form of the SSE segments received in production is similar to:

Structured Output

The current production environment has verified responseMimeType + responseSchema as usable:
cURL
Production validation returns:

The tool googleSearch has been verified as usable in the current production environment:
cURL
Key fields returned in production include:
  • groundingMetadata.webSearchQueries
  • groundingMetadata.groundingChunks
  • groundingMetadata.groundingSupports

Thinking

The current production environment has verified thinkingConfig as usable:
cURL
Key indicators validated in production:

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.
Related pages: