Google AI Mode
Query Google's AI Mode — conversational AI answers with citations
POST
https://api.anakin.io/v1/wire/taskGoogle 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" }
}| Parameter | Type | Description |
|---|---|---|
action_id required | string | Set to ai_mode |
params.prompt required | string | The prompt to send to Google AI Mode (max 4096 chars) |
params.additional_prompt | string | Optional follow-up in the same conversation |
params.country | string | 2-letter proxy country for the browser session |
params.include_html | boolean | Include answer_html (full stream body, ~0.3 MB). Default false |
params.device | string | User-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" }
}'import requests
res = requests.post(
'https://api.anakin.io/v1/wire/task',
headers={'X-API-Key': 'your_api_key'},
json={'action_id': 'ai_mode', 'params': {'prompt': 'best CRM for small teams', 'country': 'us'}},
)
job_id = res.json()['job_id']const res = await fetch('https://api.anakin.io/v1/wire/task', {
method: 'POST',
headers: { 'X-API-Key': 'your_api_key', 'Content-Type': 'application/json' },
body: JSON.stringify({
action_id: 'ai_mode',
params: { prompt: 'best CRM for small teams', country: 'us' },
}),
});
const { job_id } = await res.json();Response
202 Accepted{ "status": "processing", "job_id": "…", "poll_url": "/v1/wire/jobs/…" }Poll GET /v1/wire/jobs/{id} until status: "completed":
{
"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" }
}
}| Field | Type | Description |
|---|---|---|
data.data.answer_text | string | The answer (also answer_text_markdown, and answer_html when include_html) |
data.data.citations | array | Sources cited in the answer |
data.data.search_sources | array | Sources considered during search |
data.data.products | array | Shopping modules for commercial-intent queries |
data.data.businesses | array | Local results for local-intent queries |
AI Mode is geo-sensitive — availability and phrasing vary by
country. Billed only on success.