DoorDash says it has cut the search fees on its AI features by more than 98% without losing accuracy. In an engineering post, the company describes a gateway called Decoupled Search Grounding (DSG) that pulls web search out of the model call. On its retail test set, DoorDash puts the fee at $0.11 per 1,000 queries, down from $7.90 for the search built into the model.
I read the post in full, DoorDash’s earlier research paper on the same system, and the published prices of the search services it names. Every DoorDash figure below is DoorDash’s own measurement of its own system. DoorDash hasn’t released the gateway, so there’s nothing to install and run, and I haven’t reproduced any of it.
- Why search matters to DoorDash
- How the gateway works
- The cost results
- The public benchmarks
- Caching and how many results to fetch
- The chatty-answer problem
- What it runs in production
- What search backends cost
- Reading the numbers
- Where it sits among the other search stacks
- What comes next
Why search matters to DoorDash
DoorDash uses language models to work out what a shopper means, and a model on its own often guesses wrong about local names. The post’s example is “450 North”. With no help, the model called it a restaurant. DoorDash’s catalogue and a web search both pointed to a craft brewery, so the query was routed to Alcohol instead.

That is a search-grounded model: it looks things up before it answers. The catch is the bill. Search tools built into model APIs charge per query, and a marketplace that runs this on a large share of its searches pays for every one of them. DoorDash’s answer was to build its own layer.
How the gateway works
The idea is to stop letting the model call its own search. Instead the model asks for a search through a tool, and a gateway DoorDash runs does the work. The gateway speaks the Model Context Protocol (MCP), so any model that can use tools can use it. Behind it sit interchangeable search providers: Serper, BrightData, Firecrawl, Exa and Tavily, with a model’s native search registered as one more option.

Each request follows the same path. The gateway normalises the query, checks an exact-match cache, then a semantic cache that catches rephrasings, and only then calls a provider, falling back down a chain if one fails. Results come back in one shape (title, link, snippet), the caches are written with a lifetime per provider, and the model gets a structured reply. Every step is logged, and a new HTTP search provider can be added with a YAML adapter rather than new code.

Splitting search from the model has a second benefit DoorDash points to: the reasoning model and the search source can be changed independently. A cheaper search provider doesn’t mean a different model, and a better model doesn’t mean a new search contract.
The cost results
DoorDash tested on two sets of its own queries. The retail set has 7,988 queries. The tail set has 2,335 synthetic queries built to be unusual. The baseline was Gemini Flash using Google’s search grounding built into the model. The comparison is DSG using Serper for search.
$7.90
Per 1,000 retail queries with native search
$0.11
The same 1,000 through the gateway with Serper
93.9%
Retail accuracy through the gateway, against 93.4%
98%+
DoorDash’s stated cut in search fees
| Test set | Setup | Accuracy | Search fee per 1,000 |
|---|---|---|---|
| Retail | Native search | 93.40% | $7.90 |
| Retail | Gateway with Serper | 93.90% | $0.110 |
| Long tail | Native search | 87.62% | $10.37 |
| Long tail | Gateway with Serper | 87.79% | $0.146 |

Accuracy in both sets is level, with the gateway a hair ahead. The 98% claim holds on both sets, and it describes search fees only. The model that reads the results is billed separately.
The public benchmarks
DoorDash also ran the gateway on public question sets, using five models: GPT-4o, GPT-4o-mini, Gemini 2.5 Flash, Gemini 2.5 Pro and Claude Sonnet 4. Here the result is less one-sided. Through the gateway the models reached 83% to 86%, against 87.7% for native search, at roughly 10 to 30 times lower cost. BrightData came within 1.6 points of native at about 11 times lower cost, and Serper came in under 70 cents per 1,000.
The post is open that native search wins in one place, FreshQA, which tests recent facts. A search tool built into a model’s own provider can reach fresher data than a generic API. My reading is that matching a shopper’s query to a catalogue leans on stable facts, so that gap matters less for DoorDash than it would for a news product.
Caching and how many results to fetch
The caches do real work. On a cold cache DoorDash saw a 6.2% hit rate at $0.7385 per 1,000 and 4,570 ms per query. On a warm cache the hit rate was 99.4%, the cost $0.0045 per 1,000, and the time 1,465 ms, about 68% faster.
The post also tests how many results to hand the model. On SimpleQA, two results scored 78.7%, six scored 84.9% and ten scored 85.5%. The step from two to six is worth 6.2 points. The step from six to ten is worth 0.6, so most of the benefit arrives early.

The chatty-answer problem
The least obvious finding is about behaviour, not cost. When models used their own built-in search, they started ignoring instructions to answer in a fixed format. DoorDash calls it search-induced verbosity. Asked a yes-or-no question, a model would open with “Based on the search results” and run to 245 characters where the gateway version replied “Yes.” in three.
That matters when software reads the answer. On HotpotQA, DoorDash reports Claude Sonnet 4 broke the answer-only contract 78.1% of the time with native search. A product that expects “Yes” or “No” can’t parse a paragraph. Returning the results as plain data helps, though DoorDash says it reduces the problem rather than ending it.

What it runs in production
This isn’t a lab demo. DoorDash’s earlier paper, accepted at SIGIR, describes the search-grounded query system now in production and says it serves over 95% of daily search impressions. It reports 10.9 points more accuracy than the same model without grounding and 4.6 points more than DoorDash’s previous production system. On rare queries it reached 90.7%, up 13.0 points.
The paper breaks the gain into parts: 8.3 points came from grounding in the product catalogue, 3.2 from agentic web search and 1.5 from handling queries with two possible meanings. So web search is the smaller share of the lift. It is also the expensive part, which is why the gateway matters.
What search backends cost
The gateway only saves money because backends differ so much in price. These are the published list prices per 1,000 searches, which vary with plan and volume.
| Service | Published price per 1,000 | Notes |
|---|---|---|
| Serper | $1.00 down to $0.30 | Cheaper in larger packs; a free allowance of 2,500 queries |
| Brave Search API | $5 | Per request |
| Tavily | $8 basic | Pay-as-you-go credits; advanced search costs two credits; plans go lower |
| Exa | $4 Lite, $7 Auto, $12 Deep | Extra results above ten cost more |
| Google search grounding (Gemini 3 and later) | $14 after the free allowance | Billed per query; older Gemini models bill per prompt |
| Anthropic web search | $10 plus tokens | Token costs on top |
Against that, DoorDash’s $0.11 per 1,000 is mostly Serper’s low price plus a cache that answers repeats for free. The saving comes as much from caching and a cheap provider as from the architecture itself, and a team with few repeated queries would see less of it.
Reading the numbers
- It is DoorDash’s account of itself. The tests, the data and the baseline are DoorDash’s. No outside party has reproduced them.
- Search fees only. The 98% figure excludes what the model costs to read the results, which is often the bigger bill.
- The tail set is synthetic. Its 2,335 queries were generated to be hard, so they show the gateway holds up on odd queries, not how often odd queries occur.
- The baseline is one setup. Native search was Gemini Flash with Google’s grounding. A different native tool could cost more or less.
- DoorDash lists its own limits. It depends on third-party search vendors, gains little on questions that need several hops of reasoning, and has only reduced the verbosity problem.
Where it sits among the other search stacks
DoorDash isn’t alone in treating search as its own layer. Search vendors are competing to be that layer: I covered Cloudflare’s endpoint that lets agents search a site directly, and Perplexity’s API that can see the web as it was. DoorDash’s post is the buyer’s view of the same market. Its numbers suggest that once search is a separate, swappable service, price becomes something a buyer can shop on.
What comes next
- Adaptive routing, which would send each query to whichever provider suits it best.
- Validators that check an answer against its required format before it is used.
- Iterative retrieval, where the model searches again when the first results fall short, aimed at the multi-hop gap.
In short: DoorDash says moving search out of the model and into its own cached gateway cut search fees by more than 98% at equal accuracy, and it has run that way in production. The numbers are DoorDash’s own and cover search fees only, native search still won on fresh facts, and the saving depends on cheap providers and repeated queries.
What I read for this piece
I read DoorDash’s full engineering post and its earlier research paper on search-grounded query understanding, and checked the search prices against each vendor’s published pricing. DoorDash hasn’t released the gateway, so I didn’t run it. I haven’t seen DoorDash’s data or code, only the post’s description of them.
Sources
- DoorDash: How DoorDash reduced LLM search costs by 98% without losing accuracy
- arXiv: DoorDash’s search-grounded query understanding paper
- Serper
- Exa pricing
- Tavily pricing
- Brave Search API
- Google: Gemini API pricing
- Anthropic: Web search tool
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.






