Google Ai Mode
google_ai_modeGet Google's AI-generated responses (AI Overviews) with source citations and reference links.
Two ways to call:
Text search — requires q.
Image analysis — requires url; optionally include q to ask a question about the image.
To ask a follow-up, pass the conversation_token from the previous response along with the next question in q. The answer then keeps the context of the earlier turns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search query for AI-generated response. Required if url not provided. Cannot exceed 8193 characters. | |
| url | No | Public image URL. Required if q not provided. Include q to ask a specific question about the image. | |
| location | No | Geographic location for localized results. | |
| conversation_token | No | Continues a previous conversation. Pass the pagination.conversation_token returned by the last response together with the follow-up question in q. Omit it to start a new conversation. Cannot be combined with url. |