Google AI Mode

Query Google's AI Mode — conversational AI answers with citations

POSThttps://api.anakin.io/v1/wire/task

Google AI Mode is the dedicated conversational AI answer surface. Send a prompt and get the answer with its citations, plus any shopping/local modules Google attaches. Run it with the ai_mode action on POST /v1/wire/task.

Catalog: google_ai_mode · action_id: ai_mode · Credits: 2 / call · Auth: none


Request Body

{
  "action_id": "ai_mode",
  "params": { "prompt": "best CRM for small teams", "country": "us" }
}
ParameterTypeDescription
action_id requiredstringSet to ai_mode
params.prompt requiredstringThe prompt to send to Google AI Mode (max 4096 chars)
params.additional_promptstringOptional follow-up in the same conversation
params.countrystring2-letter proxy country for the browser session
params.include_htmlbooleanInclude answer_html (full stream body, ~0.3 MB). Default false
params.devicestringUser-agent profile (desktop, desktop_chrome, mobile, …). Default desktop

Code Examples

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "ai_mode",
    "params": { "prompt": "best CRM for small teams", "country": "us" }
  }'

Response

202 Accepted
{ "status": "processing", "job_id": "…", "poll_url": "/v1/wire/jobs/…" }

Poll GET /v1/wire/jobs/{id} until status: "completed":

200 OK
{
  "status": "completed",
  "credits_used": 2,
  "execution_ms": 21652,
  "data": {
    "status": "ok",
    "data": {
      "answer_text": "…", "answer_text_markdown": "…", "answer_html": "…", "answer_section_html": "…",
      "citations": [], "references": [], "search_sources": [],
      "products": [], "businesses": [], "ads": [], "engine": "ai_mode"
    },
    "meta": { "action_id": "ai_mode", "catalog_slug": "google_ai_mode", "envelope_version": "v1" }
  }
}
FieldTypeDescription
data.data.answer_textstringThe answer (also answer_text_markdown, and answer_html when include_html)
data.data.citationsarraySources cited in the answer
data.data.search_sourcesarraySources considered during search
data.data.productsarrayShopping modules for commercial-intent queries
data.data.businessesarrayLocal results for local-intent queries

AI Mode is geo-sensitive — availability and phrasing vary by country. Billed only on success.