DeepSeek Search API Pricing: $0.75/1K and Web Search Tool Cost
DeepSeek search costs $0.75 per 1,000: the Search API bills each request with results, the deepseek_web_search tool each query. Agents pay since Oct 31.
On this page

DeepSeek's web search costs $0.75 per 1,000 searches as of November 14, 2026, and since November 13 there are two ways to pay that price, according to DeepSeek's Models & Pricing page. The standalone Search API at /v1/tools/search bills each request that returns results. The new deepseek_web_search tool lets deepseek-flash search on its own and bills each query inside a search call that returns results, so one call with three queries costs $0.00225 before tokens. On both, empty results, failed requests and timeouts cost nothing, page fetches are billed separately at the same $0.75 per 1,000, and there is no free allowance.
To use the tool, add {"type": "deepseek_web_search"} to tools in a Chat Completions, Responses or Messages request on deepseek-flash, and turn thinking off for one ordinary search, because thinking is on by default and turns the tool into deep thinking search with up to about 20 tool calls. In direct tests against api.deepseek.com on November 14, 2026, each searched answer cost $0.00106–$0.00444 at off-peak list prices, and some answers came back with stale data until today's date was added to the system message. Confirm that a search ran by reading usage.server_tool_use.tool_search, because the same day a request through a third-party gateway came back HTTP 200 without searching at all.
Agent tools have paid the same rate since October 31, 2026, at 16:00 UTC, and a Claude Code search on deepseek-flash works out to $0.00195 off-peak and $0.00315 at peak once result tokens are counted, assuming each search adds 6,000 input tokens and 500 output tokens. To stop that charge, add "WebSearch" to the deny list in Claude Code's settings.json. In Codex, DeepSeek's setup script 1.5.0 now turns Alpha Search on by default for both deepseek-flash and deepseek-v4-pro, so add web_search = "disabled" at the top of ~/.codex/config.toml if you don't want it.
Is DeepSeek search free? What counts as one billed request
DeepSeek search isn't free, whether you call the API yourself, let the model search with deepseek_web_search, or run an agent tool on a DeepSeek key, but only searches that return something are billed. Under the billing rule in DeepSeek's Search & Fetch guide, a direct request is billable only when it returns HTTP 200 and produces a result: a non-empty results array for Search, page content for Fetch. Everything else costs nothing, so you can predict the bill from your own success logs.
| What happens | HTTP status | Billed? |
|---|---|---|
Search returns results, with any count from 1 to 50 | 200 | Yes |
Search finds no match and returns an empty results array | 200 | No |
| Fetch returns the page as Markdown | 200 | Yes |
| Fetch can't get usable content (dead URL, blocked by the site, no extractable text) | 404 | No |
| Fetch is rejected by DeepSeek's security policy | 403 | No |
Request is malformed, or count is outside 1–50 | 400 | No |
| Key is missing or invalid, or the balance is empty | 401 / 402 | No |
| Rate limit exceeded | 429 | No |
| Request body or downstream site times out | 408 / 504 | No |

Search and Fetch are counted separately, so one search followed by three page fetches is four billed requests, or $0.003. DeepSeek's launch announcement words the price as "$0.75 per 1,000 calls," and the Search & Fetch guide says "per 1,000 successful requests," which is the rule your bill follows for direct calls. The pricing page now lists "$0.75 per 1,000 searches" and "per 1,000 fetches" and says both are billed per use whether you call the APIs or the model uses them through tools. The Chinese pricing page lists 5 yuan per 1,000, which is a separate CNY list price rather than a conversion of $0.75.
Search API or deepseek_web_search: you choose the queries, or the model does
The two products charge the same $0.75 per 1,000 searches, so the choice comes down to who controls the searching. With the Search API, your code decides when to search, what to search for and which results the model sees, and the bill is one line per request you send. With deepseek_web_search, deepseek-flash decides whether to search and how many queries to run, and you get back a finished answer with citations, as DeepSeek's Web Tools guide describes as of November 14, 2026.
| What differs | Search & Fetch APIs | deepseek_web_search tool |
|---|---|---|
| Who decides to search | Your code | The model; tool_choice can't force a search |
| Billing unit | Each request that returns results | Each query in a search call that returns results, plus each page fetched from the web |
| Cost on top of the fee | Whatever model you feed the results to | deepseek-flash tokens for the whole round |
| Models | Any, including non-DeepSeek models, because results come back to your code | deepseek-flash only |
| Filtering | site:, -site:, "exact phrase", lang:, after:, before:; count from 1 to 50 | No domain or location filter; allowed_domains, blocked_domains and user_location return HTTP 400 |
| What you get back | Results with title, URL, snippet and summary, plus full page text when need_content is true | The answer with citations; result blocks carry titles, URLs and snippets for display, not full page text |
Pick the Search API when you need a predictable number of searches, site filters, or results for a model that isn't DeepSeek, such as a retrieval pipeline. Pick the tool when you want DeepSeek Chat-style cited answers from a single request and can accept that the model sets the number of queries.
How to turn on deepseek_web_search on deepseek-flash
Declare the tool in tools and send the request to deepseek-flash on api.deepseek.com; the service runs the searches, so your code doesn't execute anything. The Chat Completions request below turns thinking off, which gives one ordinary web search with citations, like web search in DeepSeek Chat:
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-d '{
"model": "deepseek-flash",
"thinking": {"type": "disabled"},
"tools": [{"type": "deepseek_web_search"}],
"messages": [
{"role": "system", "content": "Today is Saturday, November 14, 2026."},
{"role": "user", "content": "What did DeepSeek release this week?"}
]
}'The system message carries today's date because without it the model writes a guessed date into its search queries; set it from your server clock on every request.
The same tool entry works in the Responses API at https://api.deepseek.com/responses, where "reasoning": {"effort": "none"} turns thinking off and "high" turns it on, as described in DeepSeek's Thinking Mode guide. DeepSeek's Anthropic-format Messages endpoint, https://api.deepseek.com/anthropic/v1/messages, takes the key in an x-api-key header, switches thinking with the same thinking object, and needs a name in the tool entry: {"type": "deepseek_web_search", "name": "deepseek_web_search"}.
The thinking setting decides what kind of search you pay for. DeepSeek's pricing page lists thinking as the default mode for deepseek-flash, and with thinking on, the tool works as deep thinking search: over several reasoning steps the model searches, opens pages and finds text in them, making up to about 20 tool calls before it answers. In DeepSeek's own example, a question asking which is taller, the Eiffel Tower or Tokyo Tower, checked against their official sites, ran 7 queries across two searches and opened pages five times. That is closer to research than lookup, so leave thinking on only when the question needs it.
Two related switches are worth knowing. deepseek_read_url reads links in the last user message, up to the first 10 distinct URLs, and is billed per page fetched successfully; with thinking on and deepseek_web_search declared, deep search handles links instead. To keep a request from searching, leave deepseek_web_search out of tools, or send tool_choice: "none", which turns off every tool including URL reading. If your app is open to the public, DeepSeek's November 13 announcement requires safety checks, which you turn on with "safety_check": {"level": "high"} at the top level of the request.
deepseek_web_search 400 errors and the parameters it ignores
Most rejected requests carry a setting that other search tools accept. As of November 14, 2026, DeepSeek's Web Tools guide and its Responses and Chat Completions sections list these HTTP 400 causes, and the first three messages below were reproduced word for word against api.deepseek.com that day, each returning invalid_request_error in about 1.1 seconds:
| Error message or setting | Cause | What to do |
|---|---|---|
"tool_choice: deepseek_web_search cannot be forced" | tool_choice names the web tool | Leave tool_choice on auto; required also behaves as auto |
"tools: deepseek_web_search can only be declared once" | The tool appears twice in tools | Declare it once |
"web_search_options cannot be used together with deepseek_web_search, deepseek_read_url, safety_check or title; declare deepseek_web_search in tools instead" | OpenAI-style web_search_options in Chat Completions | Remove web_search_options and keep the tool in tools |
"tools: allowed_domains is not supported by deepseek_web_search" | allowed_domains, blocked_domains or user_location on the tool | Remove them; for site filters, call the Search API with site: |
"tools: other tools cannot be used together with deepseek_web_search…" | Another server tool is declared | Remove it; the two DeepSeek web tools and safety_check can be declared together |
web_search together with deepseek_web_search in Responses | Two search tools | Keep only deepseek_web_search on deepseek-flash |
response_format other than text, logprobs, top_logprobs | Structured or scored output | Drop them while the tool is declared |
"messages: the last assistant message used deepseek_web_search… cannot be continued" | Continuing a reply that searched | Resend the previous request |
Other settings are accepted but ignored, because the service decides them while the tool is declared, according to the Build a Chatbot guide. In Chat Completions that covers temperature, top_p, frequency_penalty, presence_penalty, stop, seed, n and parallel_tool_calls; in Responses temperature, top_p, include, max_tool_calls, truncation and store; in Messages temperature, top_p, top_k, stop_sequences and thinking.budget_tokens. max_tokens still works, but it limits each inference step in the round rather than the total, so neither it nor max_tool_calls caps how much a deep search spends. The guide doesn't say whether your own function tools can be declared next to deepseek_web_search; the documented error covers other server tools.
What one deepseek_web_search answer costs: each query is billed
A searched answer on deepseek-flash with thinking off cost $0.00106–$0.00444 at off-peak list prices in direct tests on November 14, 2026, with a median of $0.0024, and the search fee was 54–75% of each answer's cost, because the tool bills every query inside a search call rather than the call itself. The tests ran on Saturday at about 11:45 UTC, an off-peak hour, against api.deepseek.com with an official DeepSeek key: 8 answers that searched, made up of 5 first-run questions and 3 reruns with today's date in the system message, with 1–4 queries each, and in every call usage.server_tool_use.tool_search equaled the number of queries listed in the call. Input ran from 1,316 to 9,121 tokens because the search results are billed as input, so at peak rates the same answers would have cost up to $0.00588. Deductions didn't show on the account right away, so these figures are list-price calculations from the returned usage, not balance changes.
DeepSeek's own example in its Web Tools guide lands in the same range. Asked for Iceland's population with thinking off, the model made one search with 2 queries, read 1,905 input tokens and wrote 72, which comes to $0.0022 at peak and $0.0018 off-peak at November 14 list prices, with the 2 queries accounting for $0.0015 of it.
| Scenario | Queries | Pages fetched | Search and fetch fee | Total, peak | Total, off-peak |
|---|---|---|---|---|---|
| Measured, thinking off, 8 answers: 5 questions + 3 dated reruns (November 14, 2026) | 1–4 | 0 | $0.00075–$0.003 | Up to $0.00588 | $0.00106–$0.00444 |
| Measured, deep thinking search, latest Formula 1 race | 2 | 0 | $0.0015 | $0.00618 | $0.00384 |
| DeepSeek's example, thinking off (1,905 tokens in, 72 out) | 2 | 0 | $0.0015 | $0.0022 | $0.0018 |
| Same answer if a call counted as one search | 1 | 0 | $0.00075 | $0.0014 | $0.0011 |
| Deep thinking search (Eiffel vs Tokyo Tower), fees only | 7 | 0 | $0.00525 | Tokens not published | Tokens not published |
| Same, if all 5 opened pages were fetched from the web | 7 | 5 | $0.009 | Tokens not published | Tokens not published |
| 10,000 answers a month like DeepSeek's example | 20,000 | 0 | $15.00 | $21.58 | $18.29 |
The formula is queries × $0.00075 + fetched pages × $0.00075 + cache-miss input tokens × $0.15 or $0.30 per million + output tokens × $0.60 or $1.20 per million, off-peak or peak, using the deepseek-flash prices on the pricing page as of November 14, 2026; the search fee doesn't change with the hour. For comparison, 10,000 questions answered with one Search API request each come to $7.50 in search fees, because there your code sends one query per request. Deep thinking search mostly adds tokens rather than search fees: the measured Formula 1 answer read 26,800 input tokens, 18,944 of them from cache, and wrote 1,845 output tokens, 1,556 of them reasoning, while the three pages it opened cost nothing (tool_fetch 0) because their content came with the search results. DeepSeek publishes no token counts for its Eiffel example, so its rows show fees only. Under the Web Tools billing rules, reopening a page, paging through it, opening a page whose content came with the search results and finding text in a page are all free; an image search counts each image as one search, plus one for each region the model selects.
Your bill follows usage.server_tool_use.tool_search, tool_fetch and tool_image_search. The web_search_requests and web_fetch_requests fields in the same object count result blocks, including errors, for display, and they aren't the billed numbers. Peak hours run 01:00–04:00 and 06:00–10:00 UTC on weekdays, as covered in DeepSeek API Peak Hours: Current Prices and When to Wait, and if you are still deciding between Flash and another model, DeepSeek V4.1 vs Kimi K3.1: Flash vs Pro and a 9–28× Cost Gap compares the token side.
deepseek_web_search not working? Check that a search actually ran
An HTTP 200 doesn't prove the model searched. The model decides on its own whether a question needs the web, a gateway can drop the tool from the request, and a generation failure after the answer has started also returns 200, so check the response fields rather than the status code. As of November 14, 2026, DeepSeek's Web Tools guide puts the evidence of a search in these places:
| Protocol | A search ran if you see | Billed searches |
|---|---|---|
| Chat Completions | message.server_tool_calls with calls of type deepseek_web_search, and url_citation entries in message.annotations | usage.server_tool_use.tool_search |
| Responses | web_search_call items in output, and url_citation annotations on the answer | usage.server_tool_use.tool_search, omitted when nothing was billed |
| Messages | server_tool_use and web_search_tool_result blocks, and text blocks with citations | usage.server_tool_use.tool_search in the final usage |
When streaming, Chat Completions sends progress in server_tool_event and delivers the complete server_tool_calls and annotations only in the last chunk, and Messages reports the full usage only in the final message_delta, so a client that reads the first chunks sees no search even when one ran.
Against api.deepseek.com directly on November 14, 2026, at about 11:45 UTC, 5 of 6 Chat Completions questions with thinking off searched. The one that didn't was "What is 17 times 23?", which came back with the right answer, no server_tool_calls and no server_tool_use, so a missing search on a question the model can answer alone is expected behavior. The Responses API returned web_search_call items with tool_search at 3, and a Messages request returned web_search_requests: 1 next to tool_search: 3, because one search block held three queries; the bill follows the 3.
A search can also run and still return stale facts. In the same tests, without a date in the request, three answers came back out of date. In two of them the model wrote its own guessed date into the queries: asked for tomorrow's weather in Tokyo, it searched for a forecast dated August 13, 2026, and answered for that day, and asked in Chinese for today's Shanghai Composite close, it reported the February 6, 2026 close. In the third, with thinking on, asked about the most recent Formula 1 race, it described the 2025 Canadian Grand Prix, although the same question with thinking off was already current. Adding a system message that began "Today is Saturday, November 14, 2026" fixed all three stale cases: the reruns returned the November 15 Tokyo forecast, noted that Chinese markets were closed on Saturday and gave the November 13 close, and named the November 8, 2026 São Paulo Grand Prix, and the thinking-off Formula 1 answer stayed correct. DeepSeek's docs don't mention passing the date, so this is a fix that worked in these three cases rather than a documented requirement.
Earlier the same day, at about 11:01 UTC, deepseek-flash requests with deepseek_web_search were sent through laozhang.ai, a third-party gateway. Chat Completions with the tool returned HTTP 400 invalid_parameter_error twice, while the same request without the tool returned 200. The Responses API returned HTTP 200 in 4.7 and 7.6 seconds, but with no web_search_call item and no server_tool_use in usage, and the model answered from memory, saying it had no verified information about a November 13, 2026 release. That result is for a default-group token on that gateway on that date, and other groups and gateways such as OpenRouter weren't tested; next to the direct results, it shows that a gateway can return a normal-looking answer with the tool silently gone.
Disclosure: laozhang.ai is our own service. Its prices are platform pricing, not an independent comparison.
If no search appears, work through these checks in order:
- The model is
deepseek-flash. The web tools are documented for that model only, and the older Responsesweb_searchtool is ignored on it. - The request reaches
api.deepseek.com, or a gateway you have confirmed passesdeepseek_web_searchthrough; the fields above are the confirmation. - The question needs fresh information. The model can't be forced to search, so a question it thinks it can answer may come back without one.
- The body has no
errorfield. A non-streaming generation failure returns 200 witherrorandusage, SDKs don't raise an exception, and searches that ran before the failure are still billed. - In multi-turn chats, the previous assistant message is passed back with
server_tool_callsunchanged. If a framework drops that field, the request still succeeds, but pages read in earlier rounds are no longer in context.
Claude Code and Codex search billing started October 31, 16:00 UTC
Server-side search and fetch calls made by DeepSeek Harness, Claude Code and Codex on a DeepSeek API key have been billable since 00:00 Beijing time on November 1, 2026, which is October 31, 2026, at 16:00 UTC. DeepSeek fixed that date in the pricing page and the Search & Fetch launch announcement, and the free period for agent tools that began on October 17 ended then. Each successful search or fetch those tools run is now billed exactly like a direct call, and there was nothing to opt into.
In local time that was Saturday, October 31, at 9:00 a.m. PDT, noon EDT, 5:00 p.m. in Madrid and 7:00 p.m. in Moscow, and Sunday, November 1, at 1:00 a.m. in Tokyo and Seoul, since US clocks fell back only after the switch. Requests you send yourself to /v1/tools/search or /v1/tools/fetch were never part of the free window, so a direct integration saw no change on that date. In Codex, DeepSeek's Codex guide counts each Alpha Search query that returns results as one Search request, and each page Codex opens or searches within as one Fetch request when the page is retrieved.
What one web search really costs inside Claude Code on DeepSeek
One Claude Code web search on DeepSeek costs about $0.002 on deepseek-flash at off-peak rates and about $0.011 on deepseek-v4-pro at peak rates, once the tokens the model spends reading the results are added to the $0.00075 search fee. DeepSeek's Claude Code integration guide says both charges apply: summarizing the retrieved content takes extra model requests billed as tokens, and the search requests themselves are billed at Search API pricing.
DeepSeek publishes no token count per search, so the table below, recalculated on October 30, 2026 from DeepSeek's list prices, which were unchanged as of November 14, assumes each search puts 6,000 tokens of results into context as cache misses and the model writes 500 tokens about them. For scale, Anthropic's Claude API pricing page puts an average 10 kB web page at about 2,500 tokens. The formula is 6,000 × the cache-miss input price + 500 × the output price + $0.00075, so you can swap in your own token counts.
| Model Claude Code runs | Hours | Tokens to read results | Search fee | Total per search | Per 100 searches |
|---|---|---|---|---|---|
deepseek-flash | Off-peak | $0.00120 | $0.00075 | $0.00195 | $0.195 |
deepseek-flash | Peak | $0.00240 | $0.00075 | $0.00315 | $0.315 |
deepseek-v4-pro | Off-peak | $0.00495 | $0.00075 | $0.00570 | $0.570 |
deepseek-v4-pro | Peak | $0.00990 | $0.00075 | $0.01065 | $1.065 |

On deepseek-flash the search fee is 38% of the total off-peak and 24% at peak; on deepseek-v4-pro it falls to 13% and 7%, so the model and the hour move your bill more than the fee does. Which model runs depends on the name Claude Code sends: DeepSeek maps names starting with claude-opus to deepseek-v4-pro, billed at the V4 Pro price, and claude-sonnet or claude-haiku names to deepseek-flash. The setup in DeepSeek's guide sets ANTHROPIC_MODEL and ANTHROPIC_DEFAULT_OPUS_MODEL to deepseek-flash[1m], so a configuration that follows it searches at Flash rates. Peak rates apply from 01:00–04:00 and 06:00–10:00 UTC on weekdays, and the environment variables themselves are covered in Claude Code with OpenRouter and DeepSeek: Setup, Routes, and First-Error Fixes.
The bigger unknown is how many billed searches one WebSearch call turns into. On Anthropic's own backend, the Claude Code tools reference says the tool may issue up to eight backend searches per call and returns only titles and URLs; reading a page is a separate WebFetch call with its own model call. DeepSeek doesn't say how many Search requests one call triggers on its side, whether Claude Code's WebFetch goes through its Fetch API, or whether the new deepseek_web_search tool sits behind either of them. One Reddit user, quoted in eesel.ai's DeepSeek Search API write-up, saw a single research subagent make 85 searches against $0.07 of model work; at the current price those searches come to about $0.06. Treat the table as a per-search price and count the actual searches in your DeepSeek usage records.
If Claude Code runs through laozhang.ai rather than DeepSeek's own endpoint, this billing doesn't reach you, because DeepSeek's Search and Fetch exist only on api.deepseek.com and Claude Code's WebSearch isn't available through laozhang.ai; its own web search is a separate feature for GPT and Grok models at $0.01 per search and Gemini at $0.014 per search, plus result tokens.
Disclosure: laozhang.ai is our own service. Its prices are platform pricing, not an independent comparison.
Does DeepSeek web search work with deepseek-flash?
Yes, as of November 14, 2026, deepseek-flash can search in the API, in Claude Code and in Codex, though not under every tool name. Since November 13 it searches in Chat Completions, Responses and Messages through deepseek_web_search. In Claude Code, DeepSeek says its Anthropic-format API natively supports Claude Code's WebSearch, and the setup in its guide runs everything on deepseek-flash. In Codex, DeepSeek's Codex guide says setup script 1.5.0 enables Alpha Search by default for both deepseek-flash and deepseek-v4-pro, and it requires Codex 0.164 or later.
The combination that still doesn't work is the Responses API's own web_search tool. The Responses API reference lists it as supported on deepseek-v4-pro and ignored on deepseek-flash, and it can't be declared together with deepseek_web_search. Codex's Alpha Search uses a standalone search endpoint, so that model restriction doesn't apply to it.
To get Codex search on deepseek-flash, run setup script 1.5.0 and choose option 1, or option 2 for deepseek-v4-pro. If you edit ~/.codex/config.toml by hand, add these lines to the [features] and [model_providers.deepseek] sections and remove any top-level web_search line, including the web_search = "disabled" that older versions of the script wrote and the web_search = "live" older instructions asked for:
[features]
standalone_web_search = true
[model_providers.deepseek]
supports_standalone_web_search = trueInstructions that pair deepseek-v4-flash with the Responses web_search tool predate both changes. That name is now a legacy alias served by DeepSeek-V4.1-Flash-1017 at the Flash price, and the Responses API ignores web_search on it, so the model answers without searching; declare deepseek_web_search instead.
Monthly bill for an app: billed requests × $0.00075
For direct API use, the monthly bill is the number of searches and fetches that return something, multiplied by $0.00075, plus whatever your own model spends reading the results. Because count doesn't change the price, the cheapest way to get more results is one request with a higher count. The request schema has no pagination or offset field, so you can't page through results: sending the same query again returns the same top results and is billed again.
| App shape (recalculated October 30, 2026) | Searches a month | Fetches a month | Search and Fetch bill |
|---|---|---|---|
| Chat feature: 1 search per question, 10,000 questions | 10,000 | 0 | $7.50 |
| RAG: 1 search and 3 fetches per question, 10,000 questions | 10,000 | 30,000 | $30.00 |
| Research agent: 6 searches and 4 fetches per task, 2,000 tasks | 12,000 | 8,000 | $15.00 |
| Monitoring: 500 queries checked every hour for 30 days | 360,000 | 0 | $270.00 |
These are upper bounds, since empty searches and failed fetches drop out of the count. Your model's share is usually the larger number, and the response format lets you control it: each result carries a snippet of 100–200 characters for display and a summary of 600–800 characters meant for a model, while full page content is only returned when you set need_content to true. Feeding the model summaries instead of full pages keeps the token side of the bill down.
Is DeepSeek cheaper than Brave, Tavily, Exa, OpenAI, Anthropic or Gemini search?
On list price, yes, by a wide margin. At 30,000 searches a month (1,000 a day), DeepSeek's Search API comes to $22.50, Exa, the next cheapest raw search API, comes to $110 after its monthly credit, and the built-in search tools of OpenAI, Anthropic and Gemini cost $300–$350 before result tokens. The figures below use pay-as-you-go list prices as of October 30, 2026.
| Provider | Price per 1,000 searches | Free allowance a month | 30,000 searches | Not included |
|---|---|---|---|---|
| DeepSeek Search API | $0.75 | None | $22.50 | Your model's tokens to read results |
| Exa search (base, up to 10 results) | $4.00 | $10 credit | $110.00 | Page text at $1 per 1,000 pages |
| Brave Search API | $5.00 | $5 credit | $145.00 | Your model's tokens |
| Tavily basic search, pay-as-you-go | $8.00 | 1,000 credits | $232.00 | Advanced depth uses more credits |
| OpenAI web search tool | $10.00 | None | $300.00 | Search content tokens at model rates |
| Anthropic web search tool | $10.00 | None | $300.00 | Result tokens billed as input |
| Gemini Grounding with Google Search | $14.00 | 5,000 requests (Gemini 3 and newer) | $350.00 | Daily cap of 1,500 requests |
The table compares prices, not equal products. DeepSeek, Brave, Exa and Tavily are raw search APIs that hand results to your own model, so their real cost includes your tokens; the OpenAI, Anthropic and Gemini tools run inside the model call and bill result tokens on top of the per-search fee. DeepSeek's own in-model tool, deepseek_web_search, belongs in that second group but keeps the $0.75 rate per query, so even at two queries per answer, 30,000 answers come to $45 in search fees. At 1,000 a day the volume stays under Gemini's published daily cap of 1,500 grounded requests. Brave's page shows both "$5 in free credits every month" on the plan card and an "up to $20" banner, and the table counts the $5; Tavily's monthly plans bring its credit price down to $0.005–$0.0075. Billing rules differ too: Anthropic counts each web search regardless of how many results it returns, while DeepSeek doesn't bill a search that comes back empty. Search quality isn't priced in, and it's where DeepSeek has the most open questions.
DeepSeek Search API rate limits: 100 per second, not 5
As of November 14, 2026, each DeepSeek account can make 100 Search requests per second (QPS) and 25 Fetch requests per second, counted independently and across every API key on the account, according to the rate-limit section of DeepSeek's guide. Going over returns HTTP 429, which isn't billed. Fetch also has a per-domain limit whose value DeepSeek doesn't publish, and these limits are separate from model concurrency.
If you see "5 QPS per account," that's the launch-day figure. An archived copy of the guide from October 17, 2026 shows 5 requests per second for both Search and Fetch, and the copy from October 20 shows 100 and 25. DeepSeek published no announcement, so the increase is dated only by those snapshots, around October 19–20. At the current limits the ceiling is 8.64 million searches and 2.16 million fetches a day, well beyond a job of 360,000 searches a month.
Calling /v1/tools/search directly, and what a 401 does and doesn't tell you
A Search call is one POST to https://api.deepseek.com/v1/tools/search with your normal DeepSeek API key as a bearer token. query is required, takes 1–128 characters and supports operators such as site:, -site:, "exact phrase", lang:en, after: and before:; count runs from 1 to 50 and defaults to 10. Fetch works the same way at /v1/tools/fetch with a single url field and returns the page title and Markdown content.
curl https://api.deepseek.com/v1/tools/search \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "DeepSeek V4.1 release notes site:api-docs.deepseek.com",
"count": 10
}'Don't treat a 401 as proof that the rest of the request is right. On October 29, 2026, at 16:24 UTC, eight requests were sent from one Mac to DeepSeek's endpoints with no key or with a made-up key, and every one came back 401 in about 1.1 seconds: a valid Search body, count: 60, malformed JSON, a Fetch call, a GET instead of a POST, the wrong path /v1/search, and an Anthropic-format message with a web search tool. DeepSeek checks the key before the path, method or body, so a 401 tells you only that the key is wrong, and the documented 400 for an out-of-range count can only appear once the key is valid. Those probes couldn't be billed and ran no search; searches with a valid key were timed separately on November 14, 2026, at 2.5–6.0 seconds per searched answer through the deepseek_web_search tool with thinking off.
Once the key works, the error table in DeepSeek's guide tells you what to do next. For 408, 429 and 5xx responses, wait and retry; for 402, top up the balance first; for any other 4xx, change the request before sending it again. None of these errors is billed.
How to stop Claude Code and Codex from running up search charges
Claude Code's permission rules and Codex's config file both let you turn web search off or keep it behind a prompt, and since October 31 every search they run on a DeepSeek key is billed. Apply the settings that match how you work:
-
To remove search from Claude Code entirely, add a bare deny rule to
~/.claude/settings.jsonfor every project, or to.claude/settings.jsonfor one project. A bare tool name removes the tool from Claude's context, so the model never tries to call it. For a single session, start Claude Code withclaude --disallowedTools WebSearchinstead.{ "permissions": { "deny": ["WebSearch"] } } -
To approve each search yourself, put
"WebSearch"in anasklist instead ofdeny. WebSearch already asks in Manual mode, but answering "Yes, and don't ask again" saves a permanent allow for that repository, and anaskrule still prompts even when such an allow rule exists, according to Claude Code's permissions docs. -
To stop page reads too, set
CLAUDE_CODE_DISABLE_WEB_FETCH=1(Claude Code v2.1.285 or later) or add"WebFetch"todeny. DeepSeek doesn't say whether WebFetch uses its Fetch API, but every fetch runs an extra model call billed as tokens either way. -
In Codex, add
web_search = "disabled"at the top level of~/.codex/config.toml, before the first[section], and restart Codex. DeepSeek's setup script 1.5.0 turns Alpha Search on by default for bothdeepseek-flashanddeepseek-v4-pro, so this line is now the only thing keeping Codex from searching on either model. Check it again whenever you rerun the setup script, because choosing option 1 or 2 removes the line and turns Alpha Search back on.
Is DeepSeek search any good? Filtered results and a data path to China
As of November 14, 2026, the published quality reports are user observations without numbers. Direct tests of the deepseek_web_search tool on that date measured speed, 2.5–6.0 seconds per searched answer with thinking off and 5.1 and 15.4 seconds with deep thinking search, and got current answers once the date was supplied, but they didn't test filtering or accuracy at scale. In the Hacker News thread on DeepSeek search and fetch on October 18, 2026, one user found that typical "politically sensitive" queries return zero results, and that Fetch traffic appeared to leave from Huawei Cloud in Hong Kong with a Linux Firefox user agent and the language set to Chinese. Another ran quick tests on a personal web-fetch benchmark and concluded that DeepSeek's search and fetch "aren't very good (is quite cheap tho)," without publishing numbers. A third pointed out that the search call becomes a data path to China even if your model runs in the EU.
A filtered query costs nothing, because empty results aren't billed, but your agent gets nothing back either. The one detailed cost report is second-hand: the Reddit user cited by eesel.ai ran 353 queries and 196 fetches through the new API and through DeepSeek's older token-billed search, and saw cost fall from $0.64 to $0.41 and search latency drop from 4.3 seconds to under 0.9 seconds. That post was written up by DeepSeek's own model from the user's logs and didn't compare Brave, Exa or Tavily.
Look elsewhere if your queries touch topics that are filtered in China, if your data can't pass through Chinese infrastructure, or if you need more than 25 page fetches a second. Otherwise, run a sample of your own real queries before you commit: at this price, 1,000 test searches cost $0.75.
DeepSeek Search API: other questions
Can the DeepSeek API do web search?
Yes. The standalone Search and Fetch endpoints launched on October 17, 2026, and on November 13, 2026, DeepSeek added deepseek_web_search, which lets deepseek-flash search on its own in Chat Completions, Responses and Messages requests. Older DeepSeek statements that the API doesn't support search predate those launches.
Does DeepSeek's granted balance pay for Search and Fetch?
Yes. DeepSeek's pricing page says search and fetch fees are deducted from your topped-up or granted balance, using the granted balance first when both are available, and that covers searches made through the web tools as well as direct calls. With no balance left, direct requests return HTTP 402 and aren't billed.
Sources22
External pages this guide links to, in the order they appear. Last updated Nov 14, 2026.
Sources22
External pages this guide links to, in the order they appear. Last updated Nov 14, 2026.
- 1.DeepSeek's Models & Pricing pageapi-docs.deepseek.com/quick_start/pricing
- 2.billing rule in DeepSeek's Search & Fetch guideapi-docs.deepseek.com/guides/search
- 3.launch announcementapi-docs.deepseek.com/news/news261017
- 4.DeepSeek's Web Tools guideapi-docs.deepseek.com/guides/web_tools
- 5.DeepSeek's Thinking Mode guideapi-docs.deepseek.com/guides/thinking_mode
- 6.November 13 announcementapi-docs.deepseek.com/news/news261113
- 7.Build a Chatbot guideapi-docs.deepseek.com/guides/build_a_chatbot
- 8.DeepSeek's Codex guideapi-docs.deepseek.com/quick_start/agent_integrations/codex
- 9.DeepSeek's Claude Code integration guideapi-docs.deepseek.com/quick_start/agent_integrations/claude_code
- 10.Claude API pricing pageplatform.claude.com/docs/en/about-claude/pricing
- 11.Claude Code tools referencecode.claude.com/docs/en/tools-reference
- 12.eesel.ai's DeepSeek Search API write-upeesel.ai/blog/deepseek-search-api
- 13.Responses API referenceapi-docs.deepseek.com/guides/responses_api
- 14.Exa searchexa.ai/pricing
- 15.Brave Search APIbrave.com/search/api
- 16.Tavilydocs.tavily.com/documentation/api-credits
- 17.OpenAI web search toolplatform.openai.com/docs/pricing
- 18.Gemini Grounding with Google Searchai.google.dev/gemini-api/docs/pricing
- 19.archived copy of the guide from October 17, 2026web.archive.org/web/20261017084301/https://api-docs.deepseek.com/guides/search
- 20.the copy from October 20web.archive.org/web/20261020015305/https://api-docs.deepseek.com/guides/search
- 21.Claude Code's permissions docscode.claude.com/docs/en/permissions
- 22.Hacker News thread on DeepSeek search and fetchnews.ycombinator.com/item





