Skip to navigation

DeepSeek V4.1 Flash 1017

DeepSeek V4.1 Flash 1017
DeepSeek · Text Generation
POST /v1/chat/completions

Post-trained 1017 release with stronger coding and agent results, faster task completion, shorter outputs, image input, and a 1M context window.

At a glance

FieldValue
Model iddeepseek-v4-1-flash-1017
Model release date2026-10-17
Input modalitiesText, Image
Output modalitiesText
Context window1M
Weight precision-
Max output tokens393,216
RegionSingapore
Featuresreasoning, vision, function_calling, agentic_coding
Native inferenceNo
NewYes
Structured outputJSON Mode
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/deepseek-v4-1-flash-1017:generateContent
Alternate model idsdeepseek-v4.1-flash-1017, deepseek/deepseek-v4-1-flash-1017, deepseek-ai/deepseek-v4-1-flash-1017, deepseek-v4-1-flash, deepseek-v4.1-flash, deepseek/deepseek-v4-1-flash, deepseek-ai/deepseek-v4-1-flash

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$0.30
Outputper 1M generated tokens$1.20
Web Search (Linkup)per call when invoked$0.013

Example request

curl https://api.empiriolabs.ai/v1/chat/completions \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "deepseek-v4-1-flash-1017", "messages": [{"role":"user","content":"Hello"}]}'

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno0.7Sampling temperature. 0 = deterministic, 2 = maximum randomness. · Range: 0 – 2
top_pnumberno0.9Nucleus sampling probability mass. Lower = more focused. · Range: 0 – 1
max_tokensnumberno-Maximum output tokens. When omitted, the model’s own default applies. · Range: 1 – 393216
stopstringno-Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleannotrueEnable step-by-step reasoning before answering.
reasoning_effortenumno"medium"Reasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model. · Allowed: none, low, medium, high, max
thinking_budgetnumberno32768Maximum tokens reserved for reasoning when thinking is enabled. · Range: 1 – 393216
response_formatenumno-Return the output as a valid JSON object (JSON mode). Describe the fields you want in your prompt.
web_search_linkupbooleannofalseOptional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds $0.013 per call when invoked on top of the model’s normal token cost. Disabled by default.
disable_formattingbooleannofalseReturn the answer without the Sources list that web search adds.

Notes

Thinking is enabled by default and can be disabled. Reasoning tokens are billed as output tokens. Image input is accepted alongside text. JSON mode is supported. Strict JSON Schema output is not available on this model. Optional Linkup web search is billed only when invoked. From October 27, 2026, the deepseek-v4-1-flash model IDs are served by this model.


Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/deepseek-v4-1-flash-1017.