Enum:
google_ai_mode · Credits: 4 per successful capture ·
Typically returns: a conversational answer with provenanceWhat it returns
Request
Addgoogle_ai_mode to surfaces on POST /v1/search. A single-surface request with no webhook runs synchronously by default; add ?mode=async for the durable path — one child per surface × region.
202 with a parent job and one child id per surface × region:
Sync alias
For a single surface and region, the aliasPOST /v1/search/google_ai_mode is sync-by-default (like any single-surface call) and returns the result inline (200, the Envelope in children[0]). It accepts prompt (an alias of query) and a flat country.
Envelope (trimmed)
Every surface returns this shape, four sections:job, provenance, answer, evidence.
Notes
Credits
Credits
Each successful
google_ai_mode capture costs 4 credits, charged only on success. You start with 500 free credits.Regions
Regions
Pass
regions: [{ country, state?, city?, language? }] (ISO-3166 alpha-2; omitted means one untargeted GLOBAL capture). Each surface × region produces one child. Compare provenance.region.requested with effective to see whether the region was honored exactly. See Regions.One parser, every surface
One parser, every surface
AI Mode, ChatGPT, Claude, Perplexity, Copilot, Google AI Overview, Google Search, and Google News all normalize to this Envelope. Write your rendering once against
answer and every surface flows through it.Output formats
How
answer.text, answer.markdown, and answer.blocks[] relate.Search endpoint
The full async request body, fields, and lifecycle.