Google Ai mode API
Ask Google AI Mode a prompt and receive the cited answer it generates. AI Mode composes the answer at search time, so repeat calls on one prompt can differ in wording and in which sources are cited.
- Category SearchRequests / mo 6Routing 2 lanes · auto failover
Provider network
Providers ranked by traffic
click a provider for traffic and endpoints · routing stays automaticTry it
Make your first request
run it free, no key · same shape for every API{
"data": {
"answer": "example",
"answerMarkdown": "example",
"citations": [
{
"title": "Example title",
"url": "https://example.com/page"
}
],
"prompt": "example"
},
"found": true
}interface GoogleAiModeResponse {
data: {
answer: string;
answerMarkdown: string;
citations: {
title: string;
url: string;
}[];
prompt: string;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-08-23 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/google.ai_mode \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"What is AnyAPI at getanyapi.com, and what does it offer?"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| prompt | string | "What is AnyAPI at getanyapi.com, and what does it offer?"The question or prompt to answer with Google AI Mode. |
| Response | ||
| data | object | The normalized answer, or null when no answer was found. Google composes the answer at search time rather than serving a stored one, so the same prompt can return different wording and a different set of citations on each call. Treat a response as one observation of the answer, not as a stable document. |
| data.answer | string | The answer as plain text, as Google generated it for this search. Length and coverage vary between searches on the same prompt. Populated whenever the provider has data for the entity. |
| data.answerMarkdown | string | The answer in Markdown when Google returns a Markdown rendering, otherwise the same text as answer. Populated whenever the provider has data for the entity. |
| data.citations | object[] | The sources Google cited for this search, in the order it returned them. Google recomputes the set per search, so counts and membership vary between calls on the same prompt. |
| data.citations[].title | string | The cited source title. |
| data.citations[].url | string | The cited source URL. |
| data.prompt | string | The prompt answered by the upstream search experience. Populated whenever the provider has data for the entity. |
| found | boolean | Whether Google AI Mode returned an answer. |
| Price | ||
| Price per request | USD | $0.00126 |
| Price /1k req | USD | $1.26 |
FAQ
About the Google Ai mode API
The AnyAPI Google Ai mode API returns Google ai mode data as normalized JSON from one POST call to /v1/run/google.ai_mode. Ask Google AI Mode a prompt and receive the cited answer it generates. AI Mode composes the answer at search time, so repeat calls on one prompt can differ in wording and in which sources are cited. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.26 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Google ai mode calls through AnyAPI succeeded, with a median response time of 26.3 seconds across 6 measured calls.
More to call
Other Google endpoints
Get started
Two ways to start on AnyAPI
Humans fund a USD wallet and pay per request. Agents point a coding agent at one URL and onboard themselves.