# DeepSeek API cost calculator

[Calculate my cost →](https://apicostcheck.com/calculator/?model=deepseek-v4-flash&daily=10000&input=6000&output=500&cache=0&write=0&batch=0)[Compare DeepSeek models side by side](https://apicostcheck.com/compare/?m=deepseek-v4-flash,deepseek-v4-pro)

At 10,000 requests a day (6,000 input and 500 output tokens each), the models below cost $720/mo to $2,970/mo without caching.

DeepSeek prices input, output and cache hits separately and caches prompt prefixes automatically: there is nothing to mark, no write fee in our data, and a hit is billed at 2%–3.33% of the input price, one of the deepest cache discounts we track. Because the cache is the main lever, put the fixed part of every prompt first so hits happen on every request.

DeepSeek's pricing page lists no Batch API, so the Batch column below repeats the standard price with a flag. The prices on this page are DeepSeek's peak rates; off-peak rates are half of the peak rates. Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday through Friday, excluding Chinese public holidays; all other hours, including weekends and Chinese public holidays, are off-peak. For the same traffic [DeepSeek V4 Pro](https://apicostcheck.com/models/deepseek-v4-pro/) costs 4× as much as [DeepSeek Flash (V4.1)](https://apicostcheck.com/models/deepseek-v4-flash/); both share the same context window, so choose by answer quality on your own prompts. 

The table prices one workload on each model: 10,000 requests a day with 6,000 input and 500 output tokens per request. Columns: no caching; 70% of input read from the cache and 5% written to it; every request sent through the Batch API.

| Model | Standard 10,000 req/day · 6,000 in · 500 out [Calculate with your numbers → (Standard)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=0) | With prompt caching 10,000 req/day · 6,000 in · 500 out · cache 70% [Calculate with your numbers → (With prompt caching)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=70&write=5&batch=0) | Batch API 10,000 req/day · 6,000 in · 500 out · Batch [Calculate with your numbers → (Batch API)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=100) |
| --- | --- | --- | --- |
| [DeepSeek Flash (V4.1)](https://apicostcheck.com/models/deepseek-v4-flash/) | $720/mo | $350/mo | $720/mo no batch price in data |
| [DeepSeek V4 Pro](https://apicostcheck.com/models/deepseek-v4-pro/) | $2,970/mo | $1,362/mo | $2,970/mo no batch price in data |

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-12-05 13:00 UTC. 

[All DeepSeek API prices →](https://apicostcheck.com/providers/deepseek/) 

## Cost per 1,000 requests

For 1,000 requests of 6,000 input and 500 output tokens, [DeepSeek Flash (V4.1)](https://apicostcheck.com/models/deepseek-v4-flash/) costs $2.40 at standard rates, $1.17 with caching and $2.40 through the Batch API; [DeepSeek V4 Pro](https://apicostcheck.com/models/deepseek-v4-pro/) costs $9.90, $4.54 and $9.90. Multiply by your own request count, or put your traffic into the calculator. 

## How to cut the bill, in order
- Keep the fixed prefix (instructions, examples, documents) identical across requests; a single changed byte at the start misses the cache for the whole prompt.
- Use Flash as the default and escalate to Pro only for requests that fail a quality check.
- Cap output length and avoid asking for reasoning where a short answer is enough: reasoning tokens are billed as output.
- Count prompts with the [token counter](https://apicostcheck.com/token-counter/) and check your hit rate in the [caching calculator](https://apicostcheck.com/prompt-caching-calculator/).
- Put your traffic into the [calculator](https://apicostcheck.com/calculator/); its DeepSeek prices are peak rates. Jobs that can wait cost half as much in off-peak hours, so off-peak scheduling, caching and output length are your levers. 

[When does caching pay off for your traffic? Use the prompt caching calculator →](https://apicostcheck.com/prompt-caching-calculator/)

## FAQ

### Pricing

### Is there a cache write fee on DeepSeek?

Not in our data: a miss is billed as normal input and later hits at the cache-hit price. Hits require an identical prefix, so keep the fixed part byte-for-byte stable.

### Why is there no Batch column discount?

DeepSeek lists no batch price, so the column shows the standard price with a 'no batch price in data' flag. For offline jobs the cache still applies when prompts share a prefix.

### Does DeepSeek charge for reasoning tokens?

Yes. Tokens generated while reasoning before the answer are billed as output tokens. Budget for them by measuring real responses or by raising the output tokens per request in the calculator.

### Flash or Pro?

Flash for volume, latency and routine tasks; Pro for hard reasoning, code and agents. Both have the same context window, so the only trade is quality per dollar: run your prompts on both before committing.

### Does the DeepSeek API charge for web search?

Not per search, as of 2026-11-28: since November 18, 2026 (12:00 Beijing time) the server-side search results are added to the model context and billed as model tokens. The separate Search API costs $0.75 per 1,000 successful requests. Other providers: [web search API pricing](https://apicostcheck.com/web-search-api-pricing/).

### Billing, credits and limits

### Does a DeepSeek API top-up balance expire?

No. As of 2026-11-29, [DeepSeek's help center](https://static.deepseek.com/faq/index.html?lang=en#/question/balance-validity) says top-up balances do not expire.

### Can I get a refund for an unused DeepSeek API balance?

On request, after review. As of 2026-11-29, [DeepSeek's help center](https://static.deepseek.com/faq/index.html?lang=en#/question/refund-policy) says unused balances can be refunded (online payments: Billing, then Refunds, on the platform; corporate bank transfers: submit a ticket). Its [Open Platform terms](https://cdn.deepseek.com/policies/en-US/deepseek-open-platform-terms-of-service.html) (effective 2026-04-29, section 6.3) add that DeepSeek reviews each request; if approved, it refunds the whole remaining unspent balance in one lump sum after deducting necessary costs such as handling fees. Partial refunds are not supported, and amounts already spent are not refunded.

### What does DeepSeek API error 402 Insufficient Balance mean?

As of 2026-11-29, [DeepSeek's error codes page](https://api-docs.deepseek.com/quick_start/error_codes) says 402 Insufficient Balance means you have run out of balance: check your account balance and add funds on the Top up page. To check it from code, [GET /user/balance](https://api-docs.deepseek.com/api/get-user-balance) returns is_available (whether your balance is sufficient for API calls) and, per currency (CNY or USD), the total balance, the unexpired granted balance and the topped-up balance. Per DeepSeek's [pricing page](https://api-docs.deepseek.com/quick_start/pricing), charges come out of the granted balance first when you have both.

---
Source: https://apicostcheck.com/deepseek-api-cost-calculator/ · prices in USD per 1M tokens, synced 2026-12-05 13:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
