Short answer: AI Mode is Google's separate conversational answer page and has its own endpoint, /google/ai_mode; an AI Overview is the summary box that sometimes sits on top of a normal results page and arrives as ai_overview inside /google/search. We sent the same two questions to both on 4 December 2026: AI Mode answered every time with a longer text and 2–3 sources; the AI Overview was shorter, listed 12 sources, and was missing on the desktop layout.
The two requests
# AI Mode: the answer and its cited sources
curl -X POST 'https://api.serpbase.dev/google/ai_mode' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"q":"what is the difference between a roth ira and a traditional ira"}'
# AI Overview: part of an ordinary search
curl -X POST 'https://api.serpbase.dev/google/search' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"q":"what is the difference between a roth ira and a traditional ira","gl":"us","hl":"en"}'
What came back, side by side
AI Mode (/google/ai_mode) | AI Overview (/google/search) | |
|---|---|---|
| Where the answer is | ai_mode.text, ai_mode.markdown | ai_overview.summary |
| "roth ira vs traditional ira" | 3,196 characters, 3 sources | 2,030 characters, 12 sources |
| "how does a heat pump work in winter" | 2,395 characters, 2 sources | 2,175 characters, 12 sources |
Same question, "device":"desktop" | — | no ai_overview in the answer |
| Comes with | nothing else | 7 organic results, People Also Ask and the rest of the page |
| Credits | 3 | 1 |
AI Mode's markdown keeps the structure Google drew — for the IRA question it contained a comparison table:
{
"status": 0,
"credits_charged": 3,
"ai_mode": {
"text": "The core difference between a Roth IRA and a Traditional IRA is when you pay income taxes on your retirement savings. ...",
"markdown": "The core difference ... \n\n| Feature | Roth IRA | Traditional IRA |\n| --- | --- | --- |\n| **Tax Benefit Timing** | ...",
"sources": [
{
"title": "IRS (.gov)",
"page_title": "Retirement topics - IRA contribution limits | Internal Revenue Service",
"link": "https://www.irs.gov/retirement-plans/plan-participant-employee/retirement-topics-ira-contribution-limits",
"snippet": "..."
}
]
}
}
The AI Overview on the search page:
{
"status": 0,
"credits_charged": 1,
"ai_overview": {
"position": 1,
"summary": "A Roth IRA taxes you now and gives you tax-free withdrawals in retirement, while a Traditional IRA may give you a tax break now ...",
"sources": [
{
"title": "Fidelity Investments",
"page_title": "Compare Roth IRA vs. Traditional IRA | Fidelity Investments",
"link": "https://www.fidelity.com/retirement/roth-ira/ira-comparison",
"snippet": "..."
}
]
},
"organic": []
}
Python: ask both and compare
import requests
API = "https://api.serpbase.dev"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}
def post(path, body):
r = requests.post(API + path, headers=HEADERS, json=body, timeout=90).json()
if r["status"] != 0:
raise RuntimeError(f'{path}: {r.get("error")}')
return r
q = "how does a heat pump work in winter"
mode = post("/google/ai_mode", {"q": q})["ai_mode"]
page = post("/google/search", {"q": q, "gl": "us", "hl": "en"})
overview = page.get("ai_overview")
print("AI Mode:", len(mode["text"]), "chars,", len(mode["sources"]), "sources")
for s in mode["sources"]:
print(" ", s["title"], s.get("link", ""))
if overview:
print("AI Overview:", len(overview["summary"]), "chars,", len(overview["sources"]), "sources")
else:
print("AI Overview: none on this page")
Which one to use
- You want an answer for every question (a research tool, an assistant): AI Mode. It is built to answer; an AI Overview only appears when Google decides to show one.
- You track whether a brand or page is cited in search: read
ai_overviewfrom/google/search, because that is the box people see on the results page. It also gives you rankings in the same call. - You want both views of a topic: call both; the source lists are not the same (for the IRA question, Fidelity and Schwab were in both; AI Mode also cited an IRS page).
Things that trip people up
- No AI Overview is a normal result. The desktop request for the same question came back without one. Treat a missing
ai_overviewas "not shown", not as an error. - Highlight markers can appear in the text. For the heat pump question both answers contained
[Highlight start]…[Highlight end]around the sentence Google highlights. Strip them before showing the text. - Some overview sources have no link. 2 of 12 (IRA) and 4 of 12 (heat pump) carried only a site name, and a few links were
google.com/goto?redirects. Use.get("link"). - The answers change. Ask twice and the wording differs; store the date with anything you keep.
Cost and docs
AI Mode is 3 credits per request and a search is 1; credits cost $0.25–$0.50 per 1,000 depending on the pack. Failed requests are not charged, and new accounts get 500 free credits.
- Google AI Mode docs · Google Web Search docs
- More detail: AI Mode API guide · tracking AI Overview visibility
- Credit packs: pricing