Google AI Mode
google_ai_modeAsk Google AI Mode a question and return its generated answer (ordered text_blocks: paragraphs, headings, lists, tables, code) with the sources it cited (references). Set continuable to get a token for follow-up questions; image_url adds a picture to the prompt. Slow: answers are generated per request. Requires an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The question to ask | |
| gl | No | Two-letter country for localization, e.g. "us" | |
| hl | No | Language code such as "en" or "en-GB"; default en | |
| uule | No | Pre-encoded Google location token; conflicts with location | |
| device | No | Layout to request; default desktop | |
| location | No | Named search origin such as "Austin, Texas"; conflicts with uule and lat/lon | |
| image_url | No | Public http(s) image to include in the prompt; cannot combine with a token | |
| continuable | No | Return a subsequent_request_token so the conversation can continue | |
| google_domain | No | Google domain such as google.co.uk; default google.com | |
| result_groups | No | Return only these top-level result groups, e.g. ["organic_results", "knowledge_graph"]; omit for the complete response. search_metadata is always kept | |
| subsequent_request_token | No | Token from a previous continuable answer; send with a new q. Expires after 30 minutes; cannot combine with image_url |