AI Grounding Total Cost of Ownership: What a Grounded Answer Really Costs
.png)

TLDR: AI grounding total cost of ownership is the search fee plus the tokens that search results add to model calls. Multiply both by searches per answer and by how often those tokens are re-read, then add the engineering, evaluation and compliance work you own. At November 2026 list prices the token line is often as large as the search fee or larger, so cap what reaches the model before you shop for cheaper searches.
What goes into the total cost of grounding
Grounding means fetching live web content and placing it in the model's context so the answer can cite it. Many price comparisons stop at the per-search fee. A budget that holds up has five lines, and the first is rarely the biggest.
| Cost line | How it bills | What drives it |
|---|---|---|
| Search or tool fee | Per call, per query the model runs, or per credit | Searches per answer, retries, free allowances |
| Page content | Per page fetched, or bundled with the search | Full pages versus excerpts, cache hits |
| Injected tokens | Your model's input rate | Tokens per search that reach the prompt |
| Re-reads | Input rate, or cache-read rate if cached | Agent loops and multi-turn chats that keep results in context |
| Fixed work | People time | Pipeline code, evaluation, monitoring, terms compliance, security review |
The arithmetic is simple. Monthly cost equals search calls times the fee, plus live pages times the page fee, plus injected tokens times the re-read factor times the input rate, plus prompt and output tokens, plus fixed costs. Divide by grounded answers for cost per answer. Then divide by the accuracy you measure on your own question set for cost per correct answer, which is the number that should decide between vendors. A cheap answer that is wrong a fifth of the time is not cheap.
Grounding fees as of November 2026
These are list prices read from each provider's own page on 11 November 2026. Read the unit before the number: per call, per query the model decides to run, per prompt, or per credit.
| Option | Fee | What else bills | Unit detail |
|---|---|---|---|
OpenAI web_search | $10 per 1,000 calls | Search content tokens at model rates | The legacy preview tool on non-reasoning models is $25 per 1,000 with content tokens free (OpenAI pricing) |
| Anthropic web search | $10 per 1,000 searches | Results count as input tokens in that turn and in later turns | Failed searches are not billed; max_uses caps searches per turn (Anthropic docs) |
| Gemini 3 and newer, Grounding with Google Search | 5,000 free a month, then $14 per 1,000 | Retrieved grounding context is described as excluded from input tokens | Billed per search query the model runs; default cap of 1,500 requests per day per project (Gemini pricing) |
| Gemini 2.5 | 1,500 free a day, then $35 per 1,000 | Model tokens | Billed per grounded prompt, not per query |
| You.com Web Search API | $5 per 1,000 calls, up to 100 results, highlights included | Full-page extraction at $1 per 1,000 pages crawled live; your model's tokens | Cached pages are free under the default blend source (You.com billing) |
| You.com Answer API | $5 per 1,000 calls | Nothing: retrieval, synthesis and citations are included | Query limited to 400 characters; no model or prompt choice |
| Exa Search (auto) | $7 per 1,000 requests, up to 10 results | $1 per 1,000 extra results; Contents $1 per 1,000 pages per content type | Lite search is $4 per 1,000 (Exa pricing) |
| Parallel Search | $1 (turbo, fast) to $5 (basic, advanced) per 1,000 | Extract $1 per 1,000 URLs | Excerpts for 10 results included (Parallel pricing) |
| Tavily Search | 1 credit basic, 2 advanced, at $0.008 per credit pay as you go | Extract: 1 credit per 5 URLs (basic) | Monthly plans bring credits down to $0.005 (Tavily credits) |
| Brave Search API | $5 per 1,000 requests | Your model's tokens | LLM Context output is sized from 1k to about 33k tokens (Brave) |
Two details change budgets more than the headline rates. First, native tools let the model choose how many searches to run. Anthropic's docs say single-fact queries typically use 1 to 3 searches, while comparative or multi-entity research can use 10 or more. Google's pricing page warns that one request "may result in one or more queries", each billed. Second, OpenAI bills a fixed block of 8,000 input tokens per call for gpt-4o-mini and gpt-4.1-mini on the current tool, whatever the results contain. Our guides to the OpenAI, Claude and Gemini tools cover setup for each; this page is about what they cost together with everything around them.
Why tokens often cost as much as the searches, or more
Search results are long. The example response in Anthropic's web search docs reports 6,039 input tokens for a single search. You.com's docs put default highlights for a 10-result search at roughly 6,000 to 7,500 tokens. At Claude Sonnet 5.5's list rate of $2 per million input tokens (Anthropic pricing), 7,000 tokens cost $0.014. That is nearly three times a $0.005 You.com search call. Anthropic's 6,039-token example costs about $0.012, a little more than its $0.01 search fee. The fee is fixed per call. The token line grows with how much text you pass and how expensive the model is.
Re-reads multiply that line. Anthropic states that search results count as input tokens "in subsequent conversation turns", and the same is true of any agent that keeps results in its context. If an agent makes three more model calls after a search, it pays for those result tokens on every call unless a prompt cache absorbs them. Anthropic bills cache reads on Sonnet 5.5 at $0.10 per million, but the default cache lives five minutes and cache writes cost 1.25 times the input rate. Caching helps tight loops; it does little for a chat where the user replies ten minutes later.
There are two cases where the fee is most of the story. Google describes retrieved grounding context as excluded from input tokens, so Gemini's per-query fee carries the grounding cost. A managed answer API such as the You.com Answer API charges per answer with synthesis included, so there is no separate token line at all.
A worked example at 50,000 grounded answers a month
The assumptions are deliberately plain so you can swap in your own:
- 50,000 grounded answers a month, two searches each, so 100,000 searches.
- 1,000 tokens of system prompt and question per answer, and 500 output tokens.
- Every option priced at Sonnet 5.5 rates ($2 in, $10 out per million) to isolate the grounding cost. In practice Gemini grounding runs on Gemini's own rates.
- Native tools inject 5,000 tokens per search, in line with Anthropic's example. You.com default highlights inject 7,000, near the top of the documented range. The capped case sets
total_max_tokensto 2,048 and assumes about 2,000 tokens arrive. - Results are read once. The agent case below changes that.
| Option | Search fees | Token cost | Monthly total | Per answer |
|---|---|---|---|---|
| Native tool at $10 per 1,000 plus content tokens | $1,000 | $1,350 | $2,350 | $0.047 |
| Gemini 3 grounding at $14 per 1,000 after 5,000 free | $1,330 | $350 | $1,680 | $0.034 |
| You.com Web Search, default highlights | $500 | $1,750 | $2,250 | $0.045 |
| You.com Web Search, highlights capped | $500 | $750 | $1,250 | $0.025 |
| You.com Answer API | $250 | $0 | $250 | $0.005 |
Three things stand out. The search API with half the native fee costs almost as much as the native tool when it sends default highlights, because tokens dominate. Capping highlights cut its total by 44% without changing vendor or model.
Gemini looks cheap until you check capacity. Its default Developer API cap is 1,500 requests a day per project, about 45,000 in a 30-day month, and this workload sends 50,000 grounded requests, or 100,000 search queries. Either way it exceeds the cap. Google points higher-volume workloads to Vertex AI, which lists a default quota of 1,000,000 search queries a day.
The Answer API is 5 to 9 times cheaper per answer here because you stop paying a model to read search results. The trade is control: no model choice, no custom prompt, no output schema, and a 400-character query. That suits cited question answering. It does not suit an agent that has to reason over results under your own instructions, which is where the answer API versus raw search decision really sits.
Agents change the picture again. If each search result is billed four times in total, the first read plus three re-reads, with no cache, the capped You.com setup rises to $2,450 a month and the default-highlights setup to $6,450. If 90% of the three re-reads hit a prompt cache, they fall to $1,424 and $2,859. Cache writes are left out of those figures, so treat the cached numbers as a floor.
A grounding cost calculator you can run
The script below reproduces every figure above with the Python standard library. Each option is a row of inputs, so adding a vendor or changing a price is one line. The reread and cached_share fields model agent loops, and fixed_monthly holds the people costs covered in the next section. It was run and checked against hand calculations with offline assertions; no API is called.
"""Monthly grounding TCO for five grounding options. Standard library only.
Every number in SCENARIO and in the option rows is an input. Replace them
with your own logs and current price pages before you trust the output.
"""
from dataclasses import dataclass
@dataclass
class Workload:
answers: int # grounded answers per month
searches_per_answer: float
base_prompt_tokens: int # system prompt + question, per answer
output_tokens: int # per answer
reread: float # times each injected token is billed (1.0 = once)
cached_share: float # share of re-reads served from a prompt cache
in_rate: float # $ per million input tokens
out_rate: float # $ per million output tokens
cache_read_rate: float # $ per million cached input tokens
@dataclass
class Grounding:
name: str
fee_per_1k: float # per search call, or per answer call if managed
tokens_per_search: int # result tokens that reach your model
free_per_month: int = 0 # free searches (for example, Gemini 3+)
pages_per_search: float = 0.0 # live full-page fetches billed separately
page_fee_per_1k: float = 0.0
managed: bool = False # True when the fee already includes synthesis
fixed_monthly: float = 0.0 # engineering, eval, monitoring you own
def monthly_cost(w: Workload, g: Grounding) -> dict:
if g.managed:
calls = w.answers
search = calls * g.fee_per_1k / 1000
tokens = 0.0
pages = 0.0
else:
calls = w.answers * w.searches_per_answer
billable = max(0.0, calls - g.free_per_month)
search = billable * g.fee_per_1k / 1000
pages = calls * g.pages_per_search * g.page_fee_per_1k / 1000
injected = calls * g.tokens_per_search
first_read = injected
extra = injected * max(0.0, w.reread - 1.0)
cached = extra * w.cached_share
uncached = extra - cached
tokens = ((first_read + uncached) * w.in_rate
+ cached * w.cache_read_rate) / 1e6
tokens += w.answers * w.base_prompt_tokens * w.in_rate / 1e6
tokens += w.answers * w.output_tokens * w.out_rate / 1e6
total = search + pages + tokens + g.fixed_monthly
return {"name": g.name, "calls": calls, "search": search, "pages": pages,
"tokens": tokens, "fixed": g.fixed_monthly, "total": total,
"per_answer": total / w.answers if w.answers else 0.0}
def report(w: Workload, rows: list) -> None:
print(f"{'option':34} {'search':>9} {'pages':>7} {'tokens':>9} "
f"{'fixed':>7} {'total':>9} {'$/answer':>9}")
for g in rows:
r = monthly_cost(w, g)
print(f"{r['name']:34} {r['search']:9.2f} {r['pages']:7.2f} "
f"{r['tokens']:9.2f} {r['fixed']:7.2f} {r['total']:9.2f} "
f"{r['per_answer']:9.4f}")
SCENARIO = Workload(answers=50_000, searches_per_answer=2, base_prompt_tokens=1_000,
output_tokens=500, reread=1.0, cached_share=0.0,
in_rate=2.00, out_rate=10.00, cache_read_rate=0.10)
OPTIONS = [
Grounding("Native tool, $10/1k + content", 10.00, 5_000),
Grounding("Gemini 3+ grounding, $14/1k", 14.00, 0, free_per_month=5_000),
Grounding("You.com Search, default highlights", 5.00, 7_000),
Grounding("You.com Search, highlights capped", 5.00, 2_000),
Grounding("You.com Answer API (managed)", 5.00, 0, managed=True),
]
if __name__ == "__main__":
report(SCENARIO, OPTIONS)
print()
agent = Workload(**{**SCENARIO.__dict__, "reread": 4.0})
print("Agent loop, each result billed 4 times (1 read + 3 re-reads), no cache:")
report(agent, OPTIONS[2:4])
cached = Workload(**{**agent.__dict__, "cached_share": 0.9})
print("Same loop, 90% of re-reads hit the prompt cache:")
report(cached, OPTIONS[2:4])
Feed it measured numbers, not these defaults. The two inputs that move the total most are tokens_per_search and reread, and both are visible in your logs within days.
Fixed costs the price pages leave out
Usage fees are only part of the bill. Each architecture shifts different work onto your team, and that work is recurring.
| Work | Native model tool | Search API plus your model | Managed answer API |
|---|---|---|---|
| Pipeline code | Tool config and citation rendering | Query writing, extraction choice, prompt assembly, citation mapping | One request and rendering |
| Evaluation | End-to-end answer quality | Retrieval and synthesis, measured separately | End-to-end answer quality |
| Spend control | Per-turn search caps | Full control of calls and tokens | One price per answer |
| Vendor lock-in | Search tied to one model family | Swap model or search independently | Swap the whole answer service |
Terms compliance is a real cost line, and it can remove your cheapest optimization. Google's Gemini API terms require grounded results to be shown with their Search Suggestions to the user who asked. They prohibit caching, analyzing or training on grounded results, with narrow exceptions such as storing displayed text for up to two years to evaluate your display or show chat history. That rules out caching answers to repeated questions, which elsewhere is often the largest saving. Anthropic requires citations whenever web search output is shown directly to end users.
Data handling adds review time. You.com offers Zero Data Retention for the Web Search and Answer APIs on enterprise agreements, enabled on request; Contents and Research are not yet covered. Whatever vendor you choose, budget for the security review, and put an hourly rate on the engineering and evaluation time so it lands in fixed_monthly instead of disappearing. Evaluating a search API covers the test set you will need either way.
Levers that cut grounding cost, in order of payoff
- Do not search when the model does not need to. Route questions that your own data or the model's training already answers away from search. The share of questions that actually needs fresh web data is the first multiplier in the formula.
- Cap tokens per search. On the You.com Web Search API,
extraction.highlights.total_max_tokensaccepts 1,024 to 8,192 and applies across all results in the response. Brave exposesmaximum_number_of_tokenson LLM Context, and Anthropic's dynamic filtering trims results with code before they reach the context window. - Prefer excerpts to full pages, and cached pages to live crawls. On You.com,
extraction_source: "cache"keeps a full-page call at the $0.005 base price, whileblendbills only pages crawled live. - Cap searches per answer. Set
max_useson Anthropic's tool. With a search API you decide the count in code. - Cache re-reads. Prompt caching turns repeated result tokens into cache reads, as long as calls arrive inside the cache lifetime.
- Bound spend per key. You.com spending caps stop a runaway agent with a
429carryingspend_cap_exceeded, separate from ordinary rate limits.
Here is lever two as a request. The cap covers every result in the response combined:
curl -X POST https://ydc-index.io/v1/search \
-H "X-API-Key: $YDC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "EU AI Act general-purpose model obligations 2026",
"count": 5,
"extraction": {
"extraction_mode": "highlights",
"highlights": {"total_max_tokens": 2048}
}
}'
Token reduction compounds with everything downstream. Our piece on why token cost is a design problem covers the architectural side.
How to measure your own number in two weeks
Run a pilot on real traffic or a replayed sample, and log these per answer:
- Searches run. Anthropic reports them in
usage.server_tool_use.web_search_requests; with a search API, count your own calls. - Result tokens that reached the model, counted with your tokenizer, and cache-read tokens where reported.
- Model calls per answer, which sets the re-read factor.
- Live pages crawled, if you request full pages.
- Whether the answer was correct on a labelled sample.
Put the medians into the calculator, add fixed costs, and compare cost per correct answer. Vendor accuracy figures are a starting point, not a substitute. You.com reports 93.48% on SimpleQA for the Answer API, and your questions will differ from SimpleQA.
Where You.com fits, honestly: the Answer API when you want cited answers at a flat $5 per 1,000 and can live without choosing the model. The Web Search API when you own the model and prompt and want to control tokens per search. The Research API, from $12 per 1,000 at lite to $100 at deep, when a question needs multiple searches and synthesis. The Contents API, at $1 per 1,000 pages, extracts clean content from URLs you already have; it is not a crawler. Current rates are on the pricing page.
Frequently Asked Questions
It depends on the tokens results add as much as on search fees. In a worked example at 50,000 answers a month with two searches each, costs ranged from $0.005 per answer on a managed answer API to about $0.047 on a native model search tool, at November 2026 list prices. Searches per answer, result tokens per search and how often those tokens are re-read can move the total as much as the per-search fee does.
Not per query. Gemini 3 and newer charge $14 per 1,000 search queries after 5,000 free a month, against $5 to $7 per 1,000 for several standalone search APIs. Google describes retrieved grounding context as excluded from input tokens, which narrows the gap. Check capacity and terms too: the default Developer API cap is 1,500 grounded requests a day per project, and grounded results cannot be cached.
Often. Results are long, and the model bills for every token it reads. At Claude Sonnet 5.5's list rate of $2 per million input tokens, the roughly 7,000 tokens in default You.com highlights for 10 results cost $0.014, nearly three times a $0.005 search call. Agents that keep results in context pay again on each later model call unless a prompt cache absorbs the re-reads.
Sometimes. With your own search API and model, caching answers to repeated questions is often the largest saving, subject to each vendor's terms. Google's Gemini API terms prohibit caching results from Grounding with Google Search, apart from narrow exceptions such as chat history. Prompt caching is a separate lever: it cuts the cost of re-reading result tokens inside an agent loop when calls arrive within the cache lifetime.
When you want a cited answer to a question and do not need to choose the model, prompt or output format. The You.com Answer API charges $5 per 1,000 calls with retrieval, synthesis and citations included, so there is no separate token bill. Build on a search API instead when an agent must reason over results under your own instructions or needs structured output.
LI Test
LI Test
Share Article:
Related resources.

Factory Cuts Droid Web Search Latency by 5x and Pushes Reliability Past 99.9% with You.com
June 23, 2026
Case Studies

Same LLM, Better Web Search, Better Outcome
May 7, 2026
Blog

Guide: Why API Latency Alone Is a Misleading Metric
April 15, 2026
Guides

Why API Latency Alone Is a Misleading Metric
April 7, 2026
Blog

P99 Latency Explained: Why It Matters & How to Improve It
February 25, 2026
Blog