DeepSeek API Pricing Calculator
Calculate DeepSeek API cost for V4 Flash or V4 Pro using cache-hit input, cache-miss input, output tokens, and monthly request volume. Rates were checked against DeepSeek's official pricing documentation on July 29, 2026.
Quick answer · Official direct API rates verified July 29, 2026
DeepSeek API pricing depends on model, cache status, output length, and request volume.
DeepSeek bills cache-hit input, cache-miss input, and generated output at different per-million-token rates. This calculator keeps those categories separate so a repeated prompt prefix is not accidentally priced as fresh input. It estimates model-token charges only; taxes, currency conversion, retries, routing providers, and infrastructure outside the direct DeepSeek API are not included.
Calculate DeepSeek API pricing for your workload
Choose a model, enter tokens per request and monthly request count, then adjust the editable rates if your contract or a future pricing update differs.
Editable price per 1M tokens (USD)
DeepSeek API pricing used by this calculator
The default values below match the official DeepSeek Models & Pricing table checked on July 29, 2026. DeepSeek states that product prices may change, so the inputs remain editable and production budgets should be rechecked before purchase or launch.
| Model | Cache hit input | Cache miss input | Output | Context |
|---|---|---|---|---|
| DeepSeek V4 Flash | $0.0028 / 1M | $0.14 / 1M | $0.28 / 1M | 1M tokens |
| DeepSeek V4 Pro | $0.003625 / 1M | $0.435 / 1M | $0.87 / 1M | 1M tokens |
Verify current values in the official DeepSeek pricing documentation. The official V4 release note also explains the model names, 1M context window, and retirement of the older deepseek-chat and deepseek-reasoner endpoints.
How to use the DeepSeek API pricing calculator
- Select V4 Flash or V4 Pro. Flash is the lower-cost default for high-volume workloads; Pro uses a higher rate for workloads that need the stronger model.
- Separate cache hits from cache misses. Put reusable prompt-prefix tokens in the cache-hit field only when your API usage data confirms they were cached.
- Enter generated output tokens. Reasoning, code, and agent workflows can produce much longer output than simple chat replies.
- Enter monthly requests. Use logs or a conservative traffic forecast instead of multiplying one unusually small test request.
- Add a planning buffer. Retry traffic, tool loops, failed calls, and output variance can raise the real bill.
DeepSeek token price examples
Support assistant on V4 Flash
Use 2,000 cache-miss input tokens, 1,000 cache-hit tokens, 800 output tokens, and 100,000 monthly requests. The calculator separates the low cache-hit rate from fresh input instead of applying one blended price to all prompts.
Agent workflow on V4 Pro
Switch to V4 Pro, increase output tokens for reasoning and tool use, then test a higher request count. This makes output cost visible before a multi-step agent moves into production.
For a broad multi-provider estimate, use the LLM cost calculator. To compare provider rows and capabilities, open the AI model comparison tool.
What this calculator includes and excludes
Included
- Cache-hit input token cost
- Cache-miss input token cost
- Output token cost
- Per-request and monthly estimates
- Editable rates for future or account-specific pricing
Not included
- Third-party router or cloud-provider markups
- Taxes, exchange rates, prepaid-credit rules, or contract discounts
- Application hosting, vector databases, observability, or storage
- Exact token counting from pasted text
- Guaranteed invoices or future DeepSeek price changes
Choosing between DeepSeek V4 Flash and V4 Pro
Start with V4 Flash when price and throughput dominate the decision, then test V4 Pro on the subset of requests where model quality materially changes the outcome. Do not route every request to the higher-priced model without measuring task success. A production evaluation should compare response quality, output length, latency, retry rate, and the percentage of input that actually receives a cache hit.
The DeepSeek model pricing page remains the better destination for browsing models and provider rows. This calculator is specifically for turning official direct-API token rates into a workload budget. For broader low-cost options, review the cheapest LLM API guide.