DeepSeek V4 Flash
DeepSeek V4 Flash is a general-purpose open-weight model served on Sarvam infrastructure. It supports text input and output with a 1,048,576-token context window.
DeepSeek V4 Flash is available in beta. Access is granted per API key — contact us to request access.
At a glance
Key capabilities
Process up to 1,048,576 tokens across the prompt, reasoning, and generated output.
Receive reasoning in reasoning_content separately from the final answer in content.
Use OpenAI-compatible tools and tool_choice for agentic workflows.
Receive reasoning and final-answer deltas as server-sent events.
Quickstart
API reference
Call POST /v2/chat/completions or
POST /v2/responses with model: "deepseekv4-flash".
Request fields are defined in those API references — not duplicated on this model page.
Reasoning
DeepSeek V4 Flash has three reasoning modes — low, high, and max — and accepts all
three directly on both APIs:
This is different from GLM-5.3, where the Responses API rejects the literal string
"max" — DeepSeek V4 Flash has no such restriction.
Read the reasoning trace from choices[].message.reasoning_content on chat, or from the
reasoning item’s summary[0].text in output on Responses when one is returned.
Reasoning tokens are billed as output tokens either way, and count against max_tokens
on chat (defaults to 2048 when omitted) or max_output_tokens on Responses (no
default — omitting it means unbounded generation).
To turn reasoning off on chat, set extra_body.chat_template_kwargs.enable_thinking to
false.
Known limitations
- Reasoning and the final answer share the
max_tokens/max_output_tokensbudget. Raise the cap or disable thinking viaextra_body.chat_template_kwargs.enable_thinking: falsewhen needed. - Structured output with reasoning enabled can return
content: null— disable thinking or raise the token cap.