Compare appsAny device6 min read

DeepSeek API Pricing in 2026 (Price per Million Tokens, Cache Hits and What a Month Costs)

DeepSeek V4.1 Flash costs $0.30 in, $0.006 on cache hits and $1.20 out per million tokens at peak, half off-peak. V4 Pro prices and worked monthly bills.

On this page
  1. DeepSeek API prices per million tokens
  2. What a month costs: worked examples
  3. Other DeepSeek API charges
  4. Calling it
  5. The same model costs less elsewhere
  6. A flat bill for DeepSeek
  7. DeepSeek bill too high? Symptom, check, fix
  8. More on DeepSeek
  9. FAQ

The DeepSeek API costs $0.30 per million input tokens, $0.006 per million cache hits and $1.20 per million output tokens for DeepSeek V4.1 Flash at peak, and half that off-peak. A month of 50M input (mostly cache hits) and 10M output costs $7.62 to $15.24. Other hosts charge less, and Off Grid AI Boost is a flat-price pre-order from $4.99 a month.

See the Boost plans

DeepSeek API prices per million tokens

All prices are from DeepSeek’s pricing page, in US dollars per 1M tokens.

Model (API name) Rate Input, cache hit Input, cache miss Output
DeepSeek V4.1 Flash (deepseek-flash) Peak $0.006 $0.30 $1.20
DeepSeek V4.1 Flash (deepseek-flash) Off-peak $0.003 $0.15 $0.60
DeepSeek V4 Pro (deepseek-v4-pro) Peak $0.044 $1.32 $3.96
DeepSeek V4 Pro (deepseek-v4-pro) Off-peak $0.022 $0.66 $1.98

deepseek-flash runs DeepSeek-V4.1-Flash-1017 and deepseek-v4-pro runs DeepSeek-V4-Pro-0813. Both have a 1M-token context and up to 384K output tokens, and both do thinking and non-thinking modes. Only Flash takes images. The old names deepseek-v4-flash and deepseek-v4-flash-vision-exp still work, and they’re billed at the Flash price.

Peak and off-peak hours

Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday, except Chinese public holidays. That’s 35 of the week’s 168 hours. The other 133 hours, about 79% of the week, are half price.

What a cache hit is

DeepSeek’s context caching is on by default and works on prompt prefixes. When a request starts with text DeepSeek has already cached, such as the same system prompt, files or chat history, those tokens bill as a cache hit at $0.006 instead of $0.30 at peak. Each response reports them in prompt_cache_hit_tokens. That’s 98% off the repeated part, and it’s why agents and long chats cost far less than the headline input price suggests.

What a month costs: worked examples

Suppose your app sends 50M input tokens and gets 10M output tokens back in a month, and 40M of the input repeats earlier context.

V4.1 Flash at peak:

  • Cache hits: 40 × $0.006 = $0.24
  • Cache misses: 10 × $0.30 = $3.00
  • Output: 10 × $1.20 = $12.00
  • Total: $15.24

V4.1 Flash off-peak: 40 × $0.003 + 10 × $0.15 + 10 × $0.60 = $0.12 + $1.50 + $6.00 = $7.62

V4.1 Flash at peak with no cache hits: 50 × $0.30 + 10 × $1.20 = $15.00 + $12.00 = $27.00

V4 Pro at peak: 40 × $0.044 + 10 × $1.32 + 10 × $3.96 = $1.76 + $13.20 + $39.60 = $54.56

V4 Pro off-peak: 40 × $0.022 + 10 × $0.66 + 10 × $1.98 = $0.88 + $6.60 + $19.80 = $27.28

Output is the biggest line in every example. If you want a smaller bill, shorter answers and off-peak batch jobs save more than anything else.

Other DeepSeek API charges

Item Price
File parsing and OCR $0.225 per 1,000 pages
Text to speech $0.45 per 10,000 characters list price, $0.225 during the current 50% discount
Speech to text $0.116 per hour of audio list price, $0.058 during the discount
Server-side search and fetch tool calls No separate charge from 18 November 2026 (Beijing time); results count as input tokens

The page lists concurrency, not request limits: 2,500 requests at a time on Flash and 500 on V4 Pro. There’s no free tier on the pricing page. Any granted balance is spent before your topped-up balance.

Calling it

DeepSeek’s API speaks the OpenAI format at https://api.deepseek.com and the Anthropic format at https://api.deepseek.com/anthropic. With the OpenAI Python SDK:

from openai import OpenAI

client = OpenAI(base_url="https://api.deepseek.com", api_key="YOUR_DEEPSEEK_KEY")
reply = client.chat.completions.create(
    model="deepseek-flash",
    messages=[{"role": "user", "content": "Summarise this contract in five bullets."}],
)
print(reply.choices[0].message.content)

The same model costs less elsewhere

DeepSeek’s own API is a mid-priced way to run DeepSeek V4.1 Flash. Each price links to the host’s own page.

Host In / out per 1M Cached input 50M in + 10M out, no cache
NanoGPT $0.039 / $0.40 Not on the pricing page $5.95
DeepInfra, 1017 build $0.098 / $0.294 $0.0029 $7.84
OpenRouter, lowest route, plus 5.5% fee $0.051 / $0.567 Not listed $8.67
DeepSeek API, off-peak $0.15 / $0.60 $0.003 $13.50
DeepSeek API, peak $0.30 / $1.20 $0.006 $27.00
Off Grid AI Boost Flat plan, usage worth 2x the price Flat plan $4.99, $9.99 or $49.99 a month (cohort 1)

With 40M cache hits, DeepInfra’s 1017 build comes to 40 × $0.0029 + 10 × $0.098 + 10 × $0.294 = $4.04, about half of DeepSeek off-peak. Every host is compared in cheapest DeepSeek API.

There’s also privacy. DeepSeek’s privacy policy says it stores data in China and may train on it unless you opt out by email. DeepInfra’s privacy docs say it doesn’t store or train on your prompts.

A flat bill for DeepSeek

Every number above moves with your traffic. Off Grid AI Boost charges one flat price: 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 as long as you stay. Each plan includes usage worth its full regular price every month, counted at each model’s token rate, with top-ups any time. Yearly costs ten months’ price.

Boost runs DeepSeek V4.1 Flash, Qwen 3.8 and more, behind one OpenAI-compatible key. The code above works once you swap in Boost’s base URL and key, which arrive together. We don’t keep your prompts or train on them. Your key arrives by email in January 2027; if it misses January, you get all your money back. Need DeepSeek today? Use DeepSeek off-peak or DeepInfra now, and pre-order Boost for January.

DeepSeek bill too high? Symptom, check, fix

Symptom Check Fix
Some days cost twice as much When your traffic runs Move batch work outside 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays
Few cache hits in your usage prompt_cache_hit_tokens in each response Put the system prompt and fixed files first, and the changing question last
Output is most of the bill Thinking mode and long answers Turn thinking off for simple calls and cap max_tokens
V4 Pro bill is high Do these calls need Pro? Send routine calls to deepseek-flash, about a quarter of Pro’s price
Requests queue or fail at busy times You’re past 2,500 (Flash) or 500 (Pro) at once Spread requests, or add a second host such as DeepInfra
Your bill varies every month Per-token pricing Move to a flat plan once your spend passes its price

More on DeepSeek

FAQ

How much does the DeepSeek API cost per million tokens? DeepSeek V4.1 Flash costs $0.30 per million input tokens, $0.006 for cache hits and $1.20 per million output tokens at peak. Off-peak it’s half: $0.15, $0.003 and $0.60. DeepSeek V4 Pro costs $1.32, $0.044 and $3.96 at peak.

When are DeepSeek’s off-peak hours? Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday, except Chinese public holidays. Every other hour, weekends included, is off-peak at half price.

How much does the DeepSeek API cost a month? For 50M input tokens (40M of them cache hits) and 10M output tokens on V4.1 Flash, $15.24 at peak or $7.62 off-peak. Without cache hits, the same month is $27.00 at peak.

Is DeepSeek’s own API the cheapest way to use DeepSeek? No. NanoGPT sells DeepSeek V4.1 Flash at $0.039 in and $0.40 out, and DeepInfra’s 1017 build is $0.098 in, $0.294 out and $0.0029 for cached input.

Does the DeepSeek API have a free tier? The pricing page lists no free tier. It says any granted balance is used before your topped-up balance.

Pre-order Boost from $4.99 a month

DID THIS LAND?
UPDATES FROM THE CREATOR