DeepSeek V4 Flash vs DeepSeek V4 Flash (DeepSeek API)
The same open weights served by two hosts. The model answers the same way on both; what differs is the price, the limits that apply to your account, and what happens when you outgrow a free tier.
DeepSeek figures are public list prices and documented limits, checked 2026-09-16 against the provider page. Inference APIs prices are read live from the price list.
- Cost: DeepSeek V4 Flash (DeepSeek API) is cheaper in all three workloads, by 26%.
- Limits: DeepSeek: No fixed rate limit published; requests queue under load. Prepaid top-ups, off-peak discounts. Here: no per-minute or per-day caps.
- Switching: same model id on both, so moving is a base URL and key change.
Side by side
| DeepSeek V4 Flash | DeepSeek V4 Flash (DeepSeek API) | |
|---|---|---|
| Served by | Inference APIs | DeepSeek |
| Model author | DeepSeek | DeepSeek |
| Model id | deepseek-ai/DeepSeek-V4-Flash | deepseek-v4-flash |
| Input price | $0.19 / 1M tokens | $0.14 / 1M tokens |
| Output price | $0.38 / 1M tokens | $0.28 / 1M tokens |
| Context window | 1M tokens | 1M tokens |
| Capabilities | Chat, Reasoning, Coding, Tool calling | Chat, Reasoning, Tool calling, JSON mode |
| Weights | Open | Open |
| Status | Available | Available |
| Limits | No per-minute or per-day request or token caps; usage draws on a prepaid balance | No fixed rate limit published; requests queue under load. Prepaid top-ups, off-peak discounts. |
| Time to first token | 0.85 s | not measured by us |
| Output speed | 54 tokens / s | not measured by us |
What three workloads cost
List prices applied to the same work. The cheaper side of each row is in bold.
| Workload | DeepSeek V4 Flash | DeepSeek V4 Flash (DeepSeek API) | Difference |
|---|---|---|---|
| Chat assistant — 10,000 turns of 800 tokens in, 300 out | $2.66 | $1.96 | 26% |
| Long prompts or RAG — 10,000 requests of 8,000 in, 500 out | $17.10 | $12.60 | 26% |
| Generation-heavy — 10,000 requests of 500 in, 2,000 out | $8.55 | $6.30 | 26% |
DeepSeek V4 Flash (DeepSeek API) is cheaper in all three workloads, by 26%. Reasoning models bill their thinking as output tokens, so real output counts run higher than the visible answer; treat the generation-heavy row as a floor for them.
When to choose which
- You need requests processed outside China; the first-party API is operated from China
- Cost is the deciding factor; it is cheaper in every workload above
- Lowest list price for this model matters most
- Off-peak batch work that can use its discount window
Measured speed
Medians of three streamed runs on 2026-09-17, public endpoint, a prompt that asks for about 120 words. Time to first token is the first token of any kind, reasoning included; output speed counts every generated token from that point. Reasoning models then think before the visible answer starts: DeepSeek V4 Flash began answering after 20.1 s at default settings, which you can shorten with the reasoning controls on each model page. Expect ±30% with time of day. We did not measure DeepSeek and do not quote other people's numbers; read "not measured" as unknown, not slow. Method and raw numbers: speed measurements.
Switching from DeepSeek
The model id is accepted unchanged, so the edit is the base URL and the key.
import os
from openai import OpenAI
# before: DeepSeek
# client = OpenAI(base_url="https://api.deepseek.com", api_key=os.environ["DEEPSEEK_API_KEY"])
# MODEL = "deepseek-v4-flash"
# after: Inference APIs
client = OpenAI(base_url="https://api.inferenceapis.com/v1", api_key=os.environ["INFERENCE_API_KEY"])
MODEL = "deepseek-v4-flash" # alias of deepseek-ai/DeepSeek-V4-Flash
resp = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": "Hello"}], max_tokens=500)More detail, including Node, LangChain and LiteLLM: switching OpenAI-compatible providers.
FAQ
Which is cheaper, DeepSeek V4 Flash or DeepSeek V4 Flash (DeepSeek API)?
DeepSeek V4 Flash (DeepSeek API) is cheaper in all three workloads, by 26%. The table above uses list prices: DeepSeek V4 Flash $0.19 / 1M tokens input, $0.38 / 1M tokens output; DeepSeek V4 Flash (DeepSeek API) $0.14 / 1M tokens input, $0.28 / 1M tokens output.
Can I switch from DeepSeek V4 Flash (DeepSeek API) to DeepSeek V4 Flash without rewriting code?
Yes, if you call it through an OpenAI-compatible client. Change the base URL to https://api.inferenceapis.com/v1, swap the API key, and keep the model id: deepseek-v4-flash is accepted as is.
What limits apply to DeepSeek V4 Flash (DeepSeek API)?
No fixed rate limit published; requests queue under load. Prepaid top-ups, off-peak discounts. On Inference APIs there are no per-minute or per-day request or token caps; usage draws on a prepaid balance.
Why does DeepSeek V4 Flash use more output tokens than the visible answer?
It is a reasoning model: it thinks before it answers and the thinking is billed as output tokens. Budget for that in output-heavy workloads, and set max_tokens to a few hundred or more so the answer is not cut off.
Spotted a price or limit that has changed? Tell us and we will re-check the provider page.
