API pricing

DeepSeek API pricing

DeepSeek's price per million tokens, the half-price off-peak hours, and what your workload costs a month.

The DeepSeek API costs $0.30 per million input tokens and $1.20 per million output tokens on V4.1 Flash at peak hours, and half that off-peak. V4 Pro costs $1.32 in and $3.96 out at peak. Peak hours are short and fall at night in the US, so most US traffic pays the off-peak rate.

Tool

What your workload costs

Prices checked 2026-11-04

Pick a workload, a monthly volume and a pricing option. Standard is the peak rate, the most you can pay.

WorkloadTokens in and out per request
Requests a monthAcross all your users
PricingDiscounts the provider publishes
DeepSeek V4.1 FlashCheapest$10.50 a month$0.0011 a request.
DeepSeek V4 Pro$39.60 a month$0.004 a request.

DeepSeek API prices per 1M tokens

Prices in US dollars per million tokens, from DeepSeek’s pricing page. The first number is input, the second is output, both at the peak rate.

DeepSeek V4.1 Flash$0.30 / $1.20Input / output per 1M tokens. Cached input $0.006. Off-peak $0.15 in, $0.60 out.
DeepSeek V4 Pro$1.32 / $3.96Input / output per 1M tokens. Cached input $0.044. Off-peak $0.66 in, $1.98 out.

Both models take up to 1 million tokens of context and return up to 384,000 tokens. The old names deepseek-v4-flash and deepseek-v4-flash-vision-exp now run on V4.1 Flash at the Flash price. The separate Search and Fetch APIs cost $0.75 per 1,000 successful requests each, billed per request rather than per token.

How DeepSeek bills: tokens, balance and the base URL

DeepSeek pricing is based on tokens. A token is the smallest unit of text the model reads or writes: a short word, a chunk of text inside a longer word, or even a punctuation mark. Your prompt and the model’s reply both convert to tokens, and the cost of a request is the number of tokens processed times the price per million, counted separately for input and output tokens.

The official DeepSeek API is prepaid. You top up a balance on platform.deepseek.com, and each request’s cost is deducted from it. The API is OpenAI-compatible: existing OpenAI client code works once you point its base URL at api.deepseek.com and use a DeepSeek key. The DeepSeek chat app, with free chat access on the web and phone, is separate from the API and does not use your balance.

Peak and off-peak hours

DeepSeek charges two rates. Off-peak is half of peak, for input, output and cache hits alike.

  • Peak: 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday, except Chinese public holidays.
  • Off-peak: every other hour, all weekend and on those holidays.

In US Eastern time in winter, peak is 8 to 11 p.m. and 1 to 5 a.m., from Sunday evening to Friday morning. In Pacific time it starts at 5 p.m. The whole US working day, 9 a.m. to 5 p.m. on either coast, is off-peak all year.

Key pointJobs that can wait, such as overnight batch work, should run outside the peak windows. The same request costs half as much.

Cache hits and reducing API costs

DeepSeek bills input two ways: a cache hit or a cache miss. A miss costs the full input rate, and the pricing page lists no separate price for writing to the cache. A hit costs $0.006 per million tokens on Flash and $0.044 on Pro at peak, a thirtieth of the base input rate or less. The calculator’s “Cache 70%” option counts 70% of the input as cache hits at the peak rate.

The cache works on repeated prefixes, so requests that start with the same long system prompts or the same document hit the cache, and only the new part of the prompt is billed at the full rate. There is no batch tier on DeepSeek’s own page. The off-peak rate plays that role.

DeepSeek V4.1 Flash or V4 Pro: choosing between DeepSeek models

  • V4.1 Flash for most work: chat, extraction, coding help, agents with many steps. It reads images; Pro does not.
  • V4 Pro for harder reasoning where a better first answer saves a retry. It costs about four times as much as Flash per token.

A rule of thumb on cost and performance: start on Flash, and move a task to Pro only when Flash’s answers need a second try often enough to cost more than the price gap. For cost-sensitive production workloads, Flash at off-peak hours is the cheapest way to run the official DeepSeek API.

How much does DeepSeek cost a month? Two cost scenarios

Worked examples at the prices checked 2026-11-04, before any cache hits:

  • A customer support chatbot handling 10,000 conversations a month, each about 2,000 input tokens and 500 output tokens: 20 million input and 5 million output tokens. On Flash that is $12 at the peak rate and $6 off-peak; on Pro, $46.20 at peak.
  • A code review assistant running 1,000 reviews a month, each reading 20,000 tokens of code and writing 1,000: 20 million input and 1 million output tokens. On Flash, $7.20 at peak; on Pro, $30.36.

Output token costs are four times the input rate on Flash and three times on Pro, so long replies move the bill more than long prompts. For your own scenarios and budget, use the calculator at the top of this page.

DeepSeek API cost comparison with other AI models

At peak, V4.1 Flash costs more than the smallest models from OpenAI and Anthropic, gpt-6-luna at $0.10 and Claude Haiku 5.5 at $0.10 per million input tokens, and much less than mid-size AI models like Claude Sonnet 5.5 at $2. Against Google’s gemini-3.5-flash-lite it costs the same per input token and is cheaper on output: $1.20 against $2.50. V4 Pro costs less than Sonnet 5.5 on both input and output, and both DeepSeek models come with a 1M-token context window.

RelatedClaude API pricing$0.10per 1M input tokens on Haiku 5.5, the cheapest Claude model.

DeepSeek pricing FAQ

How much does the DeepSeek API cost?

V4.1 Flash costs $0.30 per million input tokens and $1.20 per million output tokens at peak, $0.15 and $0.60 off-peak. V4 Pro costs $1.32 and $3.96 at peak, $0.66 and $1.98 off-peak.

Is the DeepSeek API free?

No. The API bills every token at the rates above, and DeepSeek’s pricing page has no free tier.

When is DeepSeek off-peak?

Every hour outside 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, plus weekends and Chinese public holidays. For US users that covers the whole working day.

Is DeepSeek cheaper than ChatGPT’s API?

It depends on the model pair. DeepSeek V4.1 Flash at peak costs more per input token than OpenAI’s smallest models and less than its mid-size ones. Compare them on the same workload

Does DeepSeek charge for cache writes?

The pricing page lists no cache write price. Input is billed either as a cache hit, at $0.006 per million tokens on Flash at peak, or as a cache miss at the full input rate.

Can I use the DeepSeek API through OpenRouter?

Yes. OpenRouter passes the request to one of several hosts, and its price can differ from DeepSeek’s own page because it depends on the host. OpenRouter does not add a markup per request; it charges a fee when you buy credits.

Sources

  1. DeepSeek, API models and pricing documentation, checked 2026-11-04
  2. OpenRouter, pricing page and models API, for routed prices, checked 2026-11-04

Spotted a wrong price? Write to support@gptx.io and we will check it.

Keep reading