Skip to content

DeepSeek-V4-Flash

POST /v1/chat/completions model: DeepSeek-V4-Flash

The weights served here are DeepSeek-V4-Flash-0731, DeepSeek’s official release of DeepSeek-V4-Flash, superseding the earlier preview. The vendor positions it as an agentic model: on the benchmarks published in its model card it beats DeepSeek-V4-Pro (Preview) despite a far smaller activated parameter count. The accompanying technical report is titled DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence (arXiv:2606.19348).

From the shipped config.json:

ArchitectureDeepseekV4ForCausalLM (deepseek_v4)
Layers43
Hidden dimension4,096
Attention64 query heads, 1 KV head — MLA, q_lora_rank 1,024, 64-dim RoPE split
Mixture of Experts256 routed + 1 shared, 6 routed activated per token, expert intermediate 2,048
Vocabulary129,280
Native context1,048,576
Multi-token prediction1 layer
QuantisationFP8 e4m3, block [128, 128], dynamic activation scaling
LicenceMIT

The million-token window is native — it is max_position_embeddings in the config, not a RoPE extension applied at serve time.

The model card suggests temperature = 1.0, with top_p = 0.95 for agentic use and top_p = 1.0 otherwise. Both parameters are accepted here, so you can follow that advice as written.

Context length1,048,576 tokens
Input modalitiestext only
Streaming✅
Tool calling✅
JSON output✅ json_object
Thinking✅ — off unless you ask
Stabilityexperimental

Omitting reasoning_effort means no thinking. A plain request returns an empty reasoning and reasoning_tokens: 0.

The model card describes three levels — low, high, max. This endpoint accepts all seven values:

noneminimallowmediumhighxhighmax
✅✅✅✅✅✅✅

They do not map to seven distinct behaviours: minimal/low/medium produce a similar amount of thinking and high/max think noticeably longer — two effective tiers, broadly consistent with the three the vendor documents.

Where the output lands:

Thinking textchoices[0].message.reasoning
Token countusage.completion_tokens_details.reasoning_tokens
Also availableusage.reasoning_tokens — this model emits the top-level field

A system message may sit at any position, there may be more than one, and the role may be spelled either system or developer.

That is not true of Qwen3.8-Flash-Next. If one code path has to serve both, write to that model’s stricter rules: a single system message, first in the array, with the role spelled system.

Context window1,048,576 tokens, counted as prompt plus output
JSON outputresponse_format: {"type": "json_object"}
Turning thinking onreasoning_effort (or the equivalent reasoning.effort)
Inputtext only; for images use DeepSeek-V4-Flash-Vision-Exp
Terminal window
curl https://developer.amd.com.cn/radeon/api/v1/chat/completions \
-H "Authorization: Bearer $RADEON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "DeepSeek-V4-Flash",
"reasoning_effort": "low",
"temperature": 1.0,
"top_p": 0.95,
"messages": [
{ "role": "system", "content": "Answer in one sentence." },
{ "role": "user", "content": "Why is the sky blue?" }
]
}'