DeepSeek API pricing: Flash vs V4 Pro, peak vs off-peak
DeepSeek API pricing for December 2026: what deepseek-flash and deepseek-v4-pro cost, how cache hits and off-peak hours cut the bill, and how it compares to OpenAI.
By AI Model Hub Desk · 30 November 2026
DeepSeek offers two API models, and both are priced by time of day. At peak hours, deepseek-flash costs $0.30 per million input tokens and $1.20 per million output tokens, and deepseek-v4-pro costs $1.32 and $3.96. Every rate is half price off-peak, and cache hits cost about 2% of a normal input token (DeepSeek pricing, as of December 1, 2026). The weights are MIT-licensed on Hugging Face, so you can also run the models yourself.
Key takeaways
- Two models:
deepseek-flash(DeepSeek-V4.1-Flash-1017) anddeepseek-v4-pro(DeepSeek-V4-Pro-0813). Both have a 1M-token context and up to 384K output tokens. - Off-peak is 50% off. Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday to Friday, excluding Chinese public holidays. Every other hour is off-peak.
- Cache hits are very cheap: $0.006 per million on Flash and $0.044 on V4 Pro at peak.
- The weights are MIT-licensed on Hugging Face, so self-hosting costs you hardware, not license fees.
- The hosted API stores data in China, under DeepSeek's privacy policy. Factor that into compliance decisions.
What is the pricing for DeepSeek models?
All prices are per million tokens, from the official pricing page, last updated November 18, 2026:
| Model ID | Version | Input, cache hit | Input, cache miss | Output | Concurrency limit |
|---|---|---|---|---|---|
deepseek-flash (peak) | V4.1-Flash-1017 | $0.006 | $0.30 | $1.20 | 2,500 |
deepseek-flash (off-peak) | $0.003 | $0.15 | $0.60 | ||
deepseek-v4-pro (peak) | V4-Pro-0813 | $0.044 | $1.32 | $3.96 | 500 |
deepseek-v4-pro (off-peak) | $0.022 | $0.66 | $1.98 |
Points worth knowing:
- Both models think by default. Both support thinking and non-thinking modes, with thinking on by default. Only Flash accepts images.
- The old model names still work.
deepseek-v4-flashanddeepseek-v4-flash-vision-expare routed to V4.1-Flash-1017 and billed at the Flash price. - Both API formats are supported. The base URL
https://api.deepseek.comtakes OpenAI-format requests, andhttps://api.deepseek.com/anthropictakes Anthropic-format ones. - Other services are priced separately. The standalone Search and Fetch APIs cost $0.75 per 1,000 successful requests. Since November 18, search and fetch tool calls made during a model call are no longer billed per call; their results count as ordinary tokens.
- Billing is prepaid. Charges come out of your topped-up or granted balance, and the granted balance is used first.
How do you calculate a DeepSeek bill?
DeepSeek states it simply: "expense = number of tokens × price". Here is a document-tagging job with 1,000,000 requests a month, each with 1,200 input tokens (800 of them a shared, cached instruction block) and 150 output tokens:
- Cache hits: 800M tokens × $0.006 = $4.80
- Cache misses: 400M tokens × $0.30 = $120.00
- Output: 150M tokens × $1.20 = $180.00
- Peak total on
deepseek-flash: $304.80. Run it fully off-peak: $152.40.
The same job on deepseek-v4-pro at peak costs 800 × $0.044 + 400 × $1.32 + 150 × $3.96 = $35.20 + $528.00 + $594.00 = $1,157.20. Off-peak, that drops to $578.60.
You can schedule jobs to run off-peak with a few lines of code:
from datetime import datetime, timezone
PEAK_HOURS_UTC = set(range(1, 4)) | set(range(6, 10)) # 01:00-04:00, 06:00-10:00
def is_deepseek_peak(now: datetime) -> bool:
"""True during DeepSeek peak pricing (Mon-Fri). Ignores Chinese public holidays."""
now = now.astimezone(timezone.utc)
return now.weekday() < 5 and now.hour in PEAK_HOURS_UTC
print(is_deepseek_peak(datetime(2026, 12, 1, 7, 30, tzinfo=timezone.utc))) # Tuesday 07:30 UTC -> True
print(is_deepseek_peak(datetime(2026, 12, 5, 7, 30, tzinfo=timezone.utc))) # Saturday -> False
This treats every public holiday as peak, so it can only make you wait longer than you need to, never charge you peak rates by mistake.
How does the DeepSeek API compare to OpenAI in cost?
Here is one job for each: 10,000 requests × 2,000 input × 500 output tokens (20M in, 5M out), with no caching. OpenAI prices come from its pricing page:
| Model | Input $/1M | Output $/1M | Job cost |
|---|---|---|---|
| gpt-6.2-astra | $8.00 | $40.00 | $360.00 |
| gpt-6.2-sol | $2.00 | $10.00 | $90.00 |
| deepseek-v4-pro (peak / off-peak) | $1.32 / $0.66 | $3.96 / $1.98 | $46.20 / $23.10 |
| deepseek-flash (peak / off-peak) | $0.30 / $0.15 | $1.20 / $0.60 | $12.00 / $6.00 |
| gpt-6-luna | $0.10 | $0.50 | $4.50 |
DeepSeek's flagship costs about half of GPT-6.2 Sol at peak and about a quarter off-peak. In the small tier, OpenAI's GPT-6 Luna is cheaper than DeepSeek Flash at list price. On a model-for-model basis DeepSeek is not automatically cheaper. Compare the models that pass your evals, not the brands.
OpenAI's Batch API takes 50% off if you can wait up to 24 hours. DeepSeek lists no batch tier, but its off-peak rate gives the same 50% without the wait.
Can I use DeepSeek for free?
Partly. There are three routes:
- Self-host the open weights. DeepSeek-V4.1-Flash-1017 and DeepSeek-V4-Pro-0813 are on Hugging Face under the MIT License. The model card says "this repository and the model weights are licensed under the MIT License". The software is free, but the hardware is not. The V4.1-Flash model card describes a mixture-of-experts model with 552B backbone parameters, which is data-center hardware, not a laptop.
- Use the web chat and app. DeepSeek runs a consumer web chat and apps. Its pricing page lists only API prices. That chat is a product for people, not an API for your application.
- Use granted balance. The pricing page mentions a "granted balance" that is spent before your top-up. It does not say how much is granted or when, so don't plan around it.
The API itself has no free tier on the pricing page. Every token is billed.
What about data residency and privacy?
Read this before you send production data. DeepSeek's privacy policy, dated February 10, 2026, names Hangzhou DeepSeek Artificial Intelligence Co., Ltd. as the controller. It says: "we directly collect, process and store your Personal Data in People's Republic of China." It also says personal data may be used "to train and improve our technology". You can opt out by emailing privacy@deepseek.com.
Two cautions:
- Developers have their own obligations. The policy says the processing rules for your own end users' data, collected when they use apps built on the platform, are not covered by it. You set those rules in your own privacy policy.
- There are other ways to run these models. If your compliance rules bar processing in China, you can self-host the MIT weights in a region you control, or use a hosting provider that serves them. Check that provider's own terms and pricing.
Checklist before you go live:
- [ ] Confirm whether your data, or your customers' data, may be processed in China.
- [ ] Decide whether to opt out of training use, and do it in writing.
- [ ] Turn on DeepSeek's safety-check parameter if you serve the public. The November 13 change log recommends it.
- [ ] Keep secrets and personal data out of prompts where you can.
Sources
About the author
AI Model Hub Desk, Editors
The editors of AI Model Hub. We cover new models for the people who build with them.
Connecting services
4 Open models GuideHow to Use Hugging Face Models: Download, Run, Deploy
How to use Hugging Face models in practice: download with the hf CLI, run with transformers, handle gated licences, size for your hardware and serve in production.
1 News NewsNew AI models: every major release of November 2026
New AI models from November 2026 for builders: GPT-6.2, Claude Fable 5.2, Gemini 4 Hydrogen and Neon, Qwen4-Max, Muse Ember, plus open weights from Kimi and Inkling.
5 Guides GuideOpenAI API pricing explained, with a worked example
OpenAI API pricing in plain numbers: what each model costs per million tokens, how caching, Batch and Fast change the bill, and how to watch spend live.
3 Comparisons StoryAI model pricing comparison: GPT, Claude, Gemini, DeepSeek
An AI model pricing comparison built on one real job: what 10,000 requests cost on OpenAI, Anthropic Claude, Google Gemini and DeepSeek, from official price lists.