Skip to content
deepseekprice

Unofficial community resource. Not affiliated with DeepSeek.

DeepSeek API cost calculator

Headline prices are quoted per million tokens at a single rate, which is not how DeepSeek actually bills. Input is metered twice depending on cache hits, and the whole card moves with the time of day. This calculator applies all four rates to your own volumes and shows what the same workload would cost on Anthropic, OpenAI and Google.

Start from a profile

80%

Share of input tokens DeepSeek can serve from cache. Coding assistants and agent loops re-send the same prefix constantly and often sit above 90% — DeepSeek Harness (dsh) sessions are a real-world example.

50%

Drag to zero to see what a fully off-peak schedule would cost.

From 16 Aug 2026

—

per month · — per day

Before the change

—

per month · — per day

Monthly difference — —

Running the same volume entirely in off-peak hours: — per month, saving —.

Same volume, other providers · monthly

  • DeepSeek V4-Pro —
  • Anthropic Claude Sonnet 5 — —
  • Anthropic Claude Opus 5 — —
  • OpenAI GPT-5.6-sol — —
  • OpenAI GPT-5.6-terra — —
  • OpenAI GPT-5.6-luna — —
  • Google Gemini 3.1 Pro Preview — —

Comparisons assume the same token volumes and the same cache hit rate everywhere, which is a simplification: cache behaviour differs by provider. Only DeepSeek charges by time of day, so the other rows are flat.

Per-provider caveats
  • Anthropic Claude Sonnet 5 — Writing to the 5-minute cache costs $2.50 per million tokens on top of the read rate.
  • Anthropic Claude Opus 5 — Anthropic charges a separate premium for writing to the cache.
  • OpenAI GPT-5.6-sol — Caching is automatic; there is no separate cache-write charge.
  • OpenAI GPT-5.6-terra — Caching is automatic; there is no separate cache-write charge.
  • OpenAI GPT-5.6-luna — Caching is automatic; there is no separate cache-write charge.
  • Google Gemini 3.1 Pro Preview — Rates shown apply to prompts of 200K tokens or fewer; longer prompts move to a higher tier. Google charges hourly storage for explicit context caches on top of the read rate.

How the estimate is built

Input is split before it is priced

Your daily input volume is divided by the cache hit rate, then each half is charged at its own rate. At the default 80% hit rate, most of your input bills at the cheaper of the two, which is why a single "input price" is misleading.

The day is split too

The peak-hour slider blends the two rate cards. It is a proportion of traffic, not a schedule — set it to match how much of your volume genuinely lands inside the peak windows.

A month is 30 days

Monthly figures are the daily cost times 30. Real months run 28–31 days, so treat the monthly number as a planning figure rather than an invoice.

Comparisons are deliberately simple

Other providers are priced at the same token volumes and the same cache hit rate. None of them charge by time of day, and each handles cache writes differently — the comparison shows the shape of the gap, not a contractual quote.

What the profiles assume

Token volumes behind each calculator profile.
Profile Input/day Output/day Cache hits
Light Occasional chat and one-off scripts. A few dozen calls a day. 200K 40K 40%
Daily coding A coding assistant open all day, repeated turns over the same files. 5M 400K 85%
Heavy agent Long autonomous runs, large re-read context, high tool-call volume. 40M 3M 90%

Profiles are starting points for DeepSeek V4-Pro, not measurements. Replace them with figures from your own usage dashboard whenever you have them.

Calculator questions

How much cheaper is the DeepSeek off-peak rate?

Off-peak rates are 50% lower than peak, applied to input and output alike. On DeepSeek V4-Pro that is $1.98 per million output tokens instead of $3.96.

It is worth being clear about what the discount is measured against: it is half of the new peak rate, not a return to the old one. Off-peak output still costs 2.3× what the same tokens cost under the previous flat card.

The rate is decided by when the request reaches DeepSeek, not when your job was queued locally. Batch work that can tolerate delay is the clearest way to capture it.

How does cache-hit pricing work?

Input tokens are billed at two different rates. Tokens DeepSeek can serve from its prompt cache cost $0.044 per million at peak; tokens it has to process fresh cost $1.32 per million — a gap of 30×.

Caching keys on identical prefixes, so it rewards keeping the stable part of a prompt — system instructions, tool definitions, a file you are iterating on — byte-identical at the front, with the varying part at the end. Reordering that prefix between calls throws the cache away.

Coding assistants and long agent loops re-send the same context repeatedly and commonly sit above 90% cache hits. That is why the calculator on this site defaults to 80% rather than assuming every token is billed at full price.

What cache hit rate should I actually expect?

It depends entirely on prompt shape, and the spread is enormous. A measured run of 613 requests from a coding agent — 155.9M of prompt tokens — came in at 98.1%, because an agent re-sends a long, stable context on every turn.

That is close to the ceiling, not the average. The first request of a session in the same run hit only 16.8% — there is nothing to hit yet — and workloads that put anything variable at the front of the prompt, such as a timestamp or a request ID, measure near zero however long they run.

Do not budget on someone else’s number, including this one. Both figures needed to compute your own are returned on every API response.

Does the price increase make caching less valuable?

Relatively yes, absolutely no — and the relative move is the surprising one. The cache-hit meter rose 6.1× against the old card, more than the cache-miss meter at 1.5× or output at 2.3×. The cheapest meter went up the most.

The consequence is counterintuitive: the better you cache, the harder this change lands. Repricing the measured 98.1% workload on the new off-peak card multiplies its bill by 2.7×. The identical tokens with no caching at all would have gone up only 1.5×.

In absolute terms caching is still worth more than it was, because it is a percentage off a bigger number. On that same run it removed $97.56 from a bill that would otherwise have been $104.39.

How do I measure my own cache hit rate?

Every API response carries the two counters in its `usage` object: `prompt_cache_hit_tokens` and `prompt_cache_miss_tokens`. They are disjoint and sum to the prompt size, so your hit rate is the first divided by the total. Log them and the guesswork ends.

If you use DeepSeek Harness, they are already on disk — it records a token breakdown for every request in `~/.dsh/sessions`. The audit script this site publishes at /dsh-cache-audit.py reads those logs and prints your real hit rate and bill. It has no dependencies and sends nothing anywhere.

Does DeepSeek charge extra to write to the cache?

No. Caching is automatic and there is no separate write charge — you are billed at the hit rate or the miss rate, and nothing else.

This is a real difference from some competitors rather than a technicality. Anthropic bills a premium for writing to its prompt cache, which has to be earned back through reads before caching pays for itself. On DeepSeek the first request simply costs the miss rate, as it would have anyway.

The trade-off is that you get no guarantee in return. DeepSeek describes its caching as best-effort, and unused entries are cleared after a few hours to a few days.

What is the difference between V4-Pro and V4-Flash?

Both carry a 1M token context window and the same maximum output length. They differ on price and on how many requests you may run at once: DeepSeek V4-Pro allows 500 concurrent requests, DeepSeek V4-Flash allows 2,500.

DeepSeek V4-Flash output costs $1.32 per million at peak against $3.96 for DeepSeek V4-Pro. Both models moved to the new card on the same date and share the same peak windows.

Is V4-Flash actually cheaper than V4-Pro in practice?

The rate card says 3.0× on output. Your bill may not agree, because price per token is only half of what you pay — the other half is how many tokens the model spends reaching an answer, and the smaller model does not always spend fewer. One published hands-on comparison ran both across three real coding tasks and found the cheaper model produced better work while consuming enough extra tokens to make the two bills roughly equal.

A second factor is usually larger than the model choice: reasoning effort. In the measured run on this site, 73.6% of all generated tokens were thinking tokens — invisible in the response, billed in full at the output rate, which is the most expensive meter on the card.

So the honest answer is that neither the headline discount nor a benchmark table settles it. Run your own workload on both, compare the total token counts rather than the rates, and check what reasoning effort you left it on.

Is DeepSeek still cheaper than Claude, OpenAI and Gemini after the increase?

For most workloads, yes — but by a smaller margin than before, and the gap narrows further against the cheaper tiers of each provider once you account for cache hits.

The right comparison depends on your own mix of input, output and cache rate, which is what the calculator is for: it applies your volumes to every rate card at once instead of comparing headline numbers that assume a workload you may not have.