Quick Answer
DeepSeek V4 Flash is DeepSeek's budget-tier model in the V4 family, released as a public beta on July 31, 2026. It is the cheapest major LLM API tracked this year — $0.14 per million input tokens and $0.28 per million output tokens — with a 1M-token context window and MIT licensing for commercial use. For single-file coding tasks, agent loops, and high-volume translation, V4 Flash matches models that cost 10-50x more. You can access it through the DeepSeek API directly, or through a unified gateway like TeamoRouter alongside Claude, GPT, Gemini, and Kimi with a single key.
Why DeepSeek V4 Flash Matters
Every model cycle has a "cost king." In 2024 it was DeepSeek V3. In 2025 it was DeepSeek-R1 and the first V4 previews. In mid-2026, the crown belongs to DeepSeek V4 Flash, and it is not close.
The official release, deepseek-v4-flash-20260731 (also written DeepSeek-V4-Flash-0731), landed on July 31, 2026. It is a substantial upgrade over the April preview — DeepSeek says the gains came from post-training (specifically re-posting on agentic and code-engineering data) rather than a bigger network. The result is a model that feels like it was built specifically for the two jobs developers spend the most money on: generating code and running autonomous agents.
| Spec | DeepSeek V4 Flash |
|---|---|
| Release | July 31, 2026 (public beta) |
| Architecture | Sparse MoE, 284B total / 13B active params |
| License | MIT (commercial use allowed) |
| Context window | 1M tokens |
| Max output | 384K tokens |
| Input (cache miss) | $0.14 / 1M tokens |
| Input (cache hit) | $0.0028 / 1M tokens |
| Output | $0.28 / 1M tokens |
| Default reasoning | Thinking mode on |
The headline number is the price. At $0.14/$0.28, V4 Flash undercuts:
- GPT-5.6 Sol ($5.00/$30.00) by roughly 36x on input and 107x on output
- Claude Opus 4.8 ($5.00/$25.00) by a similar margin
- DeepSeek V4 Pro ($0.435/$0.87) by about 3x
For comparison, GPT-5.6 Sol runs at $5.00/$30.00 per million tokens and Claude Opus 4.8 at $5.00/$25.00 — V4 Flash is roughly an order of magnitude cheaper than the entire frontier pack.
Architecture: Tiny Active Compute, Massive Context
V4 Flash runs on a sparse mixture-of-experts (MoE) design. The full model is 284B parameters, but only 13B activate per token. That is what makes it fast and cheap to serve, and it is why DeepSeek can afford to price it so aggressively while still pushing a 1M-token context window with up to 384K output tokens.
The practical upshot: V4 Flash can read an entire mid-size repository, plan across it, and emit very long completions without you stitching together chunked contexts. For agent frameworks that keep a long running transcript, this matters more than raw benchmark scores.
Thinking Mode Is On by Default
Unlike most cheap models, V4 Flash ships with reasoning enabled by default. You control it with the thinking and reasoning_effort parameters. Two caveats to internalize:
- While thinking mode is on,
temperatureandtop_phave no effect. If you need sampling control, disable thinking first. - Fill-in-the-middle (FIM) completion — the feature IDE autocomplete tools rely on — only works in non-thinking mode.
from openai import OpenAI
client = OpenAI(
api_key="sk-your-deepseek-key",
base_url="https://api.deepseek.com",
)
# Default: thinking mode on
resp = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[
{"role": "user", "content": "Write a Python function that retries an HTTP request with exponential backoff and jitter."}
],
)
print(resp.choices[0].message.content)
Benchmark Results: Agent and Coding Scores
The July release brought real agentic gains. DeepSeek published these scores for the 0731 build:
| Benchmark | V4 Flash (0731) | What it measures |
|---|---|---|
| TerminalBench 2.1 | 82.7 | Terminal/CLI operations |
| Cybergym | 76.7 | Cybersecurity simulation |
| Toolathlon (verified) | 70.3 | Tool calling accuracy |
| DSBench-FullStack | 68.7 | Full-stack dev tasks |
| DSBench-Hard | 59.6 | Hard coding problems |
| DeepSWE | 54.4 | Software-engineering agent |
DeepSeek reports these numbers at or above their V4-Pro preview levels, and an overall agent score around 25.2 — close to Claude Opus 4.8's 25.7. Independent developer tests in the first days after launch confirm the model is genuinely usable for real agent tasks: one engineer ran a file-read + web-search + summarization loop in ~40 seconds using 510K tokens, costing about ¥0.53 RMB total.
The honest caveat: V4 Flash is not a multi-file architect. On single-file generation and edits it is near V4 Pro quality. On large cross-module refactors, it is weaker than V4 Pro and meaningfully weaker than Claude Opus 4.8 or GPT-5.6 Sol. DeepSeek's own positioning calls Flash the "executor" and Pro the "planner."
The Hybrid Workflow: Pro Plans, Flash Executes
Because 60-80% of coding token spend happens in the execution layer — the part where the model writes files, runs tests, and fixes lint errors — routing execution to Flash is the single biggest cost lever available in 2026.
The recommended pattern is:
V4 Pro (planning + architecture review) -- ~20% of tokens
V4 Flash (file generation, edits, test writing) -- ~70% of tokens
V4 Pro (final review) -- ~10% of tokens
DeepSeek's own cost modeling shows this mix cuts API spend by ~64% versus running V4 Pro everywhere. The math: an all-Pro workflow costs 3x a pure-Flash workflow, and the hybrid runs at roughly 36% of all-Pro.
A Routing Config That Does This Automatically
If you want the hybrid without hand-switching, an LLM router makes it mechanical. With TeamoRouter's Agentic Routing, you can set quality/cost/latency weights per task so simple edits automatically land on deepseek-v4-flash while architecture planning routes to deepseek-v4-pro or claude-opus-4-8:
# example agentic routing rule (TeamoRouter dashboard / Agentic Routing)
rules:
- name: quick-edits
match: task_type == "code_edit" or task_type == "test_write"
model: deepseek-v4-flash
- name: architecture
match: task_type == "plan" or task_type == "design_review"
model: deepseek-v4-pro
- name: fallback
match: "*"
model: deepseek-v4-flash
One key, one dashboard, and every model is priced at TeamoRouter's discounted rates (typically 1-2x off list, with the same billing line).
API Access: Two Compatible Endpoints
DeepSeek deliberately made V4 Flash drop-in compatible. No DeepSeek SDK is required:
- OpenAI-compatible:
https://api.deepseek.com(also supports the Responses API) - Anthropic-compatible:
https://api.deepseek.com/anthropic
The model ID is simply deepseek-v4-flash. If you were using the legacy names deepseek-chat or deepseek-reasoner, note that both were scheduled for deprecation on July 24, 2026 — you should migrate to deepseek-v4-flash / deepseek-v4-pro now.
OpenAI Responses API (for agents)
V4 Flash is, as of the 0731 release, the only DeepSeek model with native OpenAI Responses API support and official Codex integration. V4 Pro support was expected in early August 2026. That makes Flash the natural choice for OpenAI-agent stacks that want to swap in a cheap model:
from openai import OpenAI
client = OpenAI(
api_key="sk-your-deepseek-key",
base_url="https://api.deepseek.com",
)
resp = client.responses.create(
model="deepseek-v4-flash",
input="Analyze the failing tests in this repo and propose fixes.",
)
print(resp.output_text)
Via TeamoRouter
Through TeamoRouter the same model is available on a single key alongside every other provider:
from openai import OpenAI
client = OpenAI(
api_key="tr-your-key-here",
base_url="https://api.teamorouter.com/v1",
)
resp = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Optimize this Dockerfile and reduce the image size."}],
)
print(resp.choices[0].message.content)
If your stack already talks OpenAI format, the only change is the base_url and the key.
Pricing Deep Dive and Peak Hours
Two pricing facts you should plan around:
-
Cache hits are ~50x cheaper than misses. At $0.0028/M input on cache hits, long-running agent sessions with stable system prompts become almost free to run. If you keep your system prompt constant and reuse context, your effective input cost collapses. This is the single most important optimization for agent workloads on V4 Flash.
-
Peak-hour billing is coming. DeepSeek announced that during Beijing peak hours (9:00-12:00 and 14:00-18:00) prices will rise to 2x the regular rate ($0.56/M output). As of the July 31 launch this had not yet taken effect — but it will. Teams with elastic batch workloads should schedule non-interactive jobs outside those windows, or let a router shift them to a cheaper model when the price flips.
| Workload | V4 Flash at off-peak | V4 Flash at peak (2x) | V4 Pro |
|---|---|---|---|
| 1M in / 1M out | $0.42 | $0.84 | $1.31 |
| 5M in / 2M out | $1.26 | $2.52 | $3.92 |
| 10M in / 5M out | $2.80 | $5.60 | $8.70 |
Should You Move Your Coding Stack to V4 Flash?
Switch to V4 Flash if...
- You generate a lot of single-file code — tests, boilerplate, small functions, scripts. The quality gap versus frontier models is small; the price gap is enormous.
- You run agents in long loops. 1M context + cheap cache hits + 2,500 concurrency is a combination built for autonomous agent traffic.
- You pay for every token (i.e., you're on API, not a flat subscription). At $0.14/$0.28, a heavy month of coding might cost you $10-20 where it would have been $200+ on a flagship.
- You're in China or want an MIT-licensed model you could eventually self-host. V4 Flash is commercially usable without restrictions.
Keep your current model if...
- You do large multi-file architecture work. Flash is weaker than V4 Pro, Claude Opus 4.8, and GPT-5.6 Sol at coordinating changes across modules.
- You need vision. V4 Flash does not accept image input (nor does V4 Pro). For multimodal tasks, keep GPT-5.6 Sol or Claude on hand.
- You need maximum reasoning depth on hard, novel problems. Flash is the executor, not the architect — use a planner model for those and Flash for the grunt work.
The Bottom Line
DeepSeek V4 Flash is the best price-performance coding model most developers can buy right now. It is not the most capable model — it is the most efficient one. If you pair it with a planner model (V4 Pro or Claude) for architecture and route execution through Flash, you get near-frontier output quality at a fraction of the cost. The 64% savings on the hybrid workflow is the kind of number that survives contact with the real world because it comes from where your tokens actually go.
TeamoRouter gives you both sides of the equation on one key: deepseek-v4-flash for the execution layer, deepseek-v4-pro, claude-opus-4-8, or gpt-5.6-sol for planning, and Agentic Routing to move between them automatically. Sign up, top up via Alipay or WeChat Pay, and start routing — no VPN, no international card required.
FAQ
Is DeepSeek V4 Flash free?
No. The API is paid at $0.14/M input and $0.28/M output (cache-hit input drops to $0.0028/M). It is, however, the cheapest major model API of 2026, and small workloads cost pennies.
Is DeepSeek V4 Flash open source?
The weights are MIT-licensed for commercial use, but DeepSeek's hosted API is the primary distribution path. "Open weights with a commercial hosted API" is the right way to think about it.
Does DeepSeek V4 Flash support vision?
No. V4 Flash (and V4 Pro) are text-only. Use GPT-5.6 Sol or Claude for image input.
Can I use DeepSeek V4 Flash in Claude Code or Codex?
Codex yes — V4 Flash has official Codex integration. Claude Code compatibility is possible through the Anthropic-compatible endpoint or a router/gateway; many teams run it as a cheap secondary model alongside Claude.
What is the context window?
1M tokens, with up to 384K output tokens. That is large enough to process a whole repository or long agent transcript in one call.
How does DeepSeek V4 Flash compare to DeepSeek V4 Pro?
V4 Pro ($0.435/$0.87) is the stronger architect and planner; V4 Flash ($0.14/$0.28) is the faster, cheaper executor. Use Pro for multi-file planning and Flash for high-volume generation — the hybrid cuts cost by roughly 64% versus Pro-only.
Where can I access DeepSeek V4 Flash from China?
Directly through DeepSeek's API, or through TeamoRouter which bundles DeepSeek with Claude, GPT, Gemini, and Kimi behind one key with Alipay/WeChat Pay support.