TokenSave logo TokenSave

DeepSeek API Pricing 2026: Official Rates, Peak Hours, API Key

Jonhisking · October 12, 2026

DeepSeek API Pricing 2026: Official Rates, Peak Hours, API Key

DeepSeek's API lineup and prices changed several times in 2026, and many pages that rank for it still show models that no longer exist. DeepSeek retired deepseek-chat and deepseek-reasoner in July, added peak and off-peak prices in August, and cut prices again with V4.1 Flash in September. This guide takes DeepSeek's prices and rules from its own documentation, checked October 12, 2026: the current models and rates, when the cheaper hours are, how to get an API key, how DeepSeek counts tokens, and what typical workloads cost compared with GPT-6, Claude and Grok.

DeepSeek API pricing (official, October 2026)

DeepSeek API pricing (official, October 2026): Model ID, Version, Cache hit input, Cache miss input, Output

DeepSeek's pricing page lists two models. Prices are per 1 million tokens:

Model ID Version Cache hit input Cache miss input Output
deepseek-flash (off-peak) V4.1 Flash $0.003 $0.15 $0.60
deepseek-flash (peak) V4.1 Flash $0.006 $0.30 $1.20
deepseek-v4-pro (off-peak) V4 Pro (0813) $0.022 $0.66 $1.98
deepseek-v4-pro (peak) V4 Pro (0813) $0.044 $1.32 $3.96

For a closer look at the Flash model alone, see DeepSeek V4.1 Flash API pricing.

A note on V4 Pro

DeepSeek's documents don't fully agree on Pro. The September 10 announcement says requests to deepseek-v4-pro would be served by V4.1 Flash at Flash prices from September 14 until a V4.1 Pro is released. The change log says Pro service continues with billing unchanged, and the pricing page still lists V4 Pro at the prices above. Until DeepSeek clarifies, check the model field and the cost in your usage records if you call Pro.

Peak and off-peak hours

Peak and off-peak hours: Time zone, Peak windows (Monday–Friday)

Since August 16, 2026, DeepSeek charges half price outside peak hours. The peak windows are:

Time zone Peak windows (Monday–Friday)
UTC 01:00–04:00 and 06:00–10:00
US Eastern (EDT, UTC−4) 21:00–00:00 and 02:00–06:00 (starting the evening before)
US Pacific (PDT, UTC−7) 18:00–21:00 and 23:00–03:00 (starting the evening before)
Central Europe (CEST, UTC+2) 03:00–06:00 and 08:00–12:00
India (IST, UTC+5:30) 06:30–09:30 and 11:30–15:30
Korea and Japan (UTC+9) 10:00–13:00 and 15:00–19:00

DeepSeek API pricing changes in 2026

Date Change
April 24, 2026 V4 Pro and V4 Flash released
July 24, 2026 deepseek-chat and deepseek-reasoner retired
August 13, 2026 V4 Pro generally available; peak and off-peak pricing announced
August 16, 2026 Off-peak half price takes effect (16:00 UTC)
August 21, 2026 V4 Flash Vision (experimental) released
September 10, 2026 V4.1 Flash released and API prices reduced (from 04:00 UTC)

How DeepSeek counts tokens

DeepSeek's docs give a rule of thumb:

The bill always uses the usage figures returned with each response, so the rule of thumb is only for estimates. In practice:

How to get a DeepSeek API key

DeepSeek's quick-start guide makes this short:

  1. Create an account on the DeepSeek platform (platform.deepseek.com).
  2. Add balance. The API is prepaid. A request on an empty account returns error 402, "Insufficient Balance," and points you to the top-up page. Any granted balance is used before money you topped up.
  3. Create a key on the API keys page of the platform. Store it somewhere safe, such as an environment variable, and never put it in client-side code.
  4. Call the API. It is OpenAI-compatible, so you can use the OpenAI SDK with base URL https://api.deepseek.com and model deepseek-flash or deepseek-v4-pro. There is also an Anthropic-compatible endpoint at https://api.deepseek.com/anthropic, so tools built for the Anthropic API can point at DeepSeek.

What the docs don't spell out: the minimum top-up, the payment methods available in your country, and whether new accounts get free credit. These appear on the platform during sign-up, so check them there.

Rate limits

What DeepSeek costs for real workloads

Per-token prices are hard to picture, so here are three common jobs priced at list rates on DeepSeek and on the closest models from other providers. All prices are per 1 million tokens from each provider's official page; DeepSeek is shown at both peak and off-peak.

1. A chatbot: 1,000 conversations

Each conversation sends 2,000 input tokens and gets 500 output tokens back, with no caching. That is 2 million input and 0.5 million output tokens.

Model Price (input / output) Cost
GPT-6 Luna $0.10 / $0.50 $0.45
Claude Haiku 5.5 $0.10 / $0.50 $0.45
DeepSeek V4.1 Flash, off-peak $0.15 / $0.60 $0.60
DeepSeek V4.1 Flash, peak $0.30 / $1.20 $1.20
DeepSeek V4 Pro, off-peak $0.66 / $1.98 $2.31
Grok 4.3 $1.25 / $2.50 $3.75
DeepSeek V4 Pro, peak $1.32 / $3.96 $4.62
GPT-6.1 Sol $2 / $10 $9.00
Claude Sonnet 5.5 $2 / $10 $9.00

2. The same chatbot with a cached system prompt

Now assume 1.5 million of the 2 million input tokens are a repeated system prompt and conversation history that hit the cache.

Model Cost
DeepSeek V4.1 Flash, off-peak $0.38
GPT-6 Luna $0.32
DeepSeek V4.1 Flash, peak $0.76
DeepSeek V4 Pro, off-peak $1.35
GPT-6.1 Sol $6.15

3. A coding agent task

Agents re-read their context at every step, so most of their input is cache hits. Take a medium task of 1.6 million input tokens (90% cache hits) and 40,000 output tokens:

Model Cost per task
DeepSeek V4.1 Flash, off-peak $0.05
GPT-6 Luna $0.05
DeepSeek V4.1 Flash, peak $0.10
DeepSeek V4 Pro, off-peak $0.22
DeepSeek V4 Pro, peak $0.43
GPT-6.1 Sol $0.86
Claude Sonnet 5.5 $0.86

These are our calculations from list prices, not measurements. Real costs depend on how much of your input hits the cache and how many reasoning tokens thinking mode produces. To run your own numbers, use the AI coding agent cost calculator or compare models in the LLM API pricing comparison.

What $10 of DeepSeek balance buys

Using the same three workloads:

Flash, off-peak Flash, peak Pro, off-peak Pro, peak
Chatbot conversations (no cache) about 16,700 about 8,300 about 4,300 about 2,200
Chatbot conversations (cached prompt) about 26,400 about 13,200 about 7,400 about 3,700
Coding agent tasks about 190 about 96 about 46 about 23

On Flash, $10 covers thousands of chatbot conversations or a couple of hundred medium agent tasks off-peak. On Pro, it covers a few dozen agent tasks.

Which DeepSeek model should you use?

A first API call

Because the API follows the OpenAI format, the official OpenAI Python SDK works with two changes, the base URL and the model name:

from openai import OpenAI
import os

client = OpenAI(api_key=os.environ["DEEPSEEK_API_KEY"],
                base_url="https://api.deepseek.com")

reply = client.chat.completions.create(
    model="deepseek-flash",
    messages=[{"role": "user", "content": "Summarize this in one sentence: ..."}],
)
print(reply.choices[0].message.content)
print(reply.usage)  # the exact token counts you are billed for

The usage object includes how many input tokens hit the cache, which is the easiest way to check that your prompt structure is getting the cache discount.

Is the DeepSeek API cheap in 2026?

It depends on the model and the time of day.

For a ranked list of the lowest-cost APIs, see the cheapest LLM APIs in 2026.

Common mistakes when estimating DeepSeek costs

How to keep your DeepSeek bill down

  1. Use Flash by default. It costs 77% less than Pro on cache-miss input and 70% less on output at the same time of day.
  2. Run batch work off-peak. Moving a job from peak to off-peak halves its cost.
  3. Keep your prompt prefix stable. Caching works on repeated prefixes, so put fixed instructions and documents first and the changing question last.
  4. Use non-thinking mode for simple tasks. Thinking mode adds reasoning tokens to each request.
  5. Track the usage field. It is the only exact count, and it shows how many tokens hit the cache.

Verdict

FAQ

How much does the DeepSeek API cost? V4.1 Flash costs $0.15 per million input tokens and $0.60 per million output tokens off-peak, and 100% more at peak. V4 Pro costs $0.66 and $1.98 off-peak, and $1.32 and $3.96 at peak. Cached input is much cheaper on both.

Is the DeepSeek API free? No. It is prepaid, and requests fail with error 402 when your balance runs out. The docs mention a granted balance that is used first, but don't say how much new accounts receive.

What are DeepSeek's peak hours? Monday to Friday, 01:00–04:00 and 06:00–10:00 UTC. Everything else, including weekends and Chinese public holidays, is off-peak at half price.

Do deepseek-chat and deepseek-reasoner still work? No. They were retired on July 24, 2026. Use deepseek-flash or deepseek-v4-pro, with thinking mode on or off.

What is the context window of DeepSeek V4.1 Flash? 1 million tokens, the same as V4 Pro, with up to 384K tokens of output per request.

Where do I get a DeepSeek API key? On the API keys page of platform.deepseek.com, after creating an account and adding balance.

Can I use DeepSeek with tools built for Claude? Yes. DeepSeek offers an Anthropic-compatible endpoint at https://api.deepseek.com/anthropic, so many tools written for the Anthropic API can point at DeepSeek by changing the base URL and key.

How many tokens is a Chinese character on DeepSeek? About 0.6 tokens per Chinese character and 0.3 tokens per English character, according to DeepSeek's docs. The exact count is in the usage field of each response.

Is DeepSeek cheaper than GPT-6 Luna? Not at list price for plain requests: Luna costs $0.10 input and $0.50 output, below Flash's off-peak $0.15 and $0.60. With heavy caching, the two come out about even.

Run the numbers

The token counter shows how many tokens your text uses and what it costs on each model. For agent workloads, the AI coding agent cost calculator estimates a month of use from your task size and tasks per day.

Prices and rules checked on DeepSeek's API documentation on October 12, 2026. Workload costs are our calculations from each provider's list prices.

Sources

More articles

Paste a prompt to see its token count and cost on DeepSeek, GPT, Claude and Gemini models.

Open the token counter →