Blog · · By Dhrumil Barot, Founder
DeepSeek API Pricing: Flash and V4 Pro, Peak vs Off-Peak
DeepSeek API pricing is $0.30/$1.20 per 1M tokens for deepseek-flash at peak and half off-peak; V4 Pro is $1.32/$3.96. Cache, hours and cost per call.
TL;DR: DeepSeek API pricing on 2026-11-26 is $0.30 input (cache miss), $0.006 input (cache hit) and $1.20 output per 1M tokens for deepseek-flash at peak, and $1.32 / $0.044 / $3.96 for deepseek-v4-pro. Every rate halves off-peak. A typical 3,500-token call costs $0.000912 on Flash at peak, which is more than gpt-6-luna or Claude Haiku 5.5 ($0.00037), so price DeepSeek per call, not per headline. Vynaris ("same quality, a fraction of the cost") shows you that number on every response.
Check what your calls really cost. Send the same request through Vynaris and every response carries x-vynaris-cost-usd: the model that served it, the cost, and what you would have paid direct. [Compare DeepSeek against gpt-6-luna in the calculator](/calculator).The DeepSeek API costs $0.15 to $0.30 per 1M cache-miss input tokens and $0.60 to $1.20 per 1M output tokens on deepseek-flash, and $0.66 to $1.32 input and $1.98 to $3.96 output on deepseek-v4-pro. The lower number is the off-peak rate. Peak hours are 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday; everything else, including weekends and Chinese public holidays, is off-peak. Cached input is 98% cheaper than uncached input on Flash. Source: DeepSeek Models & Pricing, read 2026-11-26.
DeepSeek API price table (per 1M tokens)
| Rate | deepseek-flash off-peak | deepseek-flash peak | deepseek-v4-pro off-peak | deepseek-v4-pro peak |
|---|---|---|---|---|
| Input, cache hit | $0.003 | $0.006 | $0.022 | $0.044 |
| Input, cache miss | $0.15 | $0.30 | $0.66 | $1.32 |
| Output | $0.60 | $1.20 | $1.98 | $3.96 |
| Context window | 1M | 1M | 1M | 1M |
| Max output | 384K | 384K | 384K | 384K |
| Concurrency limit | 2,500 | 2,500 | 500 | 500 |
Prices verified 2026-11-26 on DeepSeek's own pricing page. Both models support thinking and non-thinking mode, JSON output, tool calls, the Responses API and the Anthropic API format. Only Flash accepts images.

How much does the DeepSeek API cost per 1M tokens?
The DeepSeek API costs between $0.003 and $3.96 per 1M tokens, depending on the model, the cache and the clock. Three things set your rate:
- Model.
deepseek-flash(served by DeepSeek-V4.1-Flash-1017) ordeepseek-v4-pro(DeepSeek-V4-Pro-0813). Pro costs 4.4x Flash on cache-miss input and 3.3x on output. - Cache. Input tokens DeepSeek has already seen in the same prefix bill at the cache-hit rate: $0.006 instead of $0.30 at peak on Flash.
- Hour. Off-peak rates are exactly half of peak.
Output tokens include thinking tokens when thinking mode is on, which is the default. A reasoning call can produce several times more output than the visible answer, so output is usually the biggest line.
Many pricing pages still quote V4 Flash at $0.14 input and $0.28 output. Those are the rates from before the [August peak/off-peak reset](/blog/deepseek-v4-august-16-peak-off-peak-price-reset). The legacy names deepseek-v4-flash and deepseek-v4-flash-vision-exp still work, but DeepSeek now serves them with V4.1-Flash-1017 and bills them at the Flash price.
When are DeepSeek off-peak hours and how much do they save?
DeepSeek off-peak hours are every hour outside 01:00-04:00 and 06:00-10:00 UTC on weekdays. That is 7 peak hours a day, 35 per week out of 168, so 133 hours a week (79%) bill at half price.
| UTC window | Monday-Friday | Saturday-Sunday |
|---|---|---|
| 00:00-01:00 | off-peak | off-peak |
| 01:00-04:00 | peak | off-peak |
| 04:00-06:00 | off-peak | off-peak |
| 06:00-10:00 | peak | off-peak |
| 10:00-24:00 | off-peak | off-peak |
In India time (UTC+5:30), peak is 06:30-09:30 and 11:30-15:30 IST. In US Eastern (UTC-5 in winter), peak is 20:00-23:00 and 01:00-05:00 the night before.

The saving is 50% on every token. On 100,000 of our sample calls a month, Flash costs $91.20 at peak and $45.60 off-peak; V4 Pro costs $338.80 and $169.40. Interactive traffic can't wait, but nightly evals, embeddings back-fills and document batches can.
from datetime import datetime, timezone
def deepseek_is_peak(t: datetime) -> bool:
t = t.astimezone(timezone.utc)
if t.weekday() >= 5: # Saturday, Sunday
return False
return 1 <= t.hour < 4 or 6 <= t.hour < 10 # holidays not handled
print(deepseek_is_peak(datetime.now(timezone.utc)))How does DeepSeek cache pricing work?
DeepSeek caches input automatically: you don't mark anything. When a request starts with the same prefix as an earlier one (system prompt, tool definitions, a shared document), those tokens bill at the cache-hit rate. There is no separate cache-write charge, unlike Anthropic, which bills a 5-minute cache write at $0.125 per MTok on Haiku 5.5.
The response usage object tells you the split:
"usage": {
"prompt_tokens": 3000,
"prompt_cache_hit_tokens": 2000,
"prompt_cache_miss_tokens": 1000,
"completion_tokens": 500
}To get more hits, keep the stable parts first and the variable parts last: system prompt, then tools, then documents, then the user turn. A timestamp at the top of the system prompt breaks the prefix on every call.
Is DeepSeek cheaper than gpt-6-luna?
Per call, no: not for short, cache-heavy calls. Our sample call (2,000 cached input tokens, 1,000 new, 500 output) costs:
| Model (prices read 2026-11-26) | Cached in / new in / out per 1M | Cost per call | Per 1,000 calls |
|---|---|---|---|
| deepseek-flash, off-peak | $0.003 / $0.15 / $0.60 | $0.000456 | $0.456 |
| deepseek-flash, peak | $0.006 / $0.30 / $1.20 | $0.000912 | $0.912 |
| gpt-6-luna (Standard) | $0.01 / $0.10 / $0.50 | $0.000370 | $0.370 |
| Claude Haiku 5.5 | $0.01 / $0.10 / $0.50 | $0.000370 | $0.370 |
| deepseek-v4-pro, peak | $0.044 / $1.32 / $3.96 | $0.003388 | $3.388 |
How the Flash peak line adds up: 2,000 x $0.006 + 1,000 x $0.30 + 500 x $1.20 = $0.012 + $0.30 + $0.60 = $0.912 per 1M-token unit, which is $0.000912 per call.
Sources: gpt-6-luna Flex is listed at $0.05 / $0.25 / $0.005 on OpenAI's pricing page, and Flex is half of Standard, so Standard is $0.10 / $0.50 / $0.01. Haiku 5.5 is $0.10 input, $0.01 cache read and $0.50 output for prompts up to 100,000 tokens on Anthropic's pricing page. We left Anthropic's cache-write charge out, which flatters Haiku slightly.
DeepSeek wins elsewhere. Flash has a 1M-token context at one price, while Haiku 5.5 doubles to $0.50 / $2.50 above 100,000 tokens. Flash off-peak cached input ($0.003) is the cheapest cached input of the three. And V4 Pro is the cheaper option when you need a stronger open-weight model. See [the V4 Pro price spread across 17 providers](/blog/deepseek-v4-pro-17-provider-price-spread) and [our budget-tier comparison](/blog/gpt-56-luna-vs-haiku-45-vs-flash-lite-vs-deepseek-budget-tier-floor).
Calling DeepSeek through Vynaris, with a cost per call
Vynaris is an OpenAI-compatible router. You change the base URL, and each response tells you which model served it and what it cost:
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.vynaris.com/v1",
api_key=os.environ["VYNARIS_API_KEY"],
)
resp = client.chat.completions.with_raw_response.create(
model="deepseek-v3",
messages=[{"role": "user", "content": "Classify this ticket: refund not received"}],
)
print(resp.headers.get("x-vynaris-served-model"), resp.headers.get("x-vynaris-cost-usd"))What it does, from vynaris.com/pricing:
- Billing is the provider price plus a routing fee: 3% on your first $500 of monthly usage, then 1% for the rest of the month.
- Prepaid top-ups start at $20 and credit does not expire.
- Headers
x-vynaris-served-model,x-vynaris-cost-usd,x-vynaris-baseline-usdandx-vynaris-savedcome back on each call, and the ledger exports.
What it does not do: the [Vynaris model list](/models) today carries DeepSeek V3 ($0.27 / $1.10) and DeepSeek R1 ($0.55 / $2.19), not deepseek-flash or deepseek-v4-pro, and it does not shift your traffic into DeepSeek's off-peak hours. If you need V4 Pro at off-peak rates, call DeepSeek directly with the scheduler above.
What happens when you hit the concurrency limit?
DeepSeek caps concurrent requests at 2,500 for deepseek-flash and 500 for deepseek-v4-pro. When you go over it, expect HTTP 429 responses ("Rate Limit & Isolation" in the DeepSeek docs has the details). Retry with exponential backoff and jitter:
import random, time
def call_with_backoff(send, tries=5):
for i in range(tries):
r = send()
if r.status_code != 429:
return r
time.sleep(min(30, 2 ** i) + random.random())
raise RuntimeError("still rate limited after retries")If you run many V4 Pro calls in parallel, 500 is the number to plan around: a batch of 5,000 calls at 20 seconds each takes at least 200 seconds even with perfect scheduling.
Other DeepSeek API charges
| Item | Price |
|---|---|
| Search API (text) | $0.75 per 1,000 successful requests |
| Fetch API | $0.75 per 1,000 successful requests |
| File parsing, OCR | $0.225 per 1,000 pages |
| Text to speech | $0.45 per 10,000 characters ($0.225 limited-time) |
| Speech to text | $0.116 per hour ($0.058 limited-time) |
Since 12:00 on 2026-11-18 (Beijing time), server-side web search and fetch triggered inside a model call are no longer billed per call. Their results go into the context and bill as input tokens instead. A search that returns 8,000 tokens now costs 8,000 x $0.30 / 1M = $0.0024 at Flash peak.
Fees come out of your prepaid balance, granted balance first. Token counts follow DeepSeek's own tokenizer; see [how the DeepSeek tokenizer counts text](/blog/deepseek-tokenizer).
When not to pick DeepSeek on price
- Short calls with little caching and peak-hour traffic: gpt-6-luna and Haiku 5.5 are about 60% cheaper per call in our example.
- You need more than 500 concurrent V4 Pro requests: that is DeepSeek's stated limit.
- You can't move batch work: half of the DeepSeek advantage is the off-peak discount.
FAQ
How much does the DeepSeek API cost per 1M tokens?
deepseek-flash costs $0.30 input and $1.20 output per 1M tokens at peak, $0.15 and $0.60 off-peak. deepseek-v4-pro costs $1.32 and $3.96 at peak, $0.66 and $1.98 off-peak. Cached input is $0.006 (Flash) or $0.044 (Pro) at peak.
When are DeepSeek off-peak hours?
Every hour except 01:00-04:00 and 06:00-10:00 UTC, Monday to Friday. Weekends and Chinese public holidays are off-peak all day. Off-peak rates are half of peak.
How does DeepSeek cache pricing work?
Repeated prompt prefixes are cached automatically and bill at the cache-hit rate, 98% below the cache-miss rate. There is no write fee. The usage object shows prompt_cache_hit_tokens and prompt_cache_miss_tokens.
Is DeepSeek cheaper than gpt-6-luna?
Per 1M input tokens off-peak, they are close ($0.15 vs $0.10). Per call, gpt-6-luna was cheaper in our example: $0.000370 vs $0.000912 for Flash at peak and $0.000456 off-peak. DeepSeek is cheaper on very long contexts and cached off-peak input.
Is the DeepSeek API free?
No. Usage is pay-as-you-go from a prepaid or granted balance. The chat app is a separate product.
Did DeepSeek raise its prices?
Yes. V4 Flash was widely quoted at $0.14 / $0.28 before the August reset; Flash is now $0.30 / $1.20 at peak.
See your cost per call, not per token. Point your OpenAI client at Vynaris and read the cost header on the first response. Get started at vynaris.com.
Related articles
- DeepSeek V4 price reset: off-peak costs 77–83% more
- DeepSeek V4 Flash Vision caps images at 384 tokens: $0.08448 per 1,000 images before text and output
- MiniMax vs DeepSeek: M3 vs V4 Pro Price and Cost per Task
- DeepSeek V4 Pro 0423 costs 2.20x across 17 providers
- gpt-5.4-mini vs Haiku 4.5 vs deepseek-v4-flash: extraction cost
- GPT-5.5 Pro API: $30/$180 per 1M vs GPT-5.5, Per Task