generateContent API with the stable model ID gemini-3.7-flash.
Key capabilities
- 1M token context - Up to 1,048,576 input tokens and 65,536 output tokens
- Multimodal input - Text, image, video, audio, and PDF input; text output
- Coding and agents - Improved software engineering, issue resolution, multi-step execution, and fewer failed agent loops
- Web development - Improved design adherence when generating interfaces from design references or auditing implementations against them
- Tools - Function calling, code execution, File Search, Google Search, Google Maps, URL context, structured output, and Computer Use (Preview)
- Thinking levels -
low,medium, andhigh; the default ismedium - Caching and batch processing - Supports context caching, Batch API, Flex inference, and Priority inference upstream
Model specifications
Quick example
Thinking levels
Choose a thinking level based on latency and task difficulty:Conversation requirements
Requests must not end with a non-emptymodel role turn. End the conversation with a non-empty user turn; otherwise the API returns HTTP 400.
Parameters
API Reference
View the interactive API reference for Gemini 3.7 Flash.