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.

Everything below was measured against the live endpoint. Where it disagrees with the model card, the endpoint wins — the gateway validates and rebuilds requests before they reach the backend.

Context length1,048,576 tokens
Input modalitiestext only
Streaming
Tool calling✅ (no parallel calls)
JSON outputjson_object · ❌ json_schema
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 six values, all with 200:

minimallowmediumhighxhighmax
200200200200200200

They do not map to six 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

Every shape we tested is accepted:

ShapeStatus
system first, then user200
system after a user turn200
system last200
Two system messages200
developer instead of system200

That is not true of Qwen3.8-Flash-Next. If one code path has to serve both, write to that model’s stricter rules.

What you sendWhat comes back
max_tokens beyond the window400 Requested token count exceeds the model's maximum context length of 1048576 tokens.
response_format: json_schema400 Model DeepSeek-V4-Flash does not support JSON schema output mode
An image_url content part400 Model DeepSeek-V4-Flash does not support image input.
thinking: {...}400 — use reasoning_effort
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?" }
]
}'