Token Cost Calculator

DeepSeek API Pricing

V4-Pro and V4.1-Flash per-token rates, off-peak hours, and prompt-cache savings — compared to Claude, GPT, and Gemini.

Last updated: 2026-10-27

1,000
2,000
400
1,000 × 2,000in + 400out = 2,000,000 input,400,000 output tokens

Estimated cost across 2 models

DeepSeek Cheapest

DeepSeek V4.1-Flash 1017

$1.08/ month
$12.96 / year
Peak hours

Checkpoint DeepSeek-V4.1-Flash-1017 (released 2026-10-17), served under the API model name `deepseek-flash`; open weights on Hugging Face / ModelScope. The 2026-09-10 launch price is unchanged. The launch checkpoint is kept as its own row (deepseek-flash-0910).

Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
DeepSeek

DeepSeek V4-Pro

$4.22/ month
$50.69 / year
Peak hours
Input
$2.64
Output
$1.58400,000 tokens
Input
$1.32 / 1M2,000,000 tokens
Output
$3.96 / 1M
Context window
1,000,000Last updated: 2026-10-20

Prices verified 2026-10-27. Source: official provider pricing pages. · Machine-readable: /api/prices.json

Quick takeaways
  • 1DeepSeek V4.1-Flash is $0.30 input / $1.20 output per 1M tokens at peak — 8.3× cheaper than GPT-6 sol on output.
  • 2V4-Pro is $1.32 / $3.96 per 1M — comparable to Claude Sonnet 5 on reasoning work, 2.5× cheaper on output.
  • 3Off-peak (Mon–Fri outside 01:00–04:00 & 06:00–10:00 UTC, plus all weekends & Chinese holidays) bills at 50% less than peak — schedule batch jobs accordingly.
  • 4Cache hits drop V4.1-Flash input from $0.30/M to $0.006/M at peak ($0.003/M off-peak) — 98% off.

Off-peak hours, explained

Mon–Fri (excluding Chinese public holidays), DeepSeek bills at the full peak rate only during 01:00–04:00 and 06:00–10:00 UTC. All other times — including all weekend hours — are off-peak and bill at 50% of peak for both input and output.

Off-peak = 50% of peak · Mon–Fri · weekends & Chinese holidays all-day off-peak

Prompt-cache pricing

DeepSeek cache hits are aggressive — V4.1-Flash drops cached input by 98% from the standard rate, V4-Pro by 97%. For any workload with a repeated prefix (system prompt, tool definitions, document context) caching the prefix is the single highest-leverage cost saving.

  • DeepSeek V4.1-Flash 1017: $0.006/M (98% off)
  • DeepSeek V4-Pro: $0.044/M (97% off)
Token Cost Calculator

How to bring the bill down

  1. 1Use V4.1-Flash for routing / classification — output is $1.20/M vs $3.96/M on V4-Pro, 3.3× cheaper.
  2. 2Cache repeat prefixes — V4.1-Flash cache hit is $0.006/M at peak, a 98% drop from $0.30/M. The single biggest cost saver for repeat-prompt workloads.
  3. 3Batch non-urgent jobs into off-peak hours (Mon–Fri outside 01:00–04:00 and 06:00–10:00 UTC), where both input and output bill at 50% less than peak.
  4. 4Set max_tokens explicitly — output is the expensive side; capping it prevents runaway replies.
  5. 5This site estimates OpenRouter at 5% above DeepSeek’s own rate — an approximation of its credit fee, not a per-request markup. OpenRouter wins on automatic fallback + a single invoice.
Token Cost Calculator

Frequently asked questions

How much does the DeepSeek API cost?
At peak, DeepSeek V4-Pro is $1.32 per 1M input tokens / $3.96 per 1M output tokens. DeepSeek V4.1-Flash is $0.30 / $1.20. Off-peak, both bill at 50% less than the peak rate. New accounts get a small free credit to start. Numbers above are re-verified against api-docs.deepseek.com/quick_start/pricing.
When is DeepSeek off-peak?
Off-peak runs Monday through Friday outside the peak windows (UTC 01:00–04:00 and 06:00–10:00) and all day on weekends and Chinese public holidays. During off-peak, input and output bill at 50% less than the peak rate — V4.1-Flash drops to $0.15 / $0.60 per 1M and V4-Pro to $0.66 / $1.98. The schedule is published at api-docs.deepseek.com.
Is DeepSeek cheaper than GPT-6?
Yes — at peak, DeepSeek V4.1-Flash output is $1.20 per 1M tokens versus GPT-6 sol at $10 (about 8.3× cheaper on output). V4-Pro output at $3.96 is about 2.5× cheaper than GPT-6 sol. For high-volume workloads the difference dominates every other cost lever.
What is DeepSeek V4.1-Flash?
V4.1-Flash is the fast non-reasoning model in the V4 family: a 1M context window, $0.30 / $1.20 per 1M at peak, with a $0.006 cache-hit price on input ($0.003 off-peak). Its input is about 13.3× cheaper than Claude Opus 5.5 and its output about 16.7× cheaper.
What is DeepSeek V4-Pro?
V4-Pro is the flagship reasoning model: a 1M context window, $1.32 / $3.96 per 1M at peak, with a $0.044 cache-hit price ($0.022 off-peak). Its output is about 2.5× cheaper than Claude Sonnet 5 and 5.1× cheaper than Opus 5.5 — flagship-tier reasoning at a small-model price.
Does DeepSeek have prompt caching?
Yes. V4.1-Flash cache hits are $0.006 per 1M input tokens at peak — a 98% drop from $0.30/M standard ($0.003/M off-peak). V4-Pro cache hits are $0.044 per 1M, a 97% drop from $1.32/M ($0.022/M off-peak). For repeat-prefix workloads (system prompts, tool schemas, large document context) caching is the single biggest cost lever.
Is the DeepSeek API the same as OpenRouter?
Not on the tokens. Going direct to api-docs.deepseek.com bills at the official rate, and OpenRouter bills inference at that same list price on every plan — its platform fee (5.5% Standard / 8% Business) is charged when you buy credits. This site estimates the OpenRouter total at 5% above list price to approximate that fee. OpenRouter wins when you need fallback across providers or a single invoice for many models.
How do I get a DeepSeek API key?
Sign up at platform.deepseek.com, complete the minimum top-up (currently $5), and generate a key from the API Keys page in the console. The calculator above always shows the current per-million rates, and /api/prices.json exposes the same numbers in a machine-readable form for AI agents.
More calculators

Pick the right page for your use case

Token Cost Calculator

Compare prices across OpenAI, Claude, Gemini, DeepSeek, MiniMax, and Grok. Real tokenizer for OpenAI, accurate estimates for the rest.

Compare every LLM price →

OpenRouter Pricing Calculator

See what your tokens actually cost after the OpenRouter markup — and when going direct to the provider is cheaper.

Calculate OpenRouter markup →

Claude Token Cost Calculator

Cost per token and monthly estimates for Claude Opus, Sonnet, and Haiku — with the Anthropic API.

Calculate Claude API cost →

ChatGPT API Pricing

GPT-6 and GPT-5 per-token rates, Batch API 50% off, and prompt-cache savings — compared to Claude, Gemini, and DeepSeek.

View ChatGPT API pricing →

Gemini API Pricing

Google Gemini rates per 1M tokens — Gemini 4 Argon, Gemini 3.1 Pro, Gemini 3.8 Flash and the Flash-Lite tier — with the long-context band, the cache rate and the service tiers, priced against every other model.

View Gemini API pricing →

Grok API Pricing

xAI Grok rates per 1M tokens — Grok 4.7 with its long-context band and cached-input rate, plus the retired Grok 4 row — priced against every other model.

View Grok API pricing →

MiniMax API Pricing

MiniMax M3.1 Flash and M3 rates per 1M tokens — a flat rate, the priority lane, the long-context doubling and the cache rate — priced against every other model.

View MiniMax API pricing →

Kimi API Pricing

Moonshot Kimi rates per 1M tokens — K3.1 Pro, the Highspeed twin and the still-sold K3, with the million-token window and the separately billed cache writes.

View Kimi API pricing →