DeepSeek V4.1 Flash 1017
DeepSeek V4.1 Flash 1017 is a general-purpose open-weight model served on Sarvam infrastructure. It accepts text and image input and has a 1,048,576-token context window.
DeepSeek V4.1 Flash 1017 is in beta. Its behaviour, limits, and availability may change before general availability. Beta models must be enabled for your API key; without access, requests return 400 invalid_request_error (“This model is currently in beta”). Contact us to request access. See Beta models.
At a glance
Key capabilities
Moving from OpenRouter, Fireworks AI, or Together AI? The migration guides map model IDs and request fields to Sarvam.
Quickstart
Supported parameters
model: "deepseekv4.1-flash-1017" on Chat Completion V2
and Responses. Full request/response schemas live on
those API reference pages; this table covers what’s actually accepted for this model.
400 is invalid_request_error.
Reasoning
DeepSeek V4.1 Flash 1017 has three reasoning modes, low, high, and max, and accepts all
three directly on both APIs. It reasons at high when the field is omitted. minimal is
served as low, and medium and xhigh are served as high.
This is different from GLM-5.3, where the Responses API rejects the literal string
"max", DeepSeek V4.1 Flash 1017 has no such restriction.
Read the reasoning trace from choices[].message.reasoning_content on chat, or from the
reasoning item’s content[0].text in output on Responses (summary is filled only when you
set reasoning.summary). Reasoning tokens are billed as output tokens either way, and count
against max_tokens on chat or max_output_tokens on Responses. Neither has a small
default, so set them explicitly.
To turn reasoning off, set reasoning_effort: "none" on chat or reasoning.effort: "none" on
Responses. On chat, thinking: {"type": "disabled"} and
chat_template_kwargs: {"enable_thinking": false} (through extra_body in the SDKs) also work.
Integer effort values from 1 to 100 are accepted as well.
Image input
Send images inline as base64 data URIs only. Remote image URLs are rejected:
Known limitations
- Reasoning and the final answer share the
max_tokens/max_output_tokensbudget. Raise the cap, or turn thinking off withreasoning_effort: "none", when needed.