Google Search
POST
/v1beta/models/gemini-2.5-flash:generateContent
- Enable
tools.googleSearchfor web search grounding - The model can combine real-time information when answering user questions
- Recommended models include
gemini-2.5-flashand others that support search - Official docs: Grounding with Google Search
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
contents
object[]
Required
tools
object[]
Tools (including googleSearch)
Responses
Success
application/json
object