Back to Models

DeepSeek V4 Flash

deepseekdeepseek/deepseek-v4-flash

DeepSeek V4 Flash β€” fast, cost-efficient model with 1M context window. Supports reasoning, tool calling, and structured output.

DeepSeek-V4-Flash is the fast, cost-optimized tier of DeepSeek's April 2026 V4 preview release. It is a 284B-total / 13B-active Mixture-of-Experts model that ships with a full 1M-token context window and Compressed Sparse Attention (CSA) architecture. Released alongside the larger V4-Pro (1.6T / 49B active), Flash targets production workloads that need frontier-level reasoning and agentic coding at dramatically lower per-token cost.

For TheRouter operators, V4-Flash is the default open-weight choice for high-volume reasoning, long-context RAG, and tool-using agents. It supports the same thinking-mode API as V4-Pro (non-thinking / high / max) and is fully OpenAI-compatible via api.therouter.ai/v1. DeepSeek reports that at 1M context, Flash achieves only 10% of V3.2's single-token FLOPs and 7% of KV cache size β€” the efficiency story that enables its aggressive pricing.

Best for
  • β€’ High-volume production reasoning and agentic coding where Flash@max reasoning effort delivers near-Pro quality at ~3Γ— lower output cost
  • β€’ Long-context RAG and repository-scale analysis β€” 1M window with drastically reduced FLOPs and KV cache versus V3.2
  • β€’ Tool-calling agents and structured JSON output at scale β€” OpenAI-compatible, supports tools + response_format, thinking mode returns reasoning_content
  • β€’ Cost-sensitive workloads that previously routed to GPT-5.4 Mini or Gemini 3 Flash but now want higher reasoning quality at similar or lower price
Reach for something else if
  • β€’ Maximum frontier intelligence β€” V4-Pro (or closed models) still leads on hard agentic benchmarks (Terminal-Bench, BrowseComp, SimpleQA-Verified) by 5–13 points
  • β€’ Vision or multimodal input β€” V4-Flash is text-only; route image tasks to Claude Opus 4.7, Amazon Nova 2 Lite, or GPT-5.4
  • β€’ Extremely latency-sensitive chat where even Flash's thinking overhead is unacceptable β€” non-thinking mode or smaller models may be preferable

How TheRouter serves this differently from the vendor

As the vendor operates it

DeepSeek's first-party service exposes V4-Flash as deepseek-v4-flash through OpenAI-format, Anthropic-format, and Responses API endpoints; Hugging Face also publishes the open weights for self-hosting.

On TheRouter

TheRouter serves the same text model under deepseek/deepseek-v4-flash on its OpenAI-compatible /v1 surface. Pricing, context length, output limit, and supported parameters are rendered from the live model registry rather than duplicated in this curated page.

Context Length
1M
Max Output
384K
Input Priceper 1M tokens
$0.162/ 1M tokens
Output Priceper 1M tokens
$0.648/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$0.162 / 1M tokens
Output$0.648 / 1M tokens

Supported Parameters

temperaturetop_pfrequency_penaltypresence_penaltymax_tokensmax_completion_tokensstoptoolstool_choiceresponse_formatstreamreasoning

Specifications

Release date (preview)2026-04-24api-docs.deepseek.com β†—verified
Architecture284B total / 13B active MoE; Compressed Sparse Attention (CSA) + DeepSeek Sparse Attention (DSA); 1M context nativeapi-docs.deepseek.com β†—verified
Context window1,000,000 tokensapi-docs.deepseek.com β†—verified
Max output384,000 tokensapi-docs.deepseek.com β†—verified
Reasoning modesNon-thinking, Thinking (high / max); reasoning_content returned separatelyapi-docs.deepseek.com β†—verified
License β€” codeMIThuggingface.co β†—verified
License β€” weightsDeepSeek Model License (commercial use permitted)huggingface.co β†—verified
Open weightsYes β€” available on Hugging Facehuggingface.co β†—verified
Training tokens32T+huggingface.co β†—verified

Benchmarks

BenchmarkDistributionScoreSource
Terminal Bench 2.0
V4-Flash Max result in DeepSeek's comparison across modes; V4-Pro Max is listed at 67.9%.
56.9%%huggingface.co β†—
LiveCodeBench Pass@1
V4-Pro Max: 93.5%. Gap of 1.9 pp.
91.6%%huggingface.co β†—
MMLU-Pro
V4-Pro Max: 87.5. Gap of 1.3 pp.
86.2huggingface.co β†—
GPQA Diamond
V4-Pro Max: 90.1. Gap of 2.0 pp.
88.1huggingface.co β†—
SWE-bench Verified
V4-Pro Max: 80.6. Gap of 1.6 pp.
79.0huggingface.co β†—
Codeforces rating (Max)
V4-Pro Max: 3,206 Elo. Gap of 154 Elo points.
3,052 Elohuggingface.co β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

Standard OpenAI-compatible chat endpoint. Add reasoning_effort and the thinking extra_body to enable chain-of-thought.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [{"role":"user","content":"Explain quantum computing in simple terms"}],
    "reasoning_effort": "high",
    "extra_body": {"thinking": {"type": "enabled"}}
  }'

More from deepseek

Similar models

Cross-provider sibling models

News & changes

2026-04-24

DeepSeek releases V4 preview β€” 1M context at open-weight frontier pricing

DeepSeek announced V4-Pro and V4-Flash on April 24, 2026. Both models introduce Compressed Sparse Attention enabling 1M context at dramatically lower FLOPs and KV cache than V3.2. Flash (284B/13B) targets cost-sensitive production workloads; Pro (1.6T/49B) targets maximum intelligence. Weights are MIT-licensed and available on Hugging Face.

re-authored by TheRouterapi-docs.deepseek.com β†—

Related news

Guides

Frequently asked

How does V4-Flash compare to V4-Pro on real agentic workloads?

On LiveCodeBench, SWE-bench Verified, and MMLU-Pro the gap is 1.3–1.9 points. On harder agent benchmarks (Terminal-Bench, BrowseComp, SimpleQA) the gap widens to 5–13 points. For most production coding and tool-use agents, Flash@max is within acceptable range of Pro@high while costing ~3Γ— less per output token.

re-authored by TheRoutercodersera.com β†—
Does V4-Flash support the same thinking mode API as V4-Pro?

Yes. Both models expose the same thinking toggle via extra_body and the same reasoning_effort levels (high / max). The reasoning_content field is returned at the same level as content and must be concatenated into subsequent turns when tool calls are involved.

What changed in the July 2026 V4-Flash API update?

DeepSeek's pricing page now lists the served model version as DeepSeek-V4-Flash-0731, keeps the 1M context window and 384K maximum output, and marks Responses API support as available for V4-Flash only at retrieval time. DeepSeek also stated that legacy deepseek-chat and deepseek-reasoner routes would retire after July 24, 2026 and were already routing to V4-Flash before retirement.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release date (preview)api-docs.deepseek.com β†—2026-05-25verified
Architectureapi-docs.deepseek.com β†—2026-05-25verified
Context windowapi-docs.deepseek.com β†—2026-05-25verified
Max outputapi-docs.deepseek.com β†—2026-05-25verified
Reasoning modesapi-docs.deepseek.com β†—2026-05-25verified
License β€” codehuggingface.co β†—2026-05-25verified
License β€” weightshuggingface.co β†—2026-05-25verified
Open weightshuggingface.co β†—2026-05-25verified
Training tokenshuggingface.co β†—2026-08-12verified
Terminal Bench 2.0huggingface.co β†—2026-08-12verified
LiveCodeBench Pass@1huggingface.co β†—2026-08-12verified
MMLU-Prohuggingface.co β†—2026-08-12verified
GPQA Diamondhuggingface.co β†—2026-08-12verified
SWE-bench Verifiedhuggingface.co β†—2026-08-12verified
Codeforces rating (Max)huggingface.co β†—2026-08-12verified
DeepSeek releases V4 preview β€” 1M context at open-weight frontier pricingapi-docs.deepseek.com β†—2026-05-25verified
How does V4-Flash compare to V4-Pro on real agentic workloads?codersera.com β†—2026-05-25to verify
Does V4-Flash support the same thinking mode API as V4-Pro?api-docs.deepseek.com β†—2026-05-25to verify
What changed in the July 2026 V4-Flash API update?api-docs.deepseek.com β†—2026-08-12to verify
Help & contact