DeepSeek V4.1 versus MiniMax M4
Compare DeepSeek V4.1 Flash 1017 and MiniMax M4 on API costs, coding benchmarks, cache economics, and multimodal workflows.
By DeepSeek V4 Hub
On this page
Start with DeepSeek V4.1 Flash 1017 for frequent, testable coding work. Give MiniMax M4 a trial on jobs where a failed attempt costs more than the tokens, such as a difficult multi-file change or a debugging session that starts with a screen recording. A useful comparison counts patches you can merge, the time they take, and what you pay to get there.
Here, DeepSeek V4.1 means V4.1 Flash 1017, the version the official deepseek-flash API ID currently serves. DeepSeek's pricing page separately lists deepseek-v4-pro as V4 Pro 0813. MiniMax identifies its December 3 release as MiniMax-M4. The examples below use each vendor's own API prices. See our DeepSeek V4.1 Flash developer guide for setup.
What the same coding workload costs
One turn in a coding agent can carry the system prompt, tool definitions, earlier messages, and repeated chunks of the repository. Those tokens often recur while the agent edits files and runs tests. How much of that input is billed as a cache hit, and how much output the model generates before it finishes, can matter more than the headline input rate.
Scroll horizontally to see all columns.
| Model and billing window | Uncached input | Cache read | Output |
|---|---|---|---|
| DeepSeek Flash 1017 · off-peak | $0.15 | $0.003 | $0.60 |
| DeepSeek Flash 1017 · peak | $0.30 | $0.006 | $1.20 |
| MiniMax M4 | $0.80 | $0.05 | $3.10 |
Official API rates in USD per million tokens, December 4, 2026.
API cost for the same token budget
1M total input tokens, 80% billed as cache reads, and 100K output tokens.
- Uncached input
- Cached input
- Output
With a cold cache, that example is $0.21 off-peak or $0.42 peak on Flash, and $1.11 on M4. At an 80% billed cache-hit share, it falls to $0.0924, $0.1848, and $0.51, respectively. M4's output charge alone is $0.31 in this scenario. A model that spends longer reasoning can erase part of its advantage even when the user-facing answer is short.
DeepSeek documents automatic reuse of matching, persisted prefixes. Keep stable instructions and tool definitions early, put task-specific content later when your client allows it, and verify the result using billed cache counters. A reusable prompt and a billed cache hit are two different measurements. DeepSeek's peak windows are 01:00-04:00 and 06:00-10:00 UTC on weekdays, excluding Chinese public holidays.
What the published benchmarks show
DeepSeek reports clear gains between the original Flash release and the 1017 update. Its largest change among the three tasks shown below is 11.1 points on Terminal-Bench 4.0 with Claude Code. DeepSWE v1.1 improved by 2.8 points under Mini-SWE-V2. These tests give developers reasons to try the new Flash build on terminal work and repository fixes.
How DeepSeek Flash changed in 1017
- Original V4.1 Flash
- V4.1 Flash 1017
Terminal-Bench 4.0
DeepSWE v1.1
ProgramBench
MiniMax's M4 report positions its model for long-running coding and agent work. A defensible M4-versus-Flash ranking would need both shipping API versions on the same tasks, benchmark release, tool harness, effort budget, and stopping rules. Repeating a handful of tasks from your own backlog can answer a purchasing question sooner than watching a leaderboard. Capture wall-clock time alongside tokens per second. Tool execution, verification, and time spent waiting for the next reasoning turn all affect delivery time.
How the model designs affect your workflow
Scroll horizontally to see all columns.
| Decision point | DeepSeek V4.1 Flash 1017 | MiniMax M4 |
|---|---|---|
| Architecture | 552B backbone parameters for the V4.1 Flash design, with a mixture of experts and KV-cache compression. | 2.74T total parameters and 66B active per token, with sparse attention and SSD-backed KV-cache offload in its reference system. |
| Context and inputs | 1M context. The official API documents text and image inputs. | 1M context. The Anthropic-compatible API documents text, images, and video. |
| Reasoning | Thinking and non-thinking modes, with thinking enabled by default. | Thinking always enabled. Five effort levels from low to max, with max as the default. |
| Downloadable weights | The 1017 model card offers weights under MIT. | MiniMax describes M4 as open-weight. At the time of review, its repository said the download would follow. |
Architecture figures use each team's published terminology.
The parameter counts explain different engineering choices. They do not translate directly into billed tokens, time to a usable answer, or hosting cost. Similarly, a 1M-token window is a capacity limit. For a multi-file fix, measure whether the model traces the relevant dependency and runs the right test before giving it an entire repository.
M4's documented video input is useful when the sequence matters, such as reproducing a UI bug from a recording. Flash can work from screenshots and logs. To compare them on one case, give both the same expected behavior and choose a fixed set of frames for the common-input run. Then try M4 with the video as a separate run to measure the value of that input path. When switching clients or providers, confirm tool-message and thinking-block handling so a lost tool result does not look like a reasoning failure.
When it pays to try Flash first
Suppose a job needs the default token bundle in the chart. You try Flash once, run a fast acceptance test, and send failures to M4. The expected token charge is Flash cost + (1 - Flash acceptance rate) x M4 cost. With a $0.51 M4 attempt, Flash-first costs less than going straight to M4 when the Flash acceptance rate exceeds 18.1% off-peak or 36.2% at peak.
Scroll horizontally to see all columns.
| Routing policy | Expected cost |
|---|---|
| Always use M4 | $0.5100 |
| Flash off-peak, then M4 if needed | $0.2454 |
| Flash peak, then M4 if needed | $0.3378 |
Illustrative cost per submitted job at a 70% Flash acceptance rate.
The threshold is a cost calculation, with a fixed token bundle and one fallback at most. It assumes the fallback costs the same on failed Flash jobs as it does when used directly. In practice, failed jobs may be harder, and paying for another attempt adds time. Track acceptance and p95 completion time together if latency matters. An agent that produces a patch that passes tests faster may be worth higher token rates even when its first invoice line is larger.
Run the comparison on your own backlog
- Use three task types. Start with a repeatable code change, a multi-file bug with a regression test, and a UI issue with fixed visual evidence. Specify what a reviewer will accept before either run starts.
- Hold the environment constant. Use the same repository commit, harness and version, available tools, maximum wall time, and stop conditions. Record each model's effort setting and run cold and warm cases separately.
- Count the full job. Log uncached, cached, and billed output tokens, tool charges, retries, elapsed time, and review minutes. Divide total cost by accepted jobs, including the spend on jobs that failed.
For a large queue of bounded tasks, start with Flash and route by test outcomes. For hard tasks where a senior reviewer is the bottleneck, try M4 on a representative subset and compare the reduction in review and rework. The cheaper policy is the one that gets more accepted work for the combined API and engineering budget.
Frequently asked
Which DeepSeek version is in this comparison?
The official deepseek-flash API route serving DeepSeek V4.1 Flash 1017.
Which model has lower API prices?
DeepSeek Flash 1017 has lower published rates in all three token categories at both peak and off-peak. Cost per finished job also includes reasoning length, retries, tool use, and review.
Can both models read a video directly?
MiniMax's Anthropic-compatible M4 documentation lists video input. DeepSeek's Flash vision guide documents image input, so selected frames and logs can serve as a shared test input.
Can I download the model weights?
DeepSeek provides the Flash 1017 weights under MIT. As of this article's check, MiniMax's official M4 repository still lists public weights as forthcoming.