What Is DeepSeek V4.1?
Last updated November 9, 2026.
DeepSeek V4.1 is DeepSeek's newest open-weight model generation, and as of November 9, 2026 it contains one model: DeepSeek V4.1 Flash. DeepSeek released it on September 10, 2026 and shipped an update, V4.1 Flash 1017, on October 17. There is no V4.1 Pro. DeepSeek's API still serves V4-Pro-0813 under the deepseek-v4-pro name. V4.1 Flash is a new design, not a retrain of V4. It is a mixture-of-experts model with a 552B backbone plus 196B of Engram conditional memory, and it activates 8B parameters per token during prefill and 16B during decode. It reads images natively, handles a 1M-token context, and ships under the MIT license. In DeepSeek's own tables it beats V4-Pro-0813 on agent benchmarks, for example 74.2 vs 62.7 on DeepSWE v1.1, while V4-Pro keeps the lead on knowledge tests such as GPQA Diamond. DeepSeek's API bills it as deepseek-flash at $0.15 per million input tokens and $0.60 per million output tokens off-peak.
What shipped
V4.1 Flash (September 10) and V4.1 Flash 1017 (October 17). One architecture: a 20-layer causal encoder feeding a 20-layer decoder, Compressed Sparse Attention 2, an FP4 main KV cache, Engram memory and native vision. MIT weights on Hugging Face.
What did not ship
A V4.1 Pro. DeepSeek planned to route V4 Pro traffic to V4.1 Flash until a V4.1 Pro arrived, then cancelled the reroute. V4-Pro-0813 is still the Pro model on the API, and no V4.1 Pro weights exist.
| Attribute | V4.1 Flash | V4.1 Flash 1017 |
|---|---|---|
| Release date | September 10, 2026 | October 17, 2026 |
| Weights | deepseek-ai/DeepSeek-V4.1-Flash | deepseek-ai/DeepSeek-V4.1-Flash-1017 |
| What DeepSeek calls it | Smallest model in a new architecture family | A minor update to V4.1 Flash |
| Backbone parameters | 552B, plus 196B Engram memory | Same architecture |
| Active parameters | 8B prefill / 16B decode | Same |
| Context / API max output | 1M / 384K | 1M / 384K |
| Input modalities | Text and image | Text and image |
| License | MIT | MIT |
| DeepSeek API status | Replaced by 1017 on October 17 | Served as deepseek-flash |
| Recommended sampling | temperature 1.0, top_p 0.95 or 1.0 | temperature 1.0, top_p 1.0 |
DeepSeek V4.1 Release Date and Timeline
DeepSeek released V4.1 Flash on September 10, 2026. The Hugging Face repository went up at 02:17 UTC that day, and the new API prices took effect at 04:00 UTC. The same announcement retired V4 Flash and announced a plan to retire V4 Pro, which DeepSeek later reversed. Five weeks later, on October 17, the 1017 update replaced the September checkpoint everywhere DeepSeek serves it.
| Date (2026) | Event | What it means |
|---|---|---|
| Apr 24 | DeepSeek V4 launches on the API with V4-Pro and V4-Flash | The previous generation. Its full history is in the DeepSeek V4 guide. |
| Aug 13 | V4-Pro GA release (V4-Pro-0813) on app, web and API | This is still the checkpoint behind deepseek-v4-pro today. |
| Aug 21 | V4-Flash-Vision-Exp released as an experimental image model | V4 Flash itself was text only. |
| Sep 10 | V4.1 Flash released; API name deepseek-flash; prices cut | V4 Flash and V4-Flash-Vision-Exp retired. Their names temporarily route to V4.1 Flash. |
| Sep 10 | Launch post: deepseek-v4-pro will route to V4.1 Flash from 04:00 UTC September 14 "until V4.1-Pro launches" | DeepSeek planned to phase out V4 Pro. |
| Later | Change log: V4 Pro keeps serving after September 14, billing unchanged | The reroute never happened. V4-Pro-0813 is still on the API. |
| Oct 17 | V4.1 Flash 1017 released on web, app and API at the same price | deepseek-flash serves 1017. Legacy V4 Flash names also route to 1017 at the Flash price. |
The "V4.1" name covers one model so far. When people search for DeepSeek V4.1, the thing they can call is V4.1 Flash, and on DeepSeek's own API that now means the 1017 checkpoint. OpenRouter lists the two checkpoints separately as deepseek/deepseek-v4.1-flash and deepseek/deepseek-v4.1-flash-1017. For the model as a product (pricing across providers, Claude Code and Codex setup, cache economics), see the DeepSeek V4.1 Flash page. For the October update on Morph, see DeepSeek V4.1 Flash 1017.
Is There a DeepSeek V4.1 Pro?
No. DeepSeek has not released a V4.1 Pro as of November 9, 2026, and it has published no V4.1 Pro specs, prices or benchmarks. Four primary sources agree:
- The launch post expected one. It said all
deepseek-v4-prorequests would route to V4.1 Flash at V4.1 Flash rates from September 14, and that "this will continue until V4.1-Pro launches." - The reroute was cancelled. DeepSeek's change log says that "in response to user demand," it will continue providing API services for V4 Pro after September 14, 2026, with billing unchanged.
- The Pro API name still serves V4. DeepSeek's pricing page lists the model behind
deepseek-v4-proas DeepSeek-V4-Pro-0813. - No weights exist. The newest V4-family repositories in the
deepseek-aiHugging Face organization are V4.1-Flash-1017 and V4.1-Flash. There is no V4.1-Pro repository.
DeepSeek does describe V4.1 Flash as "the smallest model in our new architecture family" and says the architecture is designed for "scaling to larger models." A larger sibling is implied. It has no date. If you need a Pro-sized DeepSeek model today, the choice is between the two models DeepSeek actually serves:
| Line item | deepseek-flash (V4.1-Flash-1017) | deepseek-v4-pro (V4-Pro-0813) |
|---|---|---|
| Backbone / active parameters | 552B / 8B prefill, 16B decode | 1.6T / 49B |
| Input, cache hit | $0.003 / $0.006 | $0.022 / $0.044 |
| Input, cache miss | $0.15 / $0.30 | $0.66 / $1.32 |
| Output | $0.60 / $1.20 | $1.98 / $3.96 |
| Image input | Supported | Not supported |
| Concurrency limit per account | 2,500 | 500 |
V4-Pro-0813 still wins on knowledge. In DeepSeek's V4.1 launch table it scores 92.4 on GPQA Diamond to V4.1 Flash's 90.9, and 42.7 to 39.1 on the text-only subset of Humanity's Last Exam. At the base-model level, V4-Pro-Base leads SimpleQA-Verified 55.2 to 42.3 and LongBench-V2 51.5 to 45.2. On the agent and coding rows of DeepSeek's launch table, V4.1 Flash is ahead, at 3.3x lower output cost off-peak. Send agent loops and coding to V4.1 Flash. Test V4-Pro on factual recall and long-document reading before you assume Flash is enough.
DeepSeek V4.1 vs V4: What Changed
The jump from V4 to V4.1 is an architecture change. DeepSeek's V4-Flash-0731 update "keeps the same model architecture and size" as the V4 Flash preview and "was only re-post-trained." V4.1 Flash was trained from scratch on a new design that DeepSeek says is built for "a higher capability ceiling, faster inference, higher throughput, and scaling to larger models." For the original V4 Pro and V4 Flash, including serving benchmarks and the V4-era pricing history, see the DeepSeek V4 guide.
| Dimension | V4-Flash | V4-Pro | V4.1-Flash |
|---|---|---|---|
| Backbone parameters | 284B | 1.6T | 552B, plus 196B Engram memory |
| Activated parameters | 13B | 49B | 8B prefill / 16B decode |
| Layout | MoE | MoE | MoE, Causal Encoder-Decoder (20 + 20 layers) |
| Global KV cache per token | About 4x V4.1-Flash | Not stated on the card | 890 bytes (FP4 main KV) |
| Image input | No (separate Vision-Exp variant) | Not supported on the API | Native |
| DeepSWE v1.1 (DeepSeek-reported) | 54.4 (0731) | 62.7 (0813) | 74.2 (launch), 77.0 (1017) |
The changes that matter in practice:
- Prefill is cheap by design. The model activates 8B parameters per input token and 16B per output token. The model card says this substantially improves "cost efficiency for input-heavy agentic workloads," which is what a coding agent is: it rereads a large context every turn and writes a short reply.
- The KV cache shrank. DeepSeek says V4.1 Flash needs 1/4 the HBM and 1/8 the SSD storage for its KV cache compared with the previous generation. Its reason is billing: "Cache-hit charges often account for a large share of agent costs."
- Vision is native. V4 Flash was text only, and images went through the experimental V4-Flash-Vision-Exp. V4.1 Flash was pre-trained on image and text together from the start.
- Prices went down. DeepSeek's change log says "API prices have been reduced accordingly" with the release. The current rates are in the API section.
- The Pro tier did not move. V4.1 has no Pro model, so the Flash-vs-Pro choice is now a cross-generation choice: new-architecture Flash against old-architecture Pro.
โCompared with the previous generation, V4.1-Flash's KV cache needs just 1/4 the HBM and 1/8 the SSD storage. Cache-hit charges often account for a large share of agent costs. Compressing the cache cuts those costs significantly.โ
DeepSeek V4.1 Architecture: CED, CSA2, Engram, and the FP4 KV Cache
Everything in this section comes from the DeepSeek-V4.1-Flash model card on Hugging Face, which DeepSeek titled "Pushing the Limits of KV Cache Compression." DeepSeek also links a technical report PDF from the card.
Causal Encoder-Decoder (CED)
V4.1 Flash is a 40-layer Transformer split into a 20-layer causal encoder and a 20-layer decoder. The decoder's global KV cache is projected from the encoder's final hidden states instead of being computed from each decoder layer's own hidden states. That split is where the two active-parameter numbers come from: 8B per token during prefill, 16B during decode. Each MoE layer has 1 shared expert and 384 routed experts, and 6 routed experts fire per token.
Compressed Sparse Attention 2 (CSA2)
CSA2 gives every attention layer one of three static modes: Full, Reindex or Reuse. Layers share the main KV and the indexer keys, and reuse Top-K sparse-attention indices instead of recomputing them. In the decoder, a Hierarchical Sparse Indexer limits later indexing layers to a candidate pool built by the first Full-mode layer, so the cost of the deeper indexers does not grow with context length.
FP4 KV cache and SWA Bounded Replay
The main KV cache is stored in FP4 (E2M1, with one E4M3 scale per 16 channels). Together with CSA2 that brings the global KV cache to 890 bytes per token, roughly a quarter of V4-Flash and, per the card, about 437 times smaller than DeepSeek-V1. At 890 bytes per token, a full 1M-token context holds under 1 GB of global KV. SWA Bounded Replay handles the sliding-window layers: instead of persisting their KV to SSD, it rebuilds missing sliding-window state by replaying only the most recent window of tokens. That cuts the persistent KV footprint to about 1/8 of V4-Flash.
โCombined with FP4 main KV caching, these designs reduce the global KV cache footprint to 890 bytes per token, roughly 1/4 of DeepSeek-V4-Flash.โ
Engram conditional memory
Engram is a separate 196B-parameter memory that the model reads through a sparse, token-based lookup. DeepSeek counts it outside the 552B backbone. For self-hosters this matters because the tables do not have to sit in GPU memory: vLLM's recipe exposes an Engram CPU-offload option (covered in the self-host section).
Other components
- Single-Pass mHC: revised residual-stream mixing with a fused Mega-mHC kernel.
- DSpark speculative decoding: semi-autoregressive draft generation with confidence-scheduled verification. vLLM's recipe notes that V4.1 dropped the MTP module, so DSpark is the only speculative method for this checkpoint.
- Vision: a DeepSeek-ViT encoder trained from scratch (2D-RoPE, 3x3 pixel-unshuffle downsampling) and a two-layer MLP projector turn images into embeddings that the model processes alongside text.
Training
DeepSeek pre-trained V4.1 Flash from scratch on 45T multimodal tokens. Sparse attention trained at a 64K sequence length, and the context was extended to 1M tokens at the 34T token mark. Post-training follows SFT, then RL, then on-policy distillation "without algorithmic modifications." DeepSeek says the substantive changes were in the data pipeline, through "large-scale automated synthesis of agent tasks and environments." The 1017 update adds reinforcement learning with self-feedback aimed at end-to-end project development.
DeepSeek's launch post says "552B-parameter MoE," and the model card says 552B backbone parameters. The 196B Engram memory is listed separately. The Hugging Face safetensors widget on the 1017 repository shows 763B, which is a raw count of every tensor in the checkpoint rather than DeepSeek's stated model size. Use 552B backbone plus 196B Engram, with 8B active in prefill and 16B in decode.
DeepSeek V4.1 Benchmarks vs V4
Every number below is DeepSeek-reported. DeepSeek ran all instruct results at maximum reasoning effort (reasoning_effort=100) with temperature 1.0 and top_p 0.95. Code-agent benchmarks ran in the Minimal mode of DeepSeek Harness with a 1M-token context, except DeepSWE v1.1 (mini-SWE harness) and SEC-Bench Pro (Claude Code). No independent lab has published a reproduction of these rows.
| Benchmark | V4.1-Flash | V4-Pro-0813 | V4-Flash-0731 |
|---|---|---|---|
| GPQA Diamond | 90.9 | 92.4 | 89.9 |
| HLE, no tools | 36.8 (39.1 text-only) | 42.7 (text-only) | 37.8 (text-only) |
| Codeforces rating | 3471 | 3348 | 3289 |
| MathArena Apex | 65.6 | 65.3 | 58.6 |
| Terminal-Bench 2.1 | 90.6 | 87.9 | 82.7 |
| Terminal-Bench 3.0 | 30.0 | 11.8 | 7.6 |
| Terminal-Bench 4.0 | 31.2 | 12.4 | 7.0 |
| DeepSWE v1.1 (resolved) | 74.2 | 62.7 | 54.4 |
| ProgramBench (Almost@1) | 20.3 | 15.5 | not reported |
| NL2Repo-Bench | 65.4 | 61.5 | 54.2 |
| CyberGym | 88.1 | 83.3 | 76.7 |
| SEC-Bench Pro | 62.8 | 56.4 | 30.9 |
| ExploitGym | 15.3 | 5.4 | 1.8 |
| HLE with tools | 63.9 | 60.0 | 51.5 |
| Automation-Bench | 54.8 | 43.2 | 37.7 |
| Agents' Last Exam | 31.8 | 25.7 | 25.2 |
V4.1 Flash leads 14 of the 16 rows, one of them (MathArena Apex) by 0.3 points. V4-Pro-0813 keeps GPQA Diamond and Humanity's Last Exam without tools. The biggest gains are on the newer, harder terminal suites: on Terminal-Bench 3.0, V4.1 Flash scores 30.0 against V4-Pro's 11.8, and on Terminal-Bench 4.0, 31.2 against 12.4. On the older Terminal-Bench 2.1, every model in the table is above 82, so the gap there is 2.7 points.
Base models: where V4.1 gains and where it does not
DeepSeek also published base-model scores from its internal framework under identical settings. It treats scores within 0.3 of each other as equivalent.
| Benchmark (shots) | V4-Flash-Base | V4-Pro-Base | V4.1-Flash-Base |
|---|---|---|---|
| MMLU-Pro (5-shot) | 68.3 | 73.5 | 74.1 |
| SimpleQA-Verified (25-shot) | 30.1 | 55.2 | 42.3 |
| SuperGPQA (5-shot) | 46.5 | 53.9 | 53.1 |
| MultiLoKo (5-shot) | 42.6 | 50.9 | 45.5 |
| HumanEval (0-shot) | 69.5 | 76.8 | 79.4 |
| BigCodeBench (3-shot) | 56.8 | 59.2 | 60.6 |
| GSM8K (8-shot) | 90.8 | 92.6 | 93.0 |
| MATH (4-shot) | 57.4 | 64.5 | 61.1 |
| MGSM (8-shot) | 85.7 | 84.4 | 80.2 |
| LongBench-V2 (1-shot) | 44.7 | 51.5 | 45.2 |
The base table explains the instruct table. V4.1-Flash-Base beats V4-Flash-Base on factual recall (42.3 vs 30.1 on SimpleQA-Verified) and leads all three on code, but V4-Pro-Base still knows more and reads long documents better. V4.1 also scores lowest of the three on MGSM, the multilingual grade-school math set (80.2). The base-model gains on code are a few points, so most of the agentic jump in the instruct table likely comes from post-training, where DeepSeek says its changes were "large-scale automated synthesis of agent tasks and environments."
- No SWE-bench Verified, SWE-bench Pro or LiveCodeBench. DeepSeek's coding headline benchmarks for V4.1 are DeepSWE v1.1, Terminal-Bench 2.1/3.0/4.0, ProgramBench, NL2Repo-Bench and Codeforces. The last SWE-bench Verified score in DeepSeek's change log belongs to V3.1. Any V4.1 SWE-bench number you see did not come from DeepSeek.
- NL2Repo-Bench has two values. The launch table and change log say 65.4 for V4.1 Flash. The instruct table on the Hugging Face card says 64.0. We use the release-notes figure and flag the gap.
- One independent aggregate exists, for 1017 only. See the Artificial Analysis Intelligence Index v5 score below.
- Peer comparisons live on another page. DeepSeek's tables also list GLM-5.3, Kimi K3, GPT-5.6 Sol and Claude Opus 5. Those comparisons are on the DeepSeek V4.1 Flash page.
The independent score: Artificial Analysis Intelligence Index v5
Artificial Analysis published Intelligence Index v5 on October 27, 2026. It scores DeepSeek V4.1 Flash 1017 (max) at 32, level with GLM-5.3 (max) at 32 and below Claude Haiku 5.5 (max) at 36. Kimi K3.1 Pro scores 46 on the same index. Artificial Analysis puts the two 32s at "26 points behind the leader." This is an aggregate of Artificial Analysis's own evaluations, not a re-run of DeepSeek's rows, and it covers 1017 only. Compare it only with other v5 scores, because earlier index versions use a different scale.
The 1017 Update: What Changed in DeepSeek V4.1 Flash 1017
DeepSeek-V4.1-Flash-1017 arrived on October 17, 2026. The model card calls it "a minor update" with "substantial improvements across reasoning, coding, agentic tasks, and visual benchmarks." The release post adds "faster task completion, and shorter outputs than the previous version," and says DeepSeek used reinforcement learning with self-feedback to improve end-to-end project work, from game creation to 3D modeling. It is tuned for specific harnesses: DeepSeek names DeepSeek Harness, Tencent CodeBuddy and WorkBuddy, and asks users to upgrade to DeepSeek Harness v0.2.1-rc.1 or later.
| Benchmark | V4.1-Flash | V4.1-Flash-1017 | Change |
|---|---|---|---|
| HLE, no tools | 36.8 (39.1 text-only) | 42.6 (44.0 text-only) | +5.8 |
| Terminal-Bench 4.0 | 31.2 | 42.3 | +11.1 |
| DeepSWE v1.1 | 74.2 | 77.0 | +2.8 |
| ProgramBench | 20.3 | 29.1 | +8.8 |
| NL2Repo-Bench | 65.4 | 68.2 | +2.8 |
| Automation-Bench (1017 run on v1.0.6) | 54.8 | 60.5 | +5.7 |
| Agents' Last Exam | 31.8 | 35.4 | +3.6 |
| Apex Bench v1.1 | 64.6 | 72.1 | +7.5 |
| Chartography (with tools) | 78.9 | 83.0 | +4.1 |
| BabyVision (with tools) | 89.6 | 92.5 | +2.9 |
| ZeroBench-main (with tools, Pass@5) | 49.0 | 51.0 | +2.0 |
Every row goes up, but DeepSeek chose the rows. The 1017 table drops several benchmarks from the launch table, including GPQA Diamond, Codeforces, Terminal-Bench 2.1 and 3.0, CyberGym and SEC-Bench Pro, so there is no first-party 1017 number for those. DeepSeek's 1017 post also plots DeepSWE v1.1 pass rate against cost per task (77.0% at max effort, mini-swe-v2 harness), but the chart has no labeled dollar values, so we do not quote a cost.
The switch was automatic on DeepSeek's side. The API name deepseek-flash now serves 1017 at the same price, and the web and app models moved with it. On Morph, morph-dsv41flash and morph-dsv41flash-1017 route to the same deployment at the same price, as the DeepSeek V4.1 Flash 1017 page explains.
Harness Choice Moves DeepSeek V4.1 Scores
DeepSeek's model card runs the same model through eight agent scaffolds on the same two benchmarks. All runs use max effort, temperature 1.0, top_p 0.95, a 1M-token context limit and up to 500 steps per agent, with 8 samples per task on DeepSWE v1.1 and 3 on Terminal-Bench 2.1 (no network access).
| Scaffold | DeepSWE v1.1 (resolved) | Terminal-Bench 2.1 |
|---|---|---|
| Claude Code | 69.8 | 88.0 |
| Codex | 65.6 | 84.1 |
| OpenCode | 65.5 | 85.0 |
| Pi | 66.2 | 86.1 |
| mini-SWE | 74.2 | 90.3 |
| DeepSeek Harness, Minimal | 72.6 | 90.6 |
| DeepSeek Harness, Standard | 70.5 | 85.8 |
| DeepSeek Harness, PTC | 67.6 | 85.8 |
Both headline numbers are the best scaffold in DeepSeek's own sweep. The 74.2 on DeepSWE v1.1 is the mini-SWE run; the 90.6 on Terminal-Bench 2.1 is DeepSeek Harness Minimal. In Claude Code the same model scores 69.8 and 88.0. In Codex it scores 65.6 and 84.1. The spread across scaffolds is 8.7 points on DeepSWE and 6.5 on Terminal-Bench 2.1, larger than several of the version-to-version gains in the tables above.
The 1017 Terminal-Bench 4.0 jump crosses harnesses
At launch, DeepSeek ran Terminal-Bench 4.0 in DeepSeek Harness Minimal mode. For 1017, its change log says "Terminal-Bench 4.0 was tested with the Claude Code framework." The 1017 table reprints 31.2 for the September model, the same figure as at launch, and DeepSeek does not say whether it re-ran that model in Claude Code. So the 11.1-point gain compares two harnesses, and part of it may be the harness. DeepSWE moved the same way, from mini-SWE at launch to Mini-SWE-V2 for 1017.
Outside runs add more noise. Moonshot's Kimi K3.1 Pro model card includes 1017 in its comparison tables and notes that its internal evaluation of DeepSeek-V4.1-Flash-1017 on Terminal-Bench-Science 0.1 yields 9.3, below the 15.7 it lists for the original V4.1 Flash. That is one competitor's run on one benchmark, but it shows the 1017 gains are not uniform outside DeepSeek's chosen suite.
The practical rule: measure V4.1 in the harness you will ship. DeepSeek's model card includes an evaluation folder with step-by-step instructions to reproduce DeepSWE v1.1 with both its dsh-minimal agent and the official mini-swe-agent, which is a good place to start a comparison against your own scaffold.
DeepSeek V4.1 Thinking Mode Rules
On DeepSeek's API, V4.1 Flash runs in thinking mode by default, at high effort. Non-thinking mode is one parameter away. The controls depend on which API format you call:
| Control | OpenAI Chat Completions | Anthropic Messages | OpenAI Responses |
|---|---|---|---|
| Turn thinking off | {"thinking": {"type": "disabled"}} | {"thinking": {"type": "disabled"}} | {"reasoning": {"effort": "none"}} |
| Set effort | reasoning_effort: low | high | max | output_config.effort: low | high | max | reasoning.effort: none | low | high | max |
- Other effort names are remapped. DeepSeek maps
minimaltolow,mediumandxhightohigh, andultratomax. - Sampling knobs are mostly ignored. Thinking mode does not support
temperature,presence_penaltyorfrequency_penalty. Ondeepseek-flash,top_ponly applies in thinking mode, with an effective range of 0.95 to 1.0; lower values are treated as 0.95. In non-thinking mode it is fixed at 1.0. - Benchmarks used max. DeepSeek's published scores use maximum effort. If you leave the default at
high, expect lower numbers than the tables above. - FIM completion needs thinking off. DeepSeek's fill-in-the-middle completion (beta) works in non-thinking mode only.
DeepSeek's thinking-mode guide says that when a request carries the tools parameter, the reasoning_content of all previous turns should be passed back to the API, where it is concatenated into the context. A harness that strips reasoning from earlier assistant messages breaks this. Check your message conversion before blaming the model for an agent that stops early.
Open weights: a 1 to 100 effort dial
The released weights expose a finer control than the API. The model card describes a continuously controllable reasoning effort, an integer from 1 to 100 that trades inference cost for accuracy, and DeepSeek's benchmark runs use 100. vLLM's recipe says that with no effort and no thinking key set, thinking is on at effort 50. One difference catches people moving from the API to a self-hosted server: vLLM's recipe says minimal and medium are rejected, while DeepSeek's API silently maps them. A client that sends medium works against api.deepseek.com and errors against your own vLLM.
Run the DeepSeek V4.1 Open Weights Yourself
Both checkpoints are on Hugging Face under the standard MIT License, covering the code and the weights: deepseek-ai/DeepSeek-V4.1-Flash and deepseek-ai/DeepSeek-V4.1-Flash-1017. The 1017 weights are also on ModelScope. The license's only condition is keeping the copyright and permission notice; it has no use-based restrictions.
No Jinja chat template
The repository ships no Jinja-format chat template, so a stock tokenizer template will not format prompts correctly. DeepSeek gives two replacements. The encoding folder holds a self-contained Python reference, encoding.py, with test cases for multi-turn chat, tool calling, thinking mode, numeric reasoning effort, mid-conversation system messages and interleaved images. For production, DeepSeek released deepseek-recipe, Rust libraries with Python bindings that convert Messages, Chat Completions and Responses API requests into V4.1 prompts and parse model output back, including streaming, thinking, tool calls and images. Inference, tool execution and HTTP are left to you.
vLLM
The vLLM recipe requires vLLM 0.31.0 or later and defaults to the 1017 checkpoint; it labels the September checkpoint "FP8 (0909)" for anyone reproducing earlier results. It describes the released checkpoint as MXFP4 routed experts with everything else MXFP8 block-quantized, about 511 GB on disk. By the recipe's numbers that fits one GB200 NVL4 tray (768 GB) at TP4, or one 8-GPU H200 node (1,128 GB) with room for KV cache. Its hardware selector lists H100, H200, B200, B300, GB200, GB300 and AMD MI300X through MI355X. The V4.1-specific flags in its GB200 command (an excerpt, not a complete command):
--tokenizer-mode deepseek_v41
--tool-call-parser deepseek_v41
--enable-auto-tool-choice
--reasoning-parser deepseek_v41
--engram-config '{"cpu_offload":true,"use_thp":true}'
--speculative-config '{"method":"dspark", ...}'The Engram offload flag keeps the 196B memory tables in host RAM. The recipe adds that the DSpark drafter brings roughly 14B extra parameters to load. It also notes that its verified hardware results were run on the 0909 checkpoint and that the 1017 weights have not been separately re-run, and parts of the page disagree with each other (for example TP2 vs TP4 on Blackwell). Treat it as a starting point and check the full command on the page before you deploy.
SGLang
The SGLang cookbook states that V4.1 Flash support "has not shipped in an SGLang release yet, so a stock pip install sglang cannot serve it." NVIDIA GPUs (H200, B200, B300, GB300) use the preview image lmsysorg/sglang:dev-dsv41, and MI355X has its own ROCm image. Three details from the cookbook:
- Tool calls need the V4.1 detector.
--tool-call-parser autoresolves todeepseekv41. V4.1 uses spaced DSML tool tags that the stock DeepSeek-V4 detector does not parse. If raw DSML markup shows up incontent, the parser flag is missing. - Two recipes. Low-Latency turns on DSpark with
--speculative-algorithm DSPARK --speculative-dspark-block-size 5. High-Throughput turns speculation off, because at large batch sizes the fixed step cost stops paying for itself. - Output is not bitwise stable. The cookbook says output is not bitwise stable across batch composition today, and
--enable-deterministic-inferenceis refused on this backend. Plan evals around that.
NVIDIA Dynamo
NVIDIA's Dynamo recipe deploys V4.1 Flash on eight B200, GB200 or H200 GPUs, either aggregated as two TP4 workers or disaggregated as one TP4 prefill worker and one TP4 decode worker. Its SGLang targets are GB200 only; H200 and B200 run on vLLM. It says aggregated serving enables DSpark while disaggregated SGLang serving runs without speculative decoding; the SGLang cookbook says its DSpark recipes keep speculation in prefill/decode mode. The two docs disagree, so measure both. The Dynamo page also warns that with disaggregated SGLang, an HTTP 200 can still carry content: null and zero completion tokens when the KV transfer fails, so alert on empty completions as well as status codes.
Recommended settings
| Parameter | V4.1-Flash | V4.1-Flash-1017 |
|---|---|---|
| temperature | 1.0 | 1.0 |
| top_p | 0.95 or 1.0 | 1.0 |
| Context window | 1M tokens | 1M tokens |
| max_tokens | at least 256K | at least 256K |
The 256K figure is the model card's recommended max_tokens setting for your own deployment. It is a different number from DeepSeek's API cap of 384K output tokens. If you self-host and cap output much lower, long thinking runs will truncate.
DeepSeek V4.1 API: First-Party Pricing and Morph
DeepSeek serves V4.1 Flash as deepseek-flash at https://api.deepseek.com (OpenAI format) and https://api.deepseek.com/anthropic (Anthropic format). The API supports tool calls, JSON output, the OpenAI Responses API, chat prefix completion and FIM completion (both beta), with a limit of 2,500 concurrent requests per account. The retired names deepseek-v4-flash and deepseek-v4-flash-vision-exp are still accepted and served by 1017 at the Flash price.
Off-peak rates are half of peak. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday through Friday, excluding Chinese public holidays. Every other hour, including weekends, bills off-peak. Morph's list rate does not change by time of day.
| Provider | Input (cache miss) | Input (cache hit) | Output |
|---|---|---|---|
| DeepSeek API, off-peak | $0.15 | $0.003 | $0.60 |
| DeepSeek API, weekday peak | $0.30 | $0.006 | $1.20 |
| Morph (morph-dsv41flash), all hours | $0.12 | $0.008 | $0.80 |
Read it line by line. On uncached input Morph is below DeepSeek's rate at every hour. On output it is between DeepSeek's off-peak and peak rates. On cache hits it is above DeepSeek's rate at every hour. Which one is cheaper for you depends on your cache-hit rate and when your traffic runs. Many third-party hosts also serve V4.1 Flash; the DeepSeek V4.1 Flash page compares them and works through cache-hit economics.
Running V4.1 on Morph
- Model IDs.
morph-dsv41flashandmorph-dsv41flash-1017route to the same deployment at the same price. The oldermorph-dsv4flashID still works as an alias and now serves the new weights; use the V4.1 IDs in new code. Context is 1M tokens. - Endpoints. OpenAI-compatible at
https://api.morphllm.com/v1, Anthropic Messages athttps://api.morphllm.com. One key also covers Kimi K3.1 Pro (morph-kimik31) and GLM-5.3 (morph-glm53-744b). - Measured speed. Morph's public hourly charts at ultra.morphllm.com show V4.1 Flash at about 215 output tokens per second and about 0.6 s to first token (median of hourly medians, 24 hours ending November 9, 2026). Artificial Analysis lists V4.1 Flash (Max) at 231 tokens per second on its own method, so the two figures are not a head-to-head.
- Ultra plan. $200 a month for unlimited DeepSeek V4.1 Flash and Kimi K3.1 with no token meter, capped at 1,000 subscriptions. Each subscription gets 701,079 uncached input tokens and 76,559 output tokens per minute on V4.1 Flash. See Ultra.
- OpenRouter. Morph is also a provider for
deepseek/deepseek-v4.1-flashon OpenRouter.
Set up a coding agent in one command, then pick the V4.1 model:
curl -fsSL https://www.morphllm.com/install.sh | bash && morph installClaude Code, Codex and OpenAI SDK configs are on the DeepSeek V4.1 Flash page, and the launch details are in DeepSeek V4.1 Flash on the Morph API. Create a key on the API keys page, and compare every model on Morph models and pricing.
DeepSeek V4.1 Limitations
- No Pro model. V4.1 has one model size. For knowledge-heavy work the strongest DeepSeek option is still V4-Pro-0813 on the old architecture, which leads V4.1 Flash on GPQA Diamond, HLE and base-model SimpleQA-Verified.
- Per-benchmark scores are self-reported. DeepSeek ran all published V4.1 benchmark rows in its own setup, and it reports no SWE-bench Verified, SWE-bench Pro or LiveCodeBench score. The independent check is Artificial Analysis Intelligence Index v5, which scores 1017 (max) at 32, below Claude Haiku 5.5 (max) at 36.
- Harness sensitivity is large. The same model spans 65.5 to 74.2 on DeepSWE v1.1 depending on the scaffold. The headline numbers are the best scaffold.
- 1017 was tuned for named harnesses. DeepSeek optimized it for DeepSeek Harness, Tencent CodeBuddy and WorkBuddy. Gains in other tools may be smaller, and one outside run (Moonshot, Terminal-Bench-Science) showed a drop.
- Self-host tooling is young. No Jinja chat template, no SGLang release yet (preview image only), vLLM 0.31.0 or later, V4.1-specific parsers, and recipes that contradict each other in places.
- Non-deterministic on SGLang. Output is not bitwise stable across batch composition, and deterministic inference mode is refused.
- Thinking mode ignores temperature. Sampling control in thinking mode is limited to
top_pbetween 0.95 and 1.0. - First-party prices double at peak. Weekday peak hours (01:00 to 04:00 and 06:00 to 10:00 UTC) bill twice the off-peak rate on DeepSeek's API.
Frequently Asked Questions
What is DeepSeek V4.1?
DeepSeek V4.1 is DeepSeek's newest open-weight model generation. So far it contains one model, DeepSeek V4.1 Flash, released September 10, 2026, plus an October 17 update called V4.1 Flash 1017. It is a Causal Encoder-Decoder mixture-of-experts model with a 552B backbone and a separate 196B Engram conditional memory. It activates 8B parameters per token during prefill and 16B during decode, reads images and text, supports a 1M-token context, and is released under the MIT license on Hugging Face.
When was DeepSeek V4.1 released?
DeepSeek released V4.1 Flash on September 10, 2026. The Hugging Face repository deepseek-ai/DeepSeek-V4.1-Flash was created at 02:17 UTC that day, and the new API prices took effect at 04:00 UTC. DeepSeek shipped an update, DeepSeek-V4.1-Flash-1017, on October 17, 2026. The API model name deepseek-flash now serves the 1017 checkpoint at the same price.
Is there a DeepSeek V4.1 Pro?
No. As of November 9, 2026 DeepSeek has not released a V4.1 Pro. The V4.1 launch post said deepseek-v4-pro requests would route to V4.1 Flash from September 14 'until V4.1-Pro launches', but DeepSeek reversed that plan and kept serving V4 Pro. The deepseek-v4-pro API name still serves DeepSeek-V4-Pro-0813, and the deepseek-ai Hugging Face organization has no V4.1 Pro repository. Any V4.1 Pro specs, prices or benchmarks you see are guesses.
What changed from DeepSeek V4 to V4.1?
V4.1 Flash is a new architecture, not a retrain. It moves to a Causal Encoder-Decoder design with 8B active parameters for prefill and 16B for decode (V4-Flash used 13B, V4-Pro 49B), adds Compressed Sparse Attention 2, stores the main KV cache in FP4 at 890 bytes per token (about a quarter of V4-Flash), adds 196B of Engram conditional memory, and reads images natively instead of through a separate vision variant. DeepSeek also cut API prices at launch.
How many parameters does DeepSeek V4.1 have?
DeepSeek's headline figure is a 552B-parameter MoE backbone. The model card lists a separate 196B Engram conditional memory that is looked up sparsely by token. Active parameters differ by phase: 8B per token during prefill and 16B during decode. The Hugging Face safetensors widget shows a larger raw tensor count for the repository, which is not DeepSeek's stated model size.
What are DeepSeek V4.1's benchmark scores?
DeepSeek's own benchmark scores are self-reported at maximum reasoning effort. At launch V4.1 Flash posted 90.6 on Terminal-Bench 2.1, 74.2 on DeepSWE v1.1, 90.9 on GPQA Diamond and a 3471 Codeforces rating, ahead of V4-Pro-0813 (87.9 and 62.7 on the two agent benchmarks) but behind it on GPQA Diamond (92.4). The 1017 update raised DeepSWE v1.1 to 77.0 and Terminal-Bench 4.0 from 31.2 to 42.3. DeepSeek reports no SWE-bench Verified, SWE-bench Pro or LiveCodeBench score for V4.1. Independently, Artificial Analysis Intelligence Index v5 (published October 27, 2026) scores V4.1 Flash 1017 (max) at 32, level with GLM-5.3 (max) and below Claude Haiku 5.5 (max) at 36.
What is the difference between DeepSeek V4.1 Flash and V4.1 Flash 1017?
V4.1 Flash 1017 is what DeepSeek calls a minor update to V4.1 Flash, released October 17, 2026 with the same architecture. DeepSeek reports stronger benchmarks, faster task completion and shorter outputs, and says it used reinforcement learning with self-feedback to improve end-to-end project work. It replaced the September checkpoint on DeepSeek's web, app and API at the same price. Both sets of weights stay on Hugging Face under MIT.
Is DeepSeek V4.1 open source?
The weights and code are released under the standard MIT License for both deepseek-ai/DeepSeek-V4.1-Flash and deepseek-ai/DeepSeek-V4.1-Flash-1017. The only condition is keeping the copyright and permission notice; there are no use-based restrictions. The repository ships no Jinja chat template, so self-hosters format prompts with DeepSeek's encoding.py reference or its deepseek-recipe library.
Does DeepSeek V4.1 support images?
Yes. V4.1 Flash is natively multimodal: it takes image and text input and returns text. A DeepSeek-ViT vision encoder, trained from scratch, feeds visual embeddings that were processed jointly with text from the start of pre-training. On DeepSeek's API, vision works on deepseek-flash but not on deepseek-v4-pro. V4 Flash was a text model, and image input came only through the experimental V4-Flash-Vision-Exp.
How do I control thinking mode in DeepSeek V4.1?
Thinking is on by default at high effort. Send {"thinking": {"type": "disabled"}} to turn it off, and set reasoning_effort (OpenAI format) or output_config.effort (Anthropic format) to low, high or max. In the Responses API, reasoning.effort none disables thinking. DeepSeek maps minimal to low, medium and xhigh to high, and ultra to max. Thinking mode ignores temperature, presence_penalty and frequency_penalty. With tools in the request, pass reasoning_content from earlier turns back to the API.
Can I run DeepSeek V4.1 locally?
Yes, on datacenter GPUs. vLLM's recipe needs vLLM 0.31.0 or later and puts the checkpoint at about 511 GB on disk, enough to fit one GB200 NVL4 tray at TP4 or one 8-GPU H200 node. SGLang has not shipped V4.1 support in a release yet, so its cookbook uses the preview image lmsysorg/sglang:dev-dsv41. NVIDIA's Dynamo recipe uses eight B200, GB200 or H200 GPUs. Use the V4.1 tool-call parser (deepseek_v41 on vLLM, deepseekv41 on SGLang); without it, tool calls come back as raw DSML text.
How much does the DeepSeek V4.1 API cost?
DeepSeek bills deepseek-flash at $0.15 per million input tokens, $0.003 per million cache-hit tokens and $0.60 per million output tokens off-peak, and double that during peak hours (01:00 to 04:00 and 06:00 to 10:00 UTC, Monday through Friday, excluding Chinese public holidays). Morph serves it as morph-dsv41flash at $0.12 input, $0.008 cached input and $0.80 output per million tokens at all hours, or unlimited on the $200/month Ultra plan.
Related Articles
- DeepSeek V4.1 Flash: Benchmarks vs Peers, Pricing, and API Setup
- DeepSeek V4.1 Flash 1017: API and Pricing
- DeepSeek V4.1 Flash on the Morph API (launch post)
- DeepSeek V4: Specs, Pricing, Benchmarks, and How to Run It
- DeepSeek V4 Flash
- Kimi K3.1 Pro
- GLM-5.3 vs Kimi K3.1
- GLM-5.3
- Morph Ultra: unlimited Kimi K3.1 and DeepSeek V4.1 Flash
- All Morph models
The fastest endpoints are private deployments
Morph's top speeds come from dedicated deployments, not shared public endpoints: speculators trained on your traffic, caching tuned to your workload, and volume discounts over public per-token rates. Over 1 trillion tokens per day run this way.
Run DeepSeek V4.1 Flash on Morph
morph-dsv41flash costs $0.12 per million input tokens and $0.80 per million output tokens with a 1M context, or $200 a month on Ultra with no token meter. One key covers DeepSeek V4.1 Flash, Kimi K3.1 Pro and GLM-5.3.
Sources
- DeepSeek API Docs: DeepSeek-V4.1-Flash release post (September 10, 2026; 552B MoE, 8B/16B active, KV cache 1/4 HBM and 1/8 SSD, planned V4-Pro reroute)
- DeepSeek API Docs: DeepSeek-V4.1-Flash-1017 release post (October 17, 2026)
- DeepSeek API Docs: Change Log (V4.1 release, V4 Flash retirement, V4 Pro reroute cancelled, 1017 benchmarks and harness notes)
- DeepSeek API Docs: Models and Pricing (deepseek-flash and deepseek-v4-pro rates, peak hours, concurrency limits, features)
- DeepSeek API Docs: Thinking Mode (toggle, effort levels and mapping, sampling limits, reasoning_content rule)
- Hugging Face: deepseek-ai/DeepSeek-V4.1-Flash model card (architecture, base and instruct tables, per-scaffold results, prompt encoding)
- Hugging Face: deepseek-ai/DeepSeek-V4.1-Flash-1017 model card
- DeepSeek-V4.1 technical report (PDF)
- DeepSeek-V4.1-Flash-1017 LICENSE (MIT)
- Hugging Face API: deepseek-ai V4-family repositories (no V4.1-Pro repository)
- ModelScope: deepseek-ai/DeepSeek-V4.1-Flash-1017
- GitHub: deepseek-ai/deepseek-recipe (prompt encoding and parsing library)
- vLLM recipes: DeepSeek V4.1 Flash (vLLM 0.31.0+, checkpoint size, parsers, DSpark, Engram offload)
- SGLang cookbook: DeepSeek V4.1 (preview image, deepseekv41 tool-call detector, DSpark recipes, determinism caveat)
- NVIDIA Dynamo recipe: DeepSeek V4.1 Flash (aggregated and disaggregated TP4 layouts)
- Hugging Face: moonshotai/Kimi-K3.1-Pro model card (Terminal-Bench-Science note on DeepSeek-V4.1-Flash-1017)
- Artificial Analysis: Intelligence Index v5 (October 27, 2026; DeepSeek V4.1 Flash 1017 (max) at 32)
- Artificial Analysis: DeepSeek V4.1 Flash (Max) output speed, checked November 9, 2026
- OpenRouter: deepseek/deepseek-v4.1-flash
- OpenRouter: deepseek/deepseek-v4.1-flash-1017
- Morph public hourly speed charts (V4.1 Flash, 24 hours ending November 9, 2026)