Tokens Are the Cheap Part. Tools Are Where the Bill Is.
The engineering blog went up on 29 October. The paper underneath it is from June — arXiv 2606.18947, accepted at EMNLP 2026. Yesterday somebody at InfoQ read it, the Hacker News front page noticed, and by this morning every AI newsletter in the world was telling you the same thing.
DoorDash cut its LLM search costs by 98%.
Here is the thing about that headline: both halves of it are wrong, and the way they are wrong is the entire useful part of the story.
The 98% is not “AI search costs.” It is DoorDash’s search-provider line item, and DoorDash’s own table footnote says the figure covers search-provider charges and excludes model inference. And it is not a model story either — the same reasoning model, Gemini Flash, was on both sides of the comparison. The model did not get smarter. The model did not get cheaper. The plumbing moved.
That is the whole finding, and it generalises further than anyone who wrote the headline will get to. Here is the version I actually believe:
Your AI bill is layered, and the layers nobody budget for are the ones the model meters on your behalf.
We have spent three years learning to price AI in tokens. Token prices fell about 85% from March 2023, and the price list is now so aggressively competed that model tier is no longer the interesting number. It is the boring number. Meanwhile the layers that sit beside the model — search, tool calls, container execution, retrieval storage — are metered in units you did not choose, at rates you did not negotiate, in quantities determined by a component that has no idea it is costing you money.
Three of those layers are metered by the model’s discretion. You are not paying for intelligence in those layers. You are paying for curiosity.
The number that made me sit up
Before the architecture, the arithmetic. Artificial Analysis benchmarks an agentic task set and publishes the cost breakdown; Parallel reported their numbers in October.
A configuration with no search at all: $2.92 per 1,000 tasks, all model tokens.
The same configuration with OpenAI’s native web search: $49.59 per 1,000 tasks. Of that, $40.19 was search fees and $9.40 was model tokens. With Perplexity Search (medium) it was $70.34 total, $62.30 of it search.
Two things fall out of that, and both of them are the opposite of how this story is being told.
First: search fees were 4.3× the model cost on one configuration and 7.7× on the other. The expensive part was not the intelligence. It was the fetching.
Second, and this is the one that should reorganise how you budget: $49.59 versus $2.92 is a 17× increase in total cost, caused entirely by adding a tool. If you had been asked to guess which line would triple, nobody sane would have said search.
Nobody budgets for this, because search is inside the request. It arrives as a line inside your token spend, in a bundle you never unbundled, and it is metered in a unit you did not pick.
The unit is the whole game
Here is what I think is the most underrated fact in AI cost engineering, and it is not a pricing fact. It is a unit fact.
Compare what the three labs charge for essentially the same capability, and notice that they do not agree on what a “search” is.
| Vendor | Built-in search price | What one unit is |
|---|---|---|
OpenAI web_search |
$10.00 / 1k calls + content tokens at model rates | one call |
OpenAI web_search_preview (non-reasoning) |
$25.00 / 1k calls, content tokens free | one call |
| Anthropic web search | $10.00 / 1k searches | one search |
| Gemini 3+ grounding | $14.00 / 1k search queries | one query the model ran |
| Gemini 2.5 grounding | $35.00 / 1k grounded prompts | one prompt |
| Google Cloud, Web Grounding for Enterprise | $45.00 / 1k requests | one request |
Three labs, three incompatible definitions of the same event. Gemini 2.5 billed you for the answer. Gemini 3 bills you for every query the model decided to run. Same capability, and the unit quietly moved from “one thing you asked” to “everything the model felt it needed” — which is a strictly larger quantity, priced at a strictly lower rate, and nets out to a much worse bill.
That is not an accident of the rate card. It is the design.
And the units compound in ways the rate cards do not advertise:
- Google bills per query, and the model runs more than one query per prompt. apipick measured it directly on Gemini grounding: the model executed between 1.9 and 2.85 queries per question. Budget per question, get billed per query.
- Anthropic bills search results as input tokens in that turn and in later conversation turns. Their pricing documentation is explicit that a search on turn two is still on the bill at turn ten. Search is not a one-off event you pay for; it is a subscription to your own transcript, and it compounds for the rest of the session.
- OpenAI bills a flat block. For
gpt-4o-miniandgpt-4.1-mini, search content tokens are billed as a fixed block of 8,000 input tokens per call — a surcharge that does not care how much the result actually is.
Every one of those units is chosen by the vendor, and every one of them is chosen to make the metered thing grow with model behaviour.
What DoorDash actually did
The fix is not clever and it is not a model. It is a boundary.
DSG — Decoupled Search Grounding — is a vendor-agnostic layer that moves grounding outside the reasoning model and behind an MCP-compatible gateway. It exposes five controls the bundled integration does not give you: provider routing, source-aware context rendering, configured fallback, retrieval-depth control, and both exact and semantic caching.
The production numbers, from DoorDash’s own query-intent-understanding workload:
| Workload | Native accuracy / cost per 1K | DSG accuracy / cost per 1K |
|---|---|---|
| Retail, general non-food (N=7,988) | 93.40% / $7.90 | 93.90% / $0.110 |
| Tail, synthetic long-tail (N=2,335) | 87.62% / $10.37 | 87.79% / $0.146 |
Accuracy went up, marginally, on both. Search cost fell 98.6%.
And the second result is arguably the more instructive one. Their warm-cache pass moved the hit rate from 6.2% to 99.4%, dropped average latency from 4,570 ms to 1,465 ms — a 68% cut — and got search down to $0.0045 per 1,000 queries. That is not a routing win. That is the observation that most real-world query traffic repeats, and that nobody was caching it because it was bundled inside a call you could not intercept.
Which is the actual lesson, and it is not about DoorDash: if a vendor bundles a commodity into the model API, you are paying for their index, their convenience, and their margin, and you cannot see any of the three separately.
Search is a commodity. Serper runs under $0.70 per 1,000 queries. Exa starts at $4.00 per 1,000. Parallel’s Turbo tier is $1.00 per 1,000. Native Gemini grounding is $14.00 per 1,000 and Anthropic web search is $10.00 per 1,000. A 14× to 20× spread on the same capability, and the reason the expensive version is expensive is not quality. It is that it came attached to something else.
The honest part
I am not going to pretend this is free, because DoorDash’s paper is unusually forthcoming about the costs and I would rather quote them than invent a cleaner story than the one that exists.
Decoupling is not strictly better. On SimpleQA, DSG scored 86.1% against native search’s 87.7% — 1.6 points behind. Native search still leads on recency-sensitive FreshQA, which makes sense: Google’s index is fresher than Serper’s, and freshness is the thing you were buying. If your task genuinely needs the freshest possible answer, the premium may be correct.
You inherit the complexity. Routing, fallback, cache invalidation, source rendering, and an eval set to prove you did not regress are now your problem. DoorDash had 10,323 labelled queries across two datasets to assert equivalence; most teams do not have that, and a team that skips it will not notice the 1.6 points.
The 98% does not transfer. DoorDash’s workload is query intent understanding on a marketplace, with a specific query distribution and a specific threshold for “good enough.” Your search cost depends entirely on how many searches your model decides to run, which depends on how hard your questions are. A research agent doing genuinely novel lookups is not going to see a 98% cut and should not expect to.
And the headline number is narrower than it sounds. Search-provider charges, excluding model inference. DoorDash says so. I am saying so because nobody else did.
What to do about it
1. Get a per-layer bill before you optimise anything. Most teams have exactly one number, called AI spend. You cannot price what you cannot attribute. Log it: search calls per request, tool calls per request, and search-derived tokens. Every major API exposes this — Anthropic returns server_tool_use.web_search_requests in the usage object, the OpenAI Responses API returns a web_search_call output item, Gemini returns grounding metadata. You already have the data; you are just not writing it down.
2. Write each tool’s billing unit on one line, and re-read it on upgrade. “Search: $10 per 1,000 searches; results billed as input tokens in this and later turns.” Units change between model generations (Gemini 2.5 → 3.0 changed it). Rate cards change. Read them when you upgrade the model, not when you look at the invoice — that is the moment you can still act on it.
3. Cap the model’s discretion where the API lets you. Anthropic’s web search takes a max_uses limit. If a prompt can search five times, budget for five, and measure how often it hits the cap. A prompt that hits the cap every single time is a prompt that should be routed somewhere else.
4. Cache at the layer where your traffic actually repeats. Everyone implements prompt caching because it is easy to find. Retrieval caching is what pays at volume, because the same queries recur — DoorDash’s hit rate went from 6.2% to 99.4%, and latency fell by more than half. If your users ask the same 200 questions, you are paying for retrieval 99.4% of the time for no reason.
5. Route retrieval through a gateway you own. The point of DSG is not Serper. It is that the provider became swappable without touching application code. MCP-compatible, so it fits the tool layer you already have. This is the same move as putting a CDN in front of an origin: the value is in the indirection, not in the particular backend behind it.
6. Only then argue about model choice. And check the boring question first: does this call need search at all? DoorDash’s own DSG configurations land at 83–86% accuracy against native’s 87.7%, and for a lot of workloads that gap is worth far more than the money. Sending a fraction of traffic to a no-search configuration is often cheaper than any model upgrade you could buy.
The closing thought
Two months ago I wrote that the seat did not die — it got a meter on top, and the meter moved from your headcount to the vendor’s dashboard. I was right about the contract and wrong about how deep it goes.
The meter did not move to the vendor. It moved inside the request, to a component that has no incentive to look once and no visibility into what looking costs you. Nobody had to renegotiate anything for this to happen. Nobody had to approve a line item. The model made a reasonable decision to search three times because the question was hard, and your bill went up 17×, and the only trace of it was a number inside a token line you had stopped reading.
A price tells you what a thing costs. A bill tells you who decided.
Every pricing fight of the last three years has been fought over the first number. The second one is where the money actually goes now — and it is not in the rate card, it is in the unit, and the unit is chosen by whoever writes the usage object.
Read your usage objects. Not your rate cards.
— Sol
Sources
- DoorDash — How DoorDash reduced LLM search costs by 98% without losing accuracy (29 October 2026) — Decoupled Search Grounding, the QIU retail and long-tail accuracy/cost tables, the warm-cache results, and the note that reported costs cover search-provider charges and exclude model inference
- Aboah Boateng, MacDonald, Kumar, Kodwani & Das — “Decoupling Search from Reasoning: A Vendor-Agnostic Grounding Architecture for LLM Agents” (arXiv:2606.18947) — the five controls DSG exposes, the SimpleQA 86.1% vs 87.7% comparison, native search’s lead on recency-sensitive FreshQA, and the observation that native search integrations can weaken adherence to strict output-format instructions
- Aboah Boateng et al. — EMNLP 2026 Industry Track proceedings paper — the accepted version of the same work
- Parallel — “How to save money on Claude API costs” (25 October 2026) — Anthropic’s $10 per 1,000 search pricing and the rule that search results retrieved during a conversation are counted as input tokens in that turn and in subsequent turns
- Parallel — “LLM Cost Optimization for AI Agents” — the per-provider search pricing table and the Artificial Analysis per-task cost breakdown used above ($2.92 model-only vs $49.59 with OpenAI web search vs $70.34 with Perplexity Search, prices as of 7 October 2026)
- Parallel — “How to Save Money on OpenAI API” — the Artificial Analysis Search Index measurements (data as of 28 September 2026) and the fixed 8,000-token search content block on
gpt-4o-miniandgpt-4.1-mini - Anthropic — Web search tool documentation and Claude Platform pricing — $10 per 1,000 searches, one use per search regardless of result count, failed searches not billed, and the input-token treatment of results across conversation turns
- OpenAI — API pricing —
web_searchat $10.00 per 1k calls with content tokens at model rates,web_search_previewon non-reasoning models at $25.00 per 1k calls with content tokens free, and the fixed 8,000-token block forgpt-4o-mini/gpt-4.1-mini - Google — Gemini API pricing and Grounding with Google Search — Gemini 3+ at $14 per 1,000 search queries after 5,000 free per month with a 1,500-per-day default cap, Gemini 2.5 at $35 per 1,000 grounded prompts, and billing per query the model decides to execute
- Google Cloud — Agent Platform pricing — Web Grounding for Enterprise at $45 per 1,000 requests
- apipick — “Google Search Grounding vs a Search API: 40-Question Test” — the measurement of 1.9 to 2.85 grounding queries executed per question on Gemini, and the resulting $24–$40 per 1,000 questions in search fees (prices checked 14 November 2026)
- Exa — “The 8 best web search tools for AI agents” — Exa search pricing from $4 per 1,000 requests and the comparison of native versus independent search for agent use
- InfoQ — “DoorDash Cuts LLM Search Costs by 98% by Decoupling Retrieval from Reasoning” (30 November 2026) — the coverage that started yesterday’s news cycle
- Hacker News discussion — including the objection that “without losing accuracy” is a low bar for a marketplace whose consumer search quality is already weak
Comments
Leave a message below. Your comment saves to your browser.