Build a Reliable DeepSeek Cost Estimator for V4-Flash and V4-Pro

Use this DeepSeek cost estimator to project deepseek-flash and deepseek-v4-pro API spend per day, month and year at peak, off-peak and blended rates.

Tools·April 25, 2026·By DS Guide Editorial
Title card for the DeepSeek Cost Estimator: three token buckets, cache hits as the cheapest, deepseek-v4-pro output at 3.3x deepseek-flash, off-peak at half price.

A good DeepSeek cost estimator answers “what will this cost?” with three numbers, not one: cache-hit input, cache-miss input and output tokens, each priced separately, with a peak and an off-peak rate. Mix up the model or the time window and the forecast can be off by a multiple: off-peak is half the peak rate, and deepseek-flash and deepseek-v4-pro differ by 3.3× on output, 4.4× on cache-miss input and about 7.33× on cache-hit input, at peak and off-peak alike (official pricing page, as of 22 October 2026). Below: the official rates, what the estimator shows, the formula, a hypothetical forecast for both models and periods, and the assumptions to pressure-test.

What a DeepSeek cost estimator actually needs to compute

Screenshot of the deepseekai.guide cost estimator, captured 22 October 2026: deepseek-flash and deepseek-v4-pro scenarios at peak, off-peak and blended rates, with verified competitor rates.
Interactive tool

DeepSeek Cost Estimator

Two scenarios side by side — daily, monthly and yearly spend at peak, off-peak and blended rates.

A Scenario A

B Scenario B

Projection

A Scenario A ·
Peak ratesOff-peak ratesBlended
Per request — — —
Per day — — —
Per month (30 days) — — —
Per year (365 days) — — —
B Scenario B ·
Peak ratesOff-peak ratesBlended
Per request — — —
Per day — — —
Per month (30 days) — — —
Per year (365 days) — — —
B vs A · yearly difference (blended)—
B vs A · multiplier—

Scenario A on other providers (per year)

Verified standard rates from each vendor's own pricing page, applied to scenario A's yearly token volume.

Provider / modelRate, USD (input / output per 1M)Same workloadvs scenario A (peak / off-peak)
GPT-4o (OpenAI) source ↗$2.50 / $10.00——
GPT-4o mini (OpenAI) source ↗$0.15 / $0.60——
Claude Sonnet 4.6 (Anthropic) source ↗$3.00 / $15.00——
Claude Haiku 4.5 (Anthropic) source ↗$1.00 / $5.00——
Gemini 3.1 Pro Preview (Google) source ↗$2.00 / $12.00——

Competitor rates are each vendor's standard (non-batch) price, read on its official pricing page, as of 22 October 2026. For a like-for-like comparison, this table assumes no cache hits on either side. Some models listed here are legacy or scheduled for shutdown — hover "source" for notes.

How are these figures computed?

Cost per request = (input tokens × cache-hit share × cache-hit rate + input tokens × (1 − cache-hit share) × cache-miss rate + output tokens × output rate) ÷ 1,000,000. Per day = per request × requests per day; per month = per day × 30; per year = per day × 365. Blended = peak-hour share × peak cost + (1 − peak-hour share) × off-peak cost. The multiplier is scenario B's yearly cost divided by scenario A's.

The competitor table applies each vendor's standard input and output price to scenario A's yearly tokens with no cache discount, and compares it with scenario A's DeepSeek model, also with no cache discount, at peak and off-peak rates.

Non-USD amounts use the European Central Bank's euro reference rates of 6 November 2026, cross-converted to US dollars; DeepSeek bills in USD.

Prices from DeepSeek's official pricing page, last fetched 8 November 2026 (checked daily). Peak and off-peak rates as published there. Traffic and token figures are your own inputs; results are arithmetic on those rates, not a bill. Official pricing page ↗

What the estimator shows:

  • Two scenarios, A and B: model, requests per day, average input and output tokens, cache-hit %. Defaults: A deepseek-flash, B deepseek-v4-pro, each with 10,000 requests a day, 1,500 input and 500 output tokens, 80% cache hit.
  • Cost per request, day, month (30 days) and year (365 days) at peak and off-peak rates side by side, plus a Blended column set by a “share of traffic in peak hours” slider (default 21%, close to the 35 of 168 weekly hours that are peak, assuming evenly spread traffic; adjustable), and the B-vs-A blended yearly difference and multiplier.
  • A competitor table: scenario A’s yearly volume at other vendors’ standard (non-batch) rates, no cache discount on either side, verified rows only, each with its source link and check date (on 22 October 2026: GPT-4o, GPT-4o mini, Claude Sonnet 4.6, Claude Haiku 4.5, Gemini 3.1 Pro Preview; the widget flags several as legacy or scheduled for shutdown); hidden if no row is verified.
  • Nine currencies (USD, EUR, GBP, JPY, INR, CNY, AUD, CAD, BRL): non-USD amounts are approximate, at the European Central Bank’s daily euro reference rates, fetched by our server and cross-converted to US dollars; the widget states the rate date and shows USD only if no rates are available.
  • Prices read daily from DeepSeek’s official pricing page by a job that validates them and keeps the last good values on failure; a footnote dates the last successful fetch.

Each request consumes tokens in three distinct buckets, each with its own per-million rate; skip one and the forecast is wrong.

  • Cache-hit input tokens — the part of your prompt that matches a prefix already in DeepSeek’s context cache. Cheapest of the three.
  • Cache-miss input tokens — input processed from scratch, including new user messages even when the system prompt is cached.
  • Output tokens — everything the model generates, including reasoning_content from thinking mode, which is on by default.

The models you can call today are deepseek-flash (DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro (DeepSeek-V4-Pro-0813). Both have a 1M-token context window and a 384K-token maximum output; image input is available only on deepseek-flash. The rate depends on the model and on whether a request runs in a peak or an off-peak window.

DeepSeek API pricing as of 22 October 2026 (peak and off-peak)

Rates from DeepSeek’s official Models & Pricing page, as of 22 October 2026:

Model (USD per 1M tokens, peak / off-peak) Cache-hit input Cache-miss input Output Best for
deepseek-flash (DeepSeek-V4.1-Flash-1017) $0.006 / $0.003 $0.30 / $0.15 $1.20 / $0.60 High-volume chat, classification, RAG; image input
deepseek-v4-pro (DeepSeek-V4-Pro-0813) $0.044 / $0.022 $1.32 / $0.66 $3.96 / $1.98 Workflows already validated on V4-Pro; a comparison baseline (no image input)
Legacy deepseek-v4-flash / deepseek-v4-flash-vision-exp Still accepted but retired; served by DeepSeek-V4.1-Flash-1017 at the Flash price Switch to deepseek-flash
Legacy deepseek-chat / deepseek-reasoner Retired (scheduled for 2026-07-24 15:59 UTC; until then they routed to deepseek-v4-flash non-thinking / thinking) No longer available — change model= to deepseek-flash

Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday to Friday, excluding Chinese public holidays. Every other hour, including weekends and those holidays, is off-peak at half the peak rate. The split took effect at 16:00 UTC on 16 August 2026 (Change Log, 13 August 2026).

In either period, deepseek-v4-pro costs 7.33× as much as deepseek-flash on cache-hit input, 4.4× on cache-miss input and 3.3× on output; a cache hit costs 1/50 of a miss on deepseek-flash (98% cheaper) and 1/30 on deepseek-v4-pro (about 96.7% cheaper). There is no separate thinking-mode rate: the model and the time window set the rate, and thinking changes only how many tokens you use (its reasoning is billed as output).

The estimator formula

The widget prints this formula under “How are these figures computed?” (a formula, not runnable code; tokens per request, rates per 1M tokens):

per request = (input × hit% × hit rate
             + input × (1 − hit%) × miss rate
             + output × output rate) ÷ 1,000,000
per day     = per request × requests per day
per month   = per day × 30
per year    = per day × 365
blended     = peak share × peak cost + (1 − peak share) × off-peak cost

Pick a model and a period, or a peak share for the blended figure. The hard part is predicting the cache-hit ratio. Caching is automatic, but per DeepSeek’s Context Caching guide (22 October 2026) a request hits only where it fully matches a prefix already written to the cache, on a best-effort basis, and passing user_id isolates the KV cache per user_id (Rate Limit & Isolation page). Long, identical prefixes can hit; unique calls pay the miss rate.

A minimal Python sketch

The API is OpenAI-compatible: POST /chat/completions at https://api.deepseek.com (for the Anthropic SDK, the base URL is https://api.deepseek.com/anthropic). Here is a minimal call to deepseek-flash, with the thinking fields as in DeepSeek’s Thinking Mode guide:

import os
from openai import OpenAI

client = OpenAI(api_key=os.environ.get("DEEPSEEK_API_KEY"), base_url="https://api.deepseek.com")

SYSTEM_PROMPT = "You are a helpful assistant."
user_msg = "Hello!"

resp = client.chat.completions.create(
    model="deepseek-flash",
    messages=[
        {"role": "system", "content": SYSTEM_PROMPT},  # an identical prefix can be billed at the cache-hit rate
        {"role": "user", "content": user_msg},
    ],
    reasoning_effort="high",
    extra_body={"thinking": {"type": "enabled"}},
)

print(resp.usage.model_dump())  # includes prompt_cache_hit_tokens and prompt_cache_miss_tokens

The usage block is the source of truth for calibrating any estimate: per the API reference, it splits input into prompt_cache_hit_tokens and prompt_cache_miss_tokens and counts reasoning_tokens within the completion. The API is stateless, so each request resends the conversation history, which can then hit the cache.

Worked example: 1 million calls per month

A hypothetical illustration at 22 October 2026 prices: a stable 2,000-token system prompt (assumed cached on every call), a 200-token user message (a miss) and a 300-token response, one million times a month. Cost = tokens ÷ 1,000,000 × rate; all results are exact.

deepseek-flash — the default recommendation

Bucket Tokens Rate per 1M (peak / off-peak) Cost (peak / off-peak)
Cache-hit input 2,000,000,000 $0.006 / $0.003 $12.00 / $6.00
Cache-miss input 200,000,000 $0.30 / $0.15 $60.00 / $30.00
Output 300,000,000 $1.20 / $0.60 $360.00 / $180.00
Monthly total $432.00 / $216.00
Blended, 21% at peak 0.21 × $432.00 + 0.79 × $216.00 = $261.36

deepseek-v4-pro (DeepSeek-V4-Pro-0813)

Bucket Tokens Rate per 1M (peak / off-peak) Cost (peak / off-peak)
Cache-hit input 2,000,000,000 $0.044 / $0.022 $88.00 / $44.00
Cache-miss input 200,000,000 $1.32 / $0.66 $264.00 / $132.00
Output 300,000,000 $3.96 / $1.98 $1,188.00 / $594.00
Monthly total $1,540.00 / $770.00
Blended, 21% at peak 0.21 × $1,540.00 + 0.79 × $770.00 = $931.70

For the same hypothetical workload, deepseek-v4-pro costs about 3.56× as much as deepseek-flash, at peak and off-peak alike (rounded to two decimals). Hence the routing question: do you need deepseek-v4-pro for this task, or will deepseek-flash do? DeepSeek’s 10 September 2026 release note claims V4.1-Flash benchmarks ahead of flagship models including V4-Pro (a vendor claim, not an independent result). deepseek-v4-pro remains available (that note’s plan to route it to V4.1-Flash from 14 September was dropped; Change Log, 10 September 2026), so keep it where a workflow is already validated on it.

Hidden line items most estimators miss

Three are easy to miss:

  1. Thinking-mode output. Thinking is on by default (effort high), the same as sending reasoning_effort="high" with extra_body={"thinking": {"type": "enabled"}}. The API returns reasoning_content alongside content, billed as output; to avoid it, send extra_body={"thinking": {"type": "disabled"}}. With tools, earlier reasoning_content must be passed back and joins the input context. An unset max_tokens defaults to 64K with thinking but 128K at reasoning_effort="max" (API reference), so budget for longer outputs there.
  2. Conversation history. Every multi-turn request resends earlier turns: if each turn adds 200 user and 300 assistant tokens, turn ten resends 9 × 500 = 4,500 tokens of history (an illustration), billed at the cache-hit rate only where it fully matches a cached prefix.
  3. JSON Output retries. DeepSeek’s JSON Output guide (22 October 2026) asks for the word “json” and an example format in the prompt and a max_tokens high enough to avoid truncation, and warns of occasional empty responses. Each retry is a new billed request (its repeated prefix can still be billed at the cache-hit rate).

Temperature does not change the price per token, and in thinking mode (the default) it is ignored (Thinking Mode guide); it applies only with thinking disabled. The settings that move cost are thinking on or off, effort and max_tokens.

Building your own estimator vs using ours

A spreadsheet works if traffic is predictable: one row per workload, columns for the three buckets at peak and off-peak rates, multiplied by call volume. A small Python script reading your usage logs is more accurate because it uses real cache-hit ratios. Or use ours: the estimator above for two scenarios at peak, off-peak and blended rates, and the DeepSeek pricing calculator for a single token volume on deepseek-flash or deepseek-v4-pro, with peak and off-peak columns side by side, a “Compare models” tab and a peak-window indicator. The DeepSeek token counter gives an approximate input size (the official tokenizer or the API’s usage block is authoritative).

Off-peak pricing is a major lever: half the peak rate since 16 August 2026. Set the peak-share slider (default 21%) to your real traffic pattern and schedule batch jobs off-peak. (An earlier off-peak discount ended on 5 September 2025, per DeepSeek’s 21 August 2025 release note.)

Sanity-checking your forecast

Diagram of a cost estimator: requests/day, input tokens, output tokens and cache hit feed a cost engine giving daily, monthly and yearly Flash and Pro totals
Concept diagram: its column labels use the April 2026 model names; today's API models are deepseek-flash and deepseek-v4-pro.
  • Did you state the model and the period? “DeepSeek will cost $X” without naming the model (deepseek-flash or deepseek-v4-pro) and the period (peak, off-peak or the blended peak share) is a red flag.
  • Did you enumerate three buckets? A single “input × rate” line is wrong unless your cache-hit rate is genuinely 0%.
  • Did you account for the user message on each call? Even with a fully cached system prompt, the new user content is a miss.
  • Did you stress-test with a 2× output multiplier? For the worked deepseek-flash month: $12.00 + $60.00 + 2 × $360.00 = $792.00 at peak, not $432.00; $6.00 + $30.00 + 2 × $180.00 = $396.00 off-peak, not $216.00. DeepSeek’s 17 October 2026 note says V4.1-Flash-1017 produces shorter outputs, without giving a number.
  • Did you verify rates on the day you committed to the budget? DeepSeek’s pricing page says it reserves the right to adjust prices; the estimator’s footnote shows the date they were last fetched.
Share of the monthly bill deepseek-flash deepseek-v4-pro
Cache-hit input 2.8% 5.7%
Cache-miss input 13.9% 17.1%
Output 83.3% 77.1%
Each bucket’s share of the hypothetical worked-example bill, identical at peak and off-peak because off-peak halves every rate (rounded to one decimal).

Where this fits in your DeepSeek toolchain

Count tokens before you forecast and validate against real usage logs after. Useful adjacent reading: the DeepSeek API pricing reference for the rate table, the DeepSeek context caching guide for the prefix rules that make or break your hit ratio, and DeepSeek API best practices for the structural changes (static content first, deterministic prefixes) that maximise cache hits. If you’re choosing between models, see the Flash model page (deepseek-flash, now DeepSeek-V4.1-Flash-1017) and the DeepSeek V4-Pro page. The DeepSeek tools and utilities hub lists the rest, from token counters to status checkers.

DeepSeek AI Guide is an independent resource and is not affiliated with DeepSeek or its parent company. Model IDs, pricing and API behaviour change; check the official DeepSeek documentation and pricing page before committing to a production decision.

How accurate is a DeepSeek cost estimator before you start sending real traffic?

Accuracy depends on how closely your token counts, output length (thinking is on by default) and cache-hit share match real traffic, and on how much of it falls in peak hours. Calibrate against the usage block of a representative batch of real responses. See DeepSeek API best practices.

What is the cheapest way to test the DeepSeek API before committing to a budget?

Run a small batch on deepseek-flash off-peak, with a stable system prompt. With the worked-example mix, a call costs (2,000 × $0.006 + 200 × $0.30 + 300 × $1.20) ÷ 1,000,000 = $0.000432 at peak, so 300 calls cost $0.1296 ≈ $0.13, or $0.0648 ≈ $0.06 off-peak (illustrative: 22 October 2026 rates, system prompt always cached, rounded at the end). The DeepSeek API getting started tutorial covers the first request, and the get a DeepSeek API key guide covers credentials.

Does context caching change the math on a DeepSeek cost estimator?

Substantially. As of 22 October 2026, cache-hit input costs 98% less than cache-miss input on deepseek-flash (1/50) and about 96.7% less on deepseek-v4-pro (1/30), in both periods. A long, identical prefix (system prompts, tool schemas, RAG chunks) moves much of the input bill to the hit rate; unique calls save nothing. The DeepSeek context caching guide covers the prefix-matching rules.

Can you estimate costs for legacy deepseek-chat or deepseek-reasoner?

No. deepseek-chat and deepseek-reasoner were retired: DeepSeek’s 24 April 2026 release note scheduled this for 2026-07-24 15:59 UTC, and until then they routed to deepseek-v4-flash non-thinking / thinking. Estimate with deepseek-flash: change model= (same base_url); to match deepseek-chat’s former non-thinking mode, send extra_body={"thinking": {"type": "disabled"}}, as thinking (the default) adds reasoning tokens billed as output. The legacy names deepseek-v4-flash and deepseek-v4-flash-vision-exp are still accepted but retired; those requests are served by DeepSeek-V4.1-Flash-1017 and billed at the Flash price. See the DeepSeek API documentation.

Why does deepseek-v4-pro cost more than deepseek-flash if both have a 1M-token context window?

Context length doesn’t set the price; the model does: deepseek-v4-pro costs 7.33× as much on cache-hit input, 4.4× on cache-miss input and 3.3× on output, in both periods. DeepSeek’s 10 September 2026 note links V4.1-Flash’s lower prices to a more efficient architecture and claims it benchmarks ahead of V4-Pro (a vendor claim); keep deepseek-v4-pro for workflows already validated on it. The DeepSeek vs ChatGPT comparison covers competitor pricing for context.

Sources & Methodology

Last source check: October 22, 2026

Primary sources

  • OfficialDeepSeek API documentationEndpoints, request/response shape, model IDsLast checked: October 22, 2026
  • PricingDeepSeek Models & Pricing pagedeepseek-flash and deepseek-v4-pro peak/off-peak rates, peak windows, model versions, 1M context, 384K max output and vision support, as of 22 Oct 2026Last checked: October 22, 2026

Technical references

Context sources

Methodology

Costs in this article are arithmetic on DeepSeek's official prices as of 22 October 2026, shown at peak and off-peak rates; the worked examples are hypothetical illustrations. The site does not run its own evaluations or measure usage.

Data confidence

High for facts cited inline with primary-source links; medium for context narrative.

Editorial note

AI tooling moves quickly. If you spot an outdated number or a broken link, the contact link in the footer is the fastest way to flag it for the editorial team.

Leave a Reply

Your email address will not be published. Required fields are marked *