Skip to main content
POST
generateContent
The Gemini native protocol, supporting multimodal input (image / PDF / audio / video) and function calling.

Request

Path variables

Main fields

parts types

Response

finishReason: STOP / MAX_TOKENS / SAFETY / RECITATION / OTHER.

Function calling

The response includes a functionCall:
After executing, append a functionResponse:

Thinking mode

Or use a model ID with the -thinking suffix: gemini-2.5-pro-thinking.

Structured output