メインコンテンツへスキップ
更新日: 2026-06-06

Gemini Native Format

This page only documents Gemini Native behavior that was revalidated against Crazyrouter production on 2026-03-22. Current primary example model:
  • gemini-3.1-pro
Dedicated multimodal pages based on successful request patterns:

Endpoints

Authentication

Pass the API key through the URL parameter:

Basic text generation

cURL
Verified response shape:

Streaming generation

This recheck confirmed that streamGenerateContent returns incremental SSE output.
cURL
Observed SSE chunk shape:

Structured outputs

This production recheck confirmed that responseMimeType + responseSchema works:
cURL
Verified production output:

This production recheck confirmed that the googleSearch tool works:
cURL
Verified fields include:
  • groundingMetadata.webSearchQueries
  • groundingMetadata.groundingChunks
  • groundingMetadata.groundingSupports

Thinking

This production recheck confirmed that thinkingConfig works:
cURL
Verified marker:

Common generationConfig fields

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.
関連ページ: