DeepSeek V4.1 Flash
A mixture-of-experts model for coding agents and reasoning across large document collections.
deepseek/deepseek-v4.1-flashBenchmarks
Artificial Analysis · Max
- CodeSciCode
- 51.9%
- ReasoningHumanity’s Last Exam
- 39.2%
- Long contextAA-LCR v1.1
- 84%
Capabilities
- Tool Calling (supported)
- JSON Mode (supported)
- Function Calling (supported)
- Vision (supported)
- Streaming (supported)
- Reasoning (supported)
- Structured outputs (supported)
Model details
- Model size
- 552B backbone + 196B Engram parameters8B active on input, 16B on output
- Context window
- 1,049k
- Max output
- 262k
- Precision
- FP8
- Modalities
- Vision · Text Generation
Pricing
USD per 1M tokens
- Input
- $0.30
- Output
- $1.20
- Cache read
- $0.009
Availability
- On-demand API
- Available
- Private deployment
- By request
- On-prem Enterprise
- By request
- Reserved capacity
- By request
Overview
DeepSeek V4.1 Flash is a mixture-of-experts model for coding, tool use, and reasoning over substantial collections of text. It can follow a symbol across files or compare a requirement across several documents when each source is clearly identified.
Its thinking control also works on a numeric scale. A workflow can use direct answers to extract straightforward facts, then spend more reasoning effort on the smaller set of records with conflicting evidence. Both steps can use the same model ID.
Mixlayer serves this model with a context window of 1,048,576 tokens shared by the input and generated output.
Reasoning controls
Defaults to High. Choose an effort from 1 to 100, or turn thinking off.
Read the model guideUse Cases
Repository-wide coding
Trace a changed field from an API schema through storage, client libraries, and tests. With the repository and a test runner connected, Flash can update the callers and check the results in the same session. DeepSeek evaluates this kind of coding on DeepSWE and Terminal-Bench.
Long-context research synthesis
Compare battery-life studies whose test conditions appear in different chapters and appendices. Flash supports up to a million tokens of context, so a researcher can bring the reports together and build a table of runtimes, workloads, and source pages that shows which results are comparable.
Visual debugging
Investigate a chart whose legend disappears at a particular screen width. Flash can read the screenshot alongside the component code, suggest a layout change, and inspect a fresh screenshot to see whether the legend is visible.
Incident timelines
Bring deployment records, support tickets, and timestamped logs together to reconstruct a service outage. A timeline that cites the source of each event gives responders a way to check when the first symptom appeared and which change preceded it.
Quick Start
Create an API key and export it as MIXLAYER_API_KEY to send a request.
curl https://mixlayer.ai/v1/chat/completions \
-H "Authorization: Bearer $MIXLAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'FAQ
Should I use Chat Completions or Responses for a multi-turn conversation?
Use Chat Completions if your app already keeps the transcript. Send the earlier messages with each new turn. Use Responses if you want Mixlayer to carry the conversation forward. When your organization allows storage, set store to true and pass the resulting ID as previous_response_id on the next request. Compare conversation handling
Why did the reply stop before it finished?
Input and generated output share a context window of 1,048,576 tokens. Chat history and tool results use part of that space. On reasoning models, thinking also uses the output allowance, so a short visible answer can still exhaust it. If Chat Completions reports length in finish_reason, check both limits before retrying. Trim earlier messages or raise the output cap if there is room. How reasoning uses the output budget
How is DeepSeek V4.1 Flash billed?
On-demand generation charges separately for input and output tokens. Cached input uses the model’s cache-read rate where published. Output includes both reasoning tokens and the visible reply. Mixlayer pricing
Can I look up the original input later to investigate a bad result?
By default, Mixlayer processes the input in memory and discards it and the result after inference. Keep the examples you need for evaluation in your own application. Your organization can also enforce zero retention for features that offer optional storage. Mixlayer’s retention controls
Can I give Flash more thinking time than High without going all the way to Max?
Yes. High maps to 75 and Max to 100. To try a setting in between, send the integer 85 as reasoning_effort in Chat Completions or reasoning.effort in Responses. The number controls effort. Set a separate output limit if you need a token ceiling. DeepSeek effort settings on Mixlayer
Why does Flash list 8B active parameters for input and 16B for output?
Flash uses different parts of its network to read a prompt and to generate a reply. It activates about 8B parameters per token while reading and 16B per token while writing. If your workload reads long documents and returns short answers, measure time to first token separately from the time spent generating the reply. DeepSeek’s architecture description
How can I tell whether Flash’s coding benchmark results will carry over to my agent?
DeepSeek tested Flash at Max effort with several coding agents. The same model scored differently depending on which agent ran the task. Try a few issues with known fixes using your own tools and step limit, then run the repository tests on the resulting patches. DeepSeek’s coding evaluations