Key capabilities
- Google Search grounding — Enhance responses with real-time web search
- Document processing — Process and analyze documents
- Multi-modal input — Accept text and file inputs
- Fast inference — Optimized for speed and efficiency
Quick example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | API key (query parameter) |
contents | array | Yes | Array of { role, parts } objects |
tools | array | No | Include { "googleSearch": {} } to enable search |
API Reference
View the interactive API playground for Gemini 2.5 Flash.