On this page
The cheapest DeepSeek API in 2026 is NanoGPT, at $0.039 per million input tokens and $0.40 per million output tokens for DeepSeek V4.1 Flash. Hugging Face and OpenRouter reach a Wafer route at $0.051 / $0.567. DeepSeek’s own API costs more. Want one flat bill instead of a meter? Off Grid AI Boost is a pre-order from $4.99 a month.
DeepSeek V4.1 Flash price on every provider
Prices are per 1M tokens in US dollars. Each price links to the provider’s own pricing. Blended is the price of a million tokens at 3 input tokens for every output token, a common mix for chat and coding. The last column is the bill for 50M input and 10M output tokens in a month.
| Provider | In / out per 1M | Cached input per 1M | Blended per 1M | 50M in + 10M out |
|---|---|---|---|---|
| NanoGPT | $0.039 / $0.40 | Not on the pricing page | $0.13 | $5.95 |
| DeepInfra, V4.1-Flash-1017 build | $0.098 / $0.294 | $0.0029 | $0.15 | $7.84 |
| Hugging Face, Wafer route | $0.051 / $0.567 | Not listed | $0.18 | $8.22 |
| OpenRouter, Wafer route, plus 5.5% fee | $0.051 / $0.567 | Not listed | $0.19 | $8.67 |
| DeepInfra | $0.14 / $0.42 | $0.0042 | $0.21 | $11.20 |
| DeepSeek API, off-peak | $0.15 / $0.60 | $0.003 | $0.26 | $13.50 |
| DeepSeek API, peak | $0.30 / $1.20 | $0.006 | $0.53 | $27.00 |
| Together AI | $0.30 / $1.20 | $0.006 | $0.53 | $27.00 |
| Fireworks AI | $0.30 / $1.20 | Not listed | $0.53 | $27.00 |
| Featherless, pay as you go | $0.30 / $1.20 | Not listed | $0.53 | $27.00 |
| Synthetic, usage-based | $0.60 / $1.20 | Not listed | $0.75 | $42.00 |
| Off Grid AI Boost | Flat plan, usage worth 2x the price | Flat plan | Flat plan | $4.99, $9.99 or $49.99 a month (cohort 1) |
The arithmetic for the last column is input millions times the input price plus output millions times the output price. On NanoGPT that’s 50 × $0.039 + 10 × $0.40 = $1.95 + $4.00 = $5.95. OpenRouter adds a 5.5% fee when you buy credits, so its $8.22 becomes $8.67.
Cache hits change the ranking for agents
Coding agents and chat apps send the same long context again on every call. Providers that publish a cached-input price charge a tiny fraction for the repeated part. Suppose 40M of your 50M input tokens are cache hits:
- DeepInfra, 1017 build: 40 × $0.0029 + 10 × $0.098 + 10 × $0.294 = $4.04
- DeepInfra: 40 × $0.0042 + 10 × $0.14 + 10 × $0.42 = $5.77
- NanoGPT, list price, no cache price published: $5.95
- DeepSeek API, off-peak: 40 × $0.003 + 10 × $0.15 + 10 × $0.60 = $7.62
- DeepSeek API, peak, or Together: 40 × $0.006 + 10 × $0.30 + 10 × $1.20 = $15.24
So the cheapest DeepSeek API depends on your traffic. For one-off prompts, NanoGPT wins. For agents that resend context, DeepInfra’s 1017 build wins. The full cache maths for DeepSeek’s own API is in DeepSeek API pricing in 2026.
Where DeepSeek’s own API wins
DeepSeek’s API isn’t the cheapest per token, but it gives you things the cheap routes don’t list:
- Off-peak half price. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday. Every other hour, weekends included, is half price.
- 2,500 requests at a time on DeepSeek V4.1 Flash, published on the pricing page.
- An Anthropic-format URL next to the OpenAI one, so tools built for Claude can talk to it.
- DeepSeek V4 Pro, the bigger model, at $1.32 / $3.96 at peak. DeepInfra sells DeepSeek-V4-Pro-0813 for $1.30 / $2.60.
The catch is privacy. DeepSeek’s privacy policy says it stores data in China and may use it for training unless you opt out by email. If that matters, read best private LLM APIs first.
When a flat plan costs less than any per-token price
Per-token prices are low, but the bill moves every month. A flat plan gives you a number you know in advance.
- NanoGPT PRO, live today: $12 a month with 60M input tokens a week, free output on the models PRO includes, resetting every Monday.
- Off Grid AI Boost, a pre-order: Starter $4.99, Pro $9.99 or Max $49.99 a month for cohort 1, half the regular $9.99, $19.99 and $99.99, held for as long as you stay. Each plan includes usage worth its full regular price every month, counted at each model’s token rate, and you can top up any time.
Boost runs DeepSeek V4.1 Flash, Qwen 3.8 and more open models, behind one OpenAI-compatible key. We don’t keep your prompts or train on them. You pay now, your API key arrives by email in January 2027, and your plan starts that day. If January slips, you get all your money back.
Need an API today? Use NanoGPT for plain prompts or DeepInfra’s 1017 build for agents. Pre-order Boost for a flat bill from January.
Paying more than you expected? Symptom, check, fix
| Symptom | Check | Fix |
|---|---|---|
| Your OpenRouter bill is above the Wafer price | OpenRouter balances price against speed by default | Add :floor to the model name, deepseek/deepseek-v4.1-flash:floor, to sort routes by price |
| DeepSeek’s own bill doubles some days | You’re sending traffic during peak hours | Move batch jobs outside 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays |
| Agent runs cost far more than the blended price | Most of your input is repeated context | Pick a host with a cached-input price, such as DeepInfra or DeepSeek |
| Output is most of your bill | Long answers or thinking mode | Rank by output price; NanoGPT’s $0.40 and DeepInfra 1017’s $0.294 are the lowest |
| The cheapest route is slow or fails | Small hosts fill up at busy times | Fall back to DeepInfra, the cheapest large host |
| The bill is never the same twice | Per-token billing follows usage | Move to a flat plan once your spend passes its price |
More price pages
- Every model, every provider: the API price index.
- Four open models side by side on 8 providers: cheapest OpenRouter alternatives.
- Running it yourself instead: how to run DeepSeek V4.1 Flash, and the free Off Grid AI apps run smaller open models on your own phone or computer.
FAQ
What is the cheapest DeepSeek API? NanoGPT, at $0.039 per million input tokens and $0.40 per million output tokens for DeepSeek V4.1 Flash. If your app resends the same context on every call, DeepInfra’s DeepSeek-V4.1-Flash-1017 at $0.098 in, $0.294 out and $0.0029 for cached input can cost less.
Is the DeepSeek API cheaper from DeepSeek itself? No. DeepSeek charges $0.30 in and $1.20 out at peak and half that off-peak. NanoGPT, DeepInfra, Hugging Face and OpenRouter all sell the same model for less per token.
How much does DeepSeek V4.1 Flash cost for 50M input and 10M output tokens a month? $5.95 on NanoGPT, $7.84 on DeepInfra’s 1017 build, $8.67 on OpenRouter with its fee, $13.50 on DeepSeek’s own API off-peak and $27.00 at DeepSeek’s peak price or on Together.
Is there a flat monthly price for DeepSeek? Yes. NanoGPT PRO is $12 a month with 60M input tokens a week, and it works today. Off Grid AI Boost is a pre-order from $4.99 a month with usage worth twice the price, and the API key arrives by email in January 2027.