Back to Models
DeepSeek V4 Flash
deepseekdeepseek/deepseek-v4-flash
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.
API guide
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"}}
}'Thinking / reasoning mode
V4-Flash supports explicit thinking with separate reasoning_content output. Use high or max effort for hard agentic tasks.
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":"Solve this step by step: ..."}],
"reasoning_effort": "max",
"extra_body": {"thinking": {"type": "enabled"}}
}'Tool calling
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":"What's the weather in SF?"}],
"tools": [{"type":"function","function":{"name":"get_weather","parameters":{...}}}],
"tool_choice": "auto"
}'Part of
Related news
Guides
- GuideFlash-Tier Model Shootout: DeepSeek V4.1 Flash vs Qwen3.8 Flash vs GLM-5.3 Flash
- GuideUsing Kimi K3 & DeepSeek V4.1 Flash via OpenAI-Compatible API: Integration Guide for TheRouter
- GuideDeepSeek V4.1 Flash API Complete Guide: 552B MoE Architecture, Native Vision, and Cost-Optimized Routing
- GuideDeepSeek V4 Pro Retires September 14: How to Migrate to V4.1 Flash
- GuideDeepSeek V4-Pro + Codex: Responses API Integration Guide for Coding Agents
- GuideOpenAI Responses API After Assistants: Migration Patterns and Architecture Guide
Fact ledger β every claim on this page traces here
| source | URL | retrieved | |
|---|---|---|---|
| Release date (preview) | api-docs.deepseek.com β | 2026-05-25 | verified |
| Architecture | api-docs.deepseek.com β | 2026-05-25 | verified |
| Context window | api-docs.deepseek.com β | 2026-05-25 | verified |
| Max output | api-docs.deepseek.com β | 2026-05-25 | verified |
| Reasoning modes | api-docs.deepseek.com β | 2026-05-25 | verified |
| License β code | huggingface.co β | 2026-05-25 | verified |
| License β weights | huggingface.co β | 2026-05-25 | verified |
| Open weights | huggingface.co β | 2026-05-25 | verified |
| Training tokens | huggingface.co β | 2026-08-12 | verified |
| Terminal Bench 2.0 | huggingface.co β | 2026-08-12 | verified |
| LiveCodeBench Pass@1 | huggingface.co β | 2026-08-12 | verified |
| MMLU-Pro | huggingface.co β | 2026-08-12 | verified |
| GPQA Diamond | huggingface.co β | 2026-08-12 | verified |
| SWE-bench Verified | huggingface.co β | 2026-08-12 | verified |
| Codeforces rating (Max) | huggingface.co β | 2026-08-12 | verified |
| DeepSeek releases V4 preview β 1M context at open-weight frontier pricing | api-docs.deepseek.com β | 2026-05-25 | verified |
| How does V4-Flash compare to V4-Pro on real agentic workloads? | codersera.com β | 2026-05-25 | to verify |
| Does V4-Flash support the same thinking mode API as V4-Pro? | api-docs.deepseek.com β | 2026-05-25 | to verify |
| What changed in the July 2026 V4-Flash API update? | api-docs.deepseek.com β | 2026-08-12 | to verify |