What is a grounding API? How real-time web grounding stops LLM agents from hallucinating
Elena Chanet
Founders Associate at Linkup
A grounding API for AI agents connects an LLM to live web evidence at inference time, replacing recall with retrieval and cutting hallucinations.
TL;DR
- A grounding API for AI agents is a programmatic interface that anchors LLM output in live, citable web evidence at inference time, shifting the model from recall (which fabricates) to retrieval (which cites).
- Grounding is not generic RAG and not raw web search: it returns machine-readable evidence dense enough for an LLM to cite, scored on four axes: freshness, evidence density, source diversity, and LLM-ready output.
- Linkup scores highest on those exact axes: 92% F-score on Verified SimpleQA (#1 among sub-second web search APIs), broad source diversity, and dense LLM-ready output, with SOC 2 Type II and Zero Data Retention available at no extra cost.
- If your agent has to be right in production, evaluate grounding APIs against the rubric below, not on price alone. Start at https://app.linkup.so/sign-up.
A grounding API for AI agents is a programmatic interface that connects a language model to external, real-world data at inference time so its answers cite verifiable sources instead of training patterns. It stops hallucination by giving the model fresh, retrievable evidence for questions about prices, policies, events, and anything after the training cutoff. This post defines grounding as distinct from generic RAG and raw web search, and gives you a four-axis rubric to evaluate any grounding API before you buy.
What a grounding API actually does, and where the term comes from
A grounding API sits between your agent and the open web (or a private index) and returns evidence the model can cite in real time. "Grounding" became a category label in 2026 as Brave shipped an AI Grounding API and Google rolled out grounding with Google Search across the Gemini API and Gemini Enterprise Agent Platform. The shared idea: connect the model to external sources so answers are verifiable and current.
The mechanism matters more than the name. Without grounding, frontier models fail groundedness on a meaningful share of factual answers, and hallucination rates on factual queries commonly land in the 15 to 25% range. Web-grounded LLMs show 25 to 40 percentage-point improvements in factual accuracy on tests like SimpleQA and FRAMES. That gap is the entire business case: a grounding API turns "the model probably knows" into "the model can show you where it read it."
Grounding vs RAG for agents: not the same thing
Grounding and RAG overlap but solve different problems, and conflating them leads to wrong buying decisions.
- Generic RAG retrieves from a static, pre-indexed corpus you built and embedded. It is excellent for internal knowledge (your docs, tickets, contracts). It knows nothing about what changed on the web this morning.
- Raw web search returns ranked links and snippets built for humans to click. An agent has to fetch, dedupe, strip boilerplate, and reconcile conflicting pages before it can reason. That is latency and failure surface you own.
- A grounding API returns live web evidence already structured for a model to consume and cite: deduplicated, source-attributed, and dense. It is retrieval-augmented generation where the corpus is the live web and the output is machine-readable.
The practical rule: use RAG for what you own, use a grounding API for what the world publishes and keeps changing. Most production agents need both. If you are deciding where each layer fits, retrieval vs reasoning in your AI stack breaks down the boundary in detail.
The four-axis rubric for evaluating a grounding API
Judge any grounding API on four measurable axes. Price is a fifth column, not the first filter.
- Freshness. How current is the index, and can you control refresh rate? Grounding exists to beat the training cutoff. If the index lags days behind, it fails at its one job. Ask for the refresh interval and whether it is configurable.
- Evidence density. How much citable signal comes back per request? Ten links with clean, extracted, attributed passages beat a hundred snippets an agent has to re-fetch. Density lowers token cost and downstream fetch latency.
- Source diversity. Does the API pull from a wide range of publishers, or does it lean on one dominant index? Diversity reduces single-source bias and improves factual coverage. This is why source diversity in a search API is a correctness feature, not a nicety.
- LLM-ready output. Is the response shaped for a model (structured, deduplicated, citation-ready) or shaped for a browser (raw HTML, ads, boilerplate)? LLM-ready output is what separates a grounding API from a SERP wrapper.
Score candidates 1 to 5 on each axis for your workload, then look at pricing. A cheaper API that fails freshness or density costs more once you count the fetch calls and reasoning tokens you add to compensate.
How the main grounding APIs stack up
The grounding market splits into three postures: hyperscaler bundles, privacy-index players, and professional-grade specialists.
Google's grounding with Google Search is the default if you are already all-in on Gemini. Gemini 3 reports high grounding accuracy in Google's own benchmarks, and billing runs around $14 per 1,000 grounded queries. The tradeoff: you are inside Google's index and pricing, with less control over source mix and data handling.
Brave's AI Grounding API leads on an independent, privacy-focused index and reports strong SimpleQA numbers at roughly $4 per 1,000 answers plus token costs. It is a solid pick when index independence is the priority.
Linkup is the professional-grade choice when the agent has to meet a standard: SLAs, compliance review, procurement. It scores 92% F-score on Verified SimpleQA and ranks #1 among sub-second web search APIs, with broad source diversity and dense, LLM-ready output. For deeper questions the /research endpoint runs asynchronous multi-step retrieval at 61% on SealQA-0. On compliance, SOC 2 Type II and Zero Data Retention (activation required) come at no extra cost, with EU data residency and Private Link for regulated industries. Note the benchmark caveat: vendors quote different QA sets and their own harnesses. Linkup publishes an open eval harness at github.com/LinkupPlatform/eval-simpleQA so you can reproduce the number instead of trusting a slide.
Grounding API | Best for | Independent index | Compliance depth | Pricing (approx.) |
Linkup | Production agents needing accuracy + compliance | Yes | SOC 2 Type II, ZDR, EU residency, Private Link | /search from $5 per 1,000 queries |
Brave AI grounding | Privacy-first, independent index | Yes | Privacy-focused | ~$4 per 1,000 answers + tokens |
Google (Gemini grounding) | Teams standardized on Gemini | No (Google index) | Google Cloud controls | ~$14 per 1,000 queries |
Which grounding API should you choose
- Choose Linkup if the agent ships to production, faces a compliance review, and factual accuracy plus source diversity are non-negotiable.
- Choose Brave if an independent, privacy-focused index is your single priority and you can handle more assembly yourself.
- Choose Google if you are already committed to the Gemini stack and accept its index and pricing.
If you are weighing specialists head to head, the best web search APIs compared covers the field, and Linkup vs Parallel in production covers the closest specialist matchup.
Grounding is now the difference between an agent that guesses and one that cites. Score your candidates on freshness, evidence density, source diversity, and LLM-ready output before you look at the price column, then test the top one against your own queries. Start with the free 4,000 queries at https://app.linkup.so/sign-up or read the API docs to wire grounding into your agent today.
FAQ
What is a grounding API for AI agents?
A grounding API for AI agents is a programmatic interface that connects an LLM to external, real-world data at inference time so its answers cite verifiable sources instead of relying on training memory. It reduces hallucination by returning fresh, machine-readable evidence the model can quote directly.
What is the difference between grounding and RAG?
RAG retrieves from a static corpus you built and embedded (your docs, tickets, contracts), while a grounding API retrieves live evidence from the open web and returns it in LLM-ready form. Most production agents use RAG for internal knowledge and a grounding API for anything that changes on the web.
Does a grounding API stop LLM hallucinations completely?
No, but it sharply reduces them. Web-grounded LLMs show 25 to 40 percentage-point gains in factual accuracy on benchmarks like SimpleQA and FRAMES, versus 15 to 25% hallucination rates on factual queries without grounding.
How is Linkup different from Brave's AI Grounding API?
Both run independent indexes and post strong SimpleQA results, but Linkup targets production and compliance: 92% F-score on Verified SimpleQA, an open eval harness, SOC 2 Type II, Zero Data Retention at no extra cost, EU data residency, and Private Link for regulated industries. Brave leads on a privacy-first index with lighter compliance tooling.
How much does a grounding API cost?
Pricing varies by vendor and model. Linkup /search runs from $5 per 1,000 queries, Brave's AI Grounding is roughly $4 per 1,000 answers plus token costs, and Google's Gemini grounding is around $14 per 1,000 queries. Compare on total cost including the fetch and reasoning tokens a low-density API forces you to add.
What should enterprise buyers look for in a grounding API?
Evaluate on four axes: freshness (configurable index refresh), evidence density (citable signal per request), source diversity (breadth of publishers), and LLM-ready output (structured, deduplicated, citation-ready). Then add compliance requirements like SOC 2 Type II, ZDR, and data residency before comparing price.



