Call it
curl https://api.peume.com/v1/call/google-ai-mode-answer-for-a-query \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "google_ai_mode",
"q": "best coffee brewing method"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-ai-mode-answer-for-a-query", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "google_ai_mode",
"q": "best coffee brewing method"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-ai-mode-answer-for-a-query",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "google_ai_mode",
"q": "best coffee brewing method"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-ai-mode-answer-for-a-query.
Parameters
engineRequiredstringExample: google_ai_mode
qRequiredstringExample: best coffee brewing method
Other ways to do it
Same job, other sources, cheapest first.
Get Google AI Mode answerReturns the answer Google AI Mode generates for a question, as ordered text blocks, with the sources it citedGoogle AI Mode answer with citations for a questionGoogle's own AI Mode / AI Overview answer for a question, word for word, with answer.source naming which. deep must be 0, so the text is never written by another model; answereGoogle AI Mode answer — text, sources, products, placesRuns a prompt through Google AI Mode from a chosen country and returns the answer with its cited sources, citation pills, inline products, shopping cards, place cards, videos and sGoogle AI Mode results for a keyword, liveGoogle AI Mode SERP API provides search results from the AI Mode feature of Google Search.
