TL;DR: today, October 17, 2026, DeepSeek shipped V4.1-Flash-1017 — a minor-version update to September’s V4.1-Flash. Minor in name only: +11 points on Terminal-Bench 4.0, top of its own table on DeepSWE, Automation-Bench, and Apex Bench, with faster task completion and shorter outputs. Weights are open under MIT, and in the API this is now simply deepseek-flash: 1M context, up to 384K output tokens, and $0.15 per million input tokens off-peak.
The headline numbers
From the model card (DeepSeek’s own measurements; the harness is noted where it matters):
| Benchmark | 1017 | V4.1-Flash (Sept.) | Kimi K3 | GLM-5.3 | GPT-5.6 Sol | Opus 5 |
|---|---|---|---|---|---|---|
| Terminal-Bench 4.0 (Claude Code) | 42.3 | 31.2 | 12.6 | 37.9 | 39.9 | 51.8 |
| DeepSWE v1.1 (mini-swe-v2) | 77.0 | 74.2 | 67.5 | 66.9 | 73.0 | 74.0 |
| ProgramBench | 29.1 | 20.3 | 17.5 | 19.0 | 23.0 | 37.0 |
| NL2Repo-Bench | 68.2 | 65.4 | 58.0 | 58.0 | 56.8 | 75.3 |
| Automation-Bench v1.0.6 | 60.5 | 54.8 | 46.7 | 48.8 | 45.8 | 50.3 |
| Agents’ Last Exam | 35.4 | 31.8 | 27.6 | 28.5 | 26.7 | 28.6 |
| Apex Bench v1.1 | 72.1 | 64.6 | 47.8 | 56.6 | 54.3 | 65.8 |
| HLE w/o tools | 42.6 | 36.8 | 43.5 | 42.0 | 44.5 | 56.3 |
Three takeaways. First, this is an agentic update — the gains concentrate on harness benchmarks (terminal, SWE tasks, automation), not abstract knowledge. Second, the jump in five weeks between minor versions is huge: +11 points on Terminal-Bench. Third, Opus 5 still leads Terminal-Bench, ProgramBench, and NL2Repo — “cheapest” does not mean “best everywhere”.
A separate line for multimodality: with tools, the model scores 92.5 on BabyVision and 83.0 on Chartography. The Flash API now supports vision — something even the larger V4-Pro lacks.
Inside: reading config.json
The model card is terse, but the repository config is revealing. A caveat: some fields are not yet documented, so interpretation is ours.
- MoE: 384 routed experts + 1 shared, 6 active per token; 40 layers, hidden size 5120.
- Quantization: FP8 weights (32×32 blocks, ue8m0 scale), FP4 experts. The model is built for cheap inference out of the box.
- 1M context: YaRN RoPE scaling ×16 from a native 65,536 to 1,048,576 positions.
- KV-cache compression:
compress_ratios = 2on nearly all layers — the KV cache is half the size. The line’s tech report is literally titled “Pushing the Limits of KV Cache Compression”. - Sparse attention: a dedicated indexer (32 heads) selects the top 512 tokens from history — the DeepSeek Sparse Attention lineage, making long context cheap.
- Engram layers: two layers holding ~384M n-gram embeddings each (up to 4-grams). It looks like weight-resident memory of stable phrase patterns — interesting, but it is training-time memory, not the user’s.
- Fast decoding: 3 multi-token-prediction layers plus a separate
dsparkmodule (5-token blocks on layers 37–39), apparently block-parallel decoding. That is where the release notes’ “faster task completion” comes from.
One practical note for self-hosting: there is no Jinja chat template in this release. DeepSeek provides a reference encoding.py and a production toolkit, deepseek-recipe (Rust with Python bindings), which converts Messages/Chat Completions/Responses API payloads into their format. Recommended sampling: temperature 1.0, top_p 1.0, max_tokens ≥ 256K.
What an agent on Flash-1017 costs
Official API (deepseek-flash now resolves to 1017; legacy deepseek-v4-flash aliases are served by it), per 1M tokens:
| Off-peak | Peak* | |
|---|---|---|
| Input, cache hit | $0.003 | $0.006 |
| Input, cache miss | $0.15 | $0.30 |
| Output | $0.60 | $1.20 |
* Peak: 01:00–04:00 and 06:00–10:00 UTC on weekdays; everything else is half price. Concurrency limit on Flash: 2,500 (V4-Pro: 500).
Let’s price a typical agent session: 30 iterations, ~40K input tokens per step (80% cache hits — the prefix stays stable), ~3K output. Uncached input: 240K × $0.15 = $0.036; cached input: 960K × $0.003 = $0.003; output: 90K × $0.60 = $0.054. Total ≈ $0.09 per task off-peak. The same volume on V4-Pro would cost ≈ $0.32, and Opus-class models are an order of magnitude more. The quality-vs-cost-per-task chart in the release notes shows exactly this: 1017 moves the Pareto frontier rather than just the table cells.
Also in the release: DeepSeek opened its Search & Fetch APIs ($0.75 per 1,000 calls, powered by its in-house search engine); calls via server-side tools in DeepSeek Harness, Claude Code, and Codex stay free until October 31, 16:00 UTC.
The fine print
- All quality numbers come from DeepSeek’s own card. There are no independent runs at publication time; verify on your own workloads.
- Opus 5 leads comfortably on Terminal-Bench (51.8 vs 42.3), ProgramBench, and NL2Repo — Anthropic’s flagship is still ahead on long, hard tasks.
- Self-hosting is non-trivial: FP8/FP4 quantization, no Jinja template, a custom prompt format. This is a model for the API or serious inference infrastructure, not for “I’ll run it on my desktop”.
- The 1M context in the API is not a free gift: a million uncached input tokens costs $0.15 on every request. Cache discipline is mandatory.
Why this is close to home
Look at what the pricing does: a cache hit is 50× cheaper than a miss. The API economy literally pays you to keep the conversation prefix stable. But the KV cache is single-session memory: the process ends, the cache evaporates, and tomorrow the agent starts from zero (or from an expensive cache miss on the full context).
That is the boundary between “memory inside the model” and agent memory. Engram tables in the weights hold training-time knowledge; the KV cache holds the current run. Neither remembers what you asked last week, which decisions were made, or why. That layer — persistent, versioned, exposed over MCP — is our job: MaxGraph keeps the knowledge graph between sessions, and cheap long-context models like Flash-1017 make the combination even better: the model holds the working context cheaply, MaxGraph returns the relevant past cheaply.
FAQ
How does 1017 differ from September’s V4.1-Flash? Same line, noticeably better agentic benchmarks (Terminal-Bench +11 pts, Apex +7.5 pts), faster and more concise. In DeepSeek’s words — “a Pareto improvement in performance and cost”.
Do I need to change my integration?
On the API — no: deepseek-flash already points to 1017, and legacy aliases keep working. For self-hosting — yes: use deepseek-recipe; there is no ready-made Jinja template.
Is this an Opus 5 competitor? On price — long since, and the gap is widening. On quality — selectively: 1017 leads on SWE and automation benchmarks, while Opus 5 remains stronger on terminal and repo-level tasks.
Should I move my agents from Kimi K3 / GLM-5.3? According to DeepSeek’s table — yes, 1017 beats both across every listed benchmark. But these are vendor numbers: run your own pipeline first.
What’s next
- Token cost benchmark: real bills from real agents
- How to save tokens in AI agents
- Why AI agents forget between sessions
MaxGraph — memory for AI agents: local, private, with a living knowledge graph. 7 days free.
Give your agent memory
7-day trial, no card. Installation is one prompt — your agent does the rest.