AI-generated content. This article was researched and written by an automated AI editorial system and published without prior human review. Every factual claim is checked against cited primary sources before publication, but no journalist read this page before you did — treat it accordingly, and report anything that looks wrong. How this works ›

Some links on this page are affiliate links. We may earn a commission at no extra cost to you.

What Agent Tool Calls Cost: Search, Fetch and Sandbox Time

Updated: Nov 14, 2026
5 tools · 2026

An agent's bill is no longer just tokens. A web search costs $0.75 per 1,000 on DeepSeek, $10 on Anthropic and OpenAI, and $14 on Google — an 18x spread on the one line item no cost calculator models. On a 20-search research task the tool calls are 59% of a DeepSeek bill and 93% of a Claude Haiku 5.5 one, and prompt caching makes that worse rather than better, because it only cuts the token side. Here is every metered non-token surface, priced, with a monthly budget for a 1,000-task agent.

An agent’s bill has two halves now, and most buyers only watch one. A web search costs $0.75 per 1,000 requests on DeepSeek, $10 on the Claude API, $10 on OpenAI and $14 on Google — an 18.7x spread on a line item no cost calculator models. On a research task with 20 searches, 20 fetches and 110,000 tokens, the tool calls are 59% of a DeepSeek bill and 93% of a Claude Haiku 5.5 one. If your agent searches the web, pick the provider on its per-call rate first and its token rate second. If it mostly fetches named URLs, Anthropic charges nothing per call and DeepSeek charges $0.75 per 1,000 — the one case where the order reverses. Sandbox time is metered on a third axis again, in blocks neither vendor calls wall-clock.

Every metered non-token surface, priced

These are the charges that appear on an agent’s invoice in addition to input and output tokens. Prices verified 14 November 2026 against DeepSeek’s pricing page, the Claude web search and code execution docs, OpenAI’s pricing page and Google’s AI Studio pricing.

SurfaceDeepSeekClaude APIOpenAIGoogle
Web search$0.75 / 1k successful$10 / 1k$10 / 1k calls$14 / 1k, 5,000/mo free
Fetch a named URL$0.75 / 1k successful$0 (tokens only)——
File / document search——$2.50 / 1k calls—
Document storage——$0.10 / GB-day, 1 GB free—
Sandbox / container—$0.05 / hour / container, 1,550 h free$0.03–$1.92 per 20-min session—
Failed calls billed?No (“successful”)No (stated)Not statedNot stated
Free allowanceNone1,550 container-hours/mo1 GB storage/mo5,000 searches/mo
Hard capNone publishedmax_uses per turnNone published1,500 searches/day

Three structural things fall out of that table before any arithmetic.

The axes do not match. DeepSeek bills per action. OpenAI bills per 20-minute session, sized by memory. Anthropic bills per container-hour with a floor. Google bills per request against a monthly grant and a daily ceiling. There is no unit in which these four are directly comparable, which is why a per-million-token comparison — the only one every vendor publishes and the only one our calculator models — stops describing an agent’s bill the moment the agent reaches outside the model.

OpenAI’s search is $10 or $25 depending on who pays for the reading. Standard web search is $10 per 1,000 calls plus the search content billed at model token rates. The preview variant for non-reasoning models is $25 per 1,000 with the search content tokens free. Which is cheaper depends entirely on how much text the results drag into context, and OpenAI leaves that sum to you.

Anthropic’s zero-cost fetch is the quiet outlier. Web fetch on the Claude API has “no additional charges beyond standard token costs.” Anthropic’s own worked figures: an average 10 kB page is ~2,500 tokens, a large docs page ~25,000, a research-paper PDF ~125,000. So a fetch-heavy agent on Claude pays a token bill that scales with page size and a per-call bill of zero — and on DeepSeek pays $0.75 per 1,000 fetches on top of cheaper tokens.

The arithmetic no vendor page does

One task: 20 searches, 20 fetches, 100,000 input tokens on a cache miss, 10,000 output tokens. That is a realistic shape for a research or triage agent, and it is the shape where the two halves of the bill cross over.

StackTool callsTokensTotalTool share
DeepSeek Flash (off-peak)$0.030$0.021$0.05159%
DeepSeek Flash (peak)$0.030$0.042$0.07242%
Claude Haiku 5.5$0.200$0.015$0.21593%
GPT-6 Luna$0.200$0.015$0.21593%
Gemini 3.8 Flash$0.280$0.113$0.39371%
Claude Sonnet 5.5$0.200$0.300$0.50040%

Read the Haiku line twice. The cheapest frontier-vendor model on the market, at $0.10 in / $0.50 out, spends thirteen times more on its searches than on its thinking. Swapping Haiku for Sonnet 5.5 — a 20x rate increase on tokens — only raises this task’s total by 2.3x, because the fixed $0.20 of search dominates the cheap model and not the expensive one. On a search-heavy workload, model choice stops being the main cost lever.

One trap specific to Anthropic: search results “are counted as input tokens,” and Claude Haiku 5.5 charges a 5x surcharge on every rate above 100,000 input tokens. Twenty searches’ worth of results is exactly how a 90,000-token prompt becomes a 110,000-token one. Cross that line and the token side of the task goes from $0.015 to $0.075 — still the smaller half, but it quintuples without a single change to your own prompt.

Caching cuts the wrong half

Prompt caching is the first lever anyone reaches for, and on an agent it is the lever that works least. The meter on search and fetch does not know or care whether your prefix was a cache hit.

DeepSeek Flash, same taskTool callsTokensTool share
Cache miss, off-peak$0.030$0.02159%
95% cache hit, off-peak$0.030$0.00781%
95% cache hit, Claude Haiku 5.5$0.200$0.00797%

A 95% hit rate on DeepSeek’s $0.003-per-million cache-hit rate cuts the token side by two thirds and the total bill by 27%. The same engineering effort on the tool side — one fewer search per task — saves $0.0015, or 5% of the whole bill. Twenty searches is where the money is, and the only way to spend less is to make fewer calls. Which vendor’s cache survives your idle gap is a real question; it is just not the one that decides an agent’s invoice.

Session time is not the time your code ran

Both sandbox meters round, in opposite directions, and both can bill for work you did not do.

A two-minute analysis step costs $0.03 on a 1 GB OpenAI container, because the unit is a 20-minute session, and about $0.004 on Anthropic, because the unit is an hour with a five-minute floor. Run that step four times an hour inside one OpenAI session and you may pay once; run it four times across an hour of idle gaps and the container has expired between each — “a container expires if it is not used for 20 minutes,” it cannot be moved back to active, and the replacement is a new session. An idle agent pays per wake-up.

Anthropic’s exposure is the mirror image: if files are attached, “execution time is billed even if the tool is not called,” because the files are preloaded onto the container. Against that, the 1,550 free hours a month are generous enough that most single-agent workloads never reach the $0.05 rate at all — and code execution is free outright when used with the current web search or web fetch tools, which is how Anthropic’s dynamic filtering runs. That filtering is the one feature in this whole comparison that cuts the token side of a search without touching the $10 per 1,000.

A monthly budget for a 1,000-task agent

Same task shape, 1,000 tasks a month: 20,000 searches, 20,000 fetches, 100M input tokens, 10M output tokens.

StackTool callsTokensMonthly
DeepSeek Flash, 95% cached$30.00$7.00$37
DeepSeek Flash, cache miss$30.00$21.00$51
Claude Haiku 5.5$200.00$15.00$215
GPT-6 Luna$200.00$15.00$215
Gemini 3.8 Flash$210.00$112.50$322.50
Claude Sonnet 5.5$200.00$300.00$500

Google’s line already has the 5,000 free searches deducted — 20,000 billable searches would be $280, the grant takes $70 off. It also runs closest to a wall: at 667 searches a day this agent sits under the 1,500-a-day cap, but a 2,250-task month does not, and no amount of money raises that limit on the published page.

The spread between the cheapest and the most expensive row here is 13.5x, and three quarters of it comes from the tool meter, not the model. That is the inversion worth internalising: for an agent, the rate card you were comparing is the minor term.

What to buy

If you are running a coding agent rather than a research one, the metered surfaces are the same but the mix is not: see the harness comparison and the reviews of Claude Code and Codex, both of which call DeepSeek’s Search and Fetch endpoints when pointed at a DeepSeek key — which is how a bill grows without a deploy. For the non-API version of the same problem — platforms that meter tasks, credits and executions instead of tokens — see what AI automation really costs, and the developer buyer’s guide for how these choices sit next to the subscription ones. Live rates for every model named here are in the pricing tracker.

What changed

Frequently asked questions

Which provider has the cheapest agent tool calls?

DeepSeek, by more than an order of magnitude on the per-call line: $0.75 per 1,000 successful Search requests and $0.75 per 1,000 Fetch requests, against $10 per 1,000 searches on the Claude API, $10 per 1,000 calls on OpenAI's standard web search and $14 per 1,000 on Google's Grounding with Google Search. That is an 18.7x spread between the cheapest and the most expensive search. The caveat that matters: DeepSeek is the only one of the four that puts a meter on fetching a named URL at all. Anthropic's web fetch tool is explicitly 'available on the Claude API at no additional cost' — you pay only for the tokens the page consumes. So on a workload that fetches more than it searches, Anthropic's per-call bill is zero and DeepSeek's is not. Prices verified 14 November 2026.

Does prompt caching reduce my tool-call costs?

No, and it makes the tool calls a larger share of the bill. Caching is a discount on input tokens only; the per-call meter on search, fetch and file search is indifferent to it. Work the DeepSeek case: a task with 100,000 input tokens, 10,000 output tokens, 20 searches and 20 fetches costs $0.021 in tokens and $0.030 in tool calls off-peak, so tool calls are 59% of the bill. Push the input to a 95% cache hit and the token side falls to about $0.007 while the tool side stays at $0.030 — now it is 81%. The same move on Claude Haiku 5.5 takes the tool share from 93% to 97%. Every lever you have for token costs — caching, batch, off-peak, a smaller model — tightens the half of the bill that was already the smaller half.

How is sandbox or container time billed, and is it wall-clock?

Neither vendor bills the seconds your code actually runs, and they round in opposite directions. OpenAI prices Code Interpreter and hosted shell containers per 20-minute session by memory size: 1 GB $0.03, 4 GB $0.12, 16 GB $0.48 and 64 GB $1.92, which works out at $0.09 to $5.76 per hour-equivalent. A container 'expires if it is not used for 20 minutes', the timeout is not documented as configurable, and an expired container cannot be revived — 'create a new container and upload files again', which starts a new billable session. Anthropic bills code execution at $0.05 per hour per container beyond 1,550 free hours a month, with a five-minute minimum, and bills that time 'even if the tool is not called' when files are attached to the request, because the files are preloaded. So a two-minute code step costs $0.03 on a 1 GB OpenAI session and about $0.004 on Anthropic's minimum.

What free allowances exist, and when do they run out?

Three worth planning against. Google gives 5,000 free search-grounding requests a month, shared across all Gemini 3 and newer models — about $70 of value at the $14 rate — and then caps billable use at 1,500 requests a day. Anthropic gives every organisation 1,550 free code-execution hours a month, which is more continuous container time than most single-agent workloads can consume, so the $0.05 rate rarely bites. OpenAI includes 1 GB of file-search storage a month against a $0.10 per GB-day rate. Nobody gives away searches on the Claude API or OpenAI's web search: those meter from the first call. Google's daily cap is the one that can stop a working agent rather than just cost money — on a 20-search task shape it binds at about 75 tasks a day.

Are failed tool calls billed?

Where the docs say, no — and the docs do not always say. Anthropic states plainly that 'a web search that fails with an error is not billed', and that each search counts as one use regardless of how many results come back. DeepSeek prices Search and Fetch 'per 1,000 successful requests', which carries the same implication. OpenAI's and Google's pricing pages do not address error handling for tool calls at all, so budget as if a retry storm is billable there. Note a related trap on Anthropic: the `max_uses` cap is the only hard ceiling on spend per turn, and failed searches do count against `max_uses` even though they are not billed.

Is there a cheap model for the routing and policy steps an agent makes constantly?

Google now sells one. `gemini-decision-1` bills $0.10 per 1M input tokens and generates zero output tokens, so there is no output meter at all, and each request bills its shared input once no matter how many questions it carries. A 2,000-token policy check costs about $0.0002. The same check on Gemini 3.8 Flash with a 200-token answer costs about $0.00225 — roughly 11x more — and on a reasoning model the thinking tokens bill at the output rate, so the gap widens with how hard the model works. The trade is that it only returns decisions; it cannot write the answer. For an agent that makes twenty routing calls per task before it does any real work, that is the right shape, and it is the only priced floor any vendor currently publishes for that step.