Back to Blog

MiniMax M4 vs DeepSeek: Which AI Model Costs Less?

Tutorials and Guides1911
MiniMax M4 vs DeepSeek: Which AI Model Costs Less?

MiniMax M4 and DeepSeek-V4.1-Flash are routinely placed side by side because both advertise a 1M-token context window and both speak OpenAI-compatible HTTP. That is where the similarity ends, and it is not where the decision gets made.

M4 is the largest model MiniMax has built: 2.74T total parameters, 66B activated per token, positioned by the vendor as an open-weight flagship that extends the intelligence frontier under compute constraints. It went live on the MiniMax platform on December 3, 2026, with the research blog following on December 4.

DeepSeek-V4.1-Flash is the smallest member of DeepSeek's new architecture family, released September 10, 2026, with native multimodal visual understanding. The October 17 revision, DeepSeek-V4.1-Flash-1017, kept the same API contract and the same prices under the deepseek-flash model name. The older IDs deepseek-v4-flash and deepseek-v4-flash-vision-exp still resolve, served by the 1017 build and billed at Flash rates.

One model is a flagship sized for long-horizon, high-value work. The other is a high-throughput workhorse with a concurrency ceiling of 2,500 and a time-of-day discount. Treating them as alternatives on a single leaderboard is the wrong framing. The useful question is which unit of work each one should be paid for.

The published specification, side by side

DimensionMiniMax M4DeepSeek-V4.1-Flash
API model nameMiniMax-M4deepseek-flash (build V4.1-Flash-1017)
Parameter scale2.74T total / 66B activeNot stated on model page
Context length1,000,000 tokens1M
Max outputNot stated384K
Thinking modeOn by default; effort at low / medium / high / xhigh / max, defaults to maxThinking (default) and non-thinking
MultimodalityNative multimodalImage understanding supported
Tool useTool calls with interleaved thinkingTool calls, JSON output
Concurrency limitNot stated2,500
Weight releaseVendor says after safety evaluation, expected within weeksNot stated

Read the empty cells as information. MiniMax does not publish a maximum output length for M4, and does not publish a concurrency limit. DeepSeek does not publish parameter scale. Those three omissions happen to sit exactly where procurement risk concentrates: output ceiling determines whether a long generation gets truncated, concurrency determines whether a burst collapses into rate-limit errors, and parameter scale determines what a self-hosted deployment would cost. None of them can be inferred from the other column.

The benchmark suites do not overlap either. MiniMax's blog cites Posttrain Bench v1.2, where M4 scores 38.2, alongside engineering demos. DeepSeek's changelog cites DeepSWE v1.1 at 77.0, NL2Repo-Bench at 68.2 and Terminal-Bench 4.0 at 42.3. There is no shared harness, no shared test set, and therefore no legitimate way to convert these into a single ranking. Anyone who does so is manufacturing a comparison the vendors did not provide.

Where the two models genuinely diverge

Context length is the headline both share, and it is the least useful differentiator. The operative distinctions are three.

Output ceiling. DeepSeek publishes 384K maximum output. MiniMax publishes nothing. For code generation, long-form drafting or multi-file refactoring, an undocumented output ceiling is a real operational unknown: it decides whether the platform silently truncates, returns a finish reason, or fails the request.

Thinking control. M4 has thinking permanently on, with five effort levels, defaulting to max when the field is omitted. That default is expensive in a specific and predictable way — every call you do not explicitly configure consumes output tokens at the deepest reasoning setting. DeepSeek-V4.1-Flash defaults to thinking as well, but exposes a non-thinking mode that must be switched on through the vendor's thinking-mode documentation.

Multimodal scope. MiniMax describes M4 as natively multimodal, with training over text, images and video from pretraining onward, though output remains text, thinking blocks and tool calls. DeepSeek's spec table states image understanding. The two labels are not equivalent, and M4's specific accepted input types should be checked against MiniMax's documentation rather than against the marketing term.

There is also an architecture claim worth recording without endorsing. MiniMax states that all 68 attention layers in M4 use its in-house sparse attention, MSA2, that per-token KV cache demand fell 4x against the previous generation, and that prefill and decode throughput rose 4.48x and 8x respectively. These are vendor self-reported figures with no third-party replication published. They matter for the cost argument below, because throughput is what allows a heavier model to be sold at a per-token price that is not proportional to its size.

List price, and what it turns into at the meter

Per the official price pages, in CNY per million tokens:

Billing itemMiniMax M4DeepSeek-V4.1-Flash peakDeepSeek-V4.1-Flash idle
Input (cache miss)5.0021
Input (cache hit / read)0.300.040.02
Output20.0084
Time-based pricingNot statedBeijing time, workdays 09:00–12:00 and 14:00–18:00All other hours, including weekends and public holidays

On sticker price, M4 input runs about 2.5x DeepSeek's peak rate and 5x its idle rate; output runs 2.5x and 5x on the same ladder. That ratio is the number most comparisons stop at, and it is the least informative one.

Take a fixed monthly workload: 100M input tokens, half of which hit cache, plus 20M output tokens, all at list price with no subscription or promotional discount.

Two observations follow, and only one of them is about the totals.

The first is that the cache-read line diverges far more than the headline ratio suggests: 0.30 CNY against 0.04 CNY at peak is a 7.5x gap, larger than the 2.5x gap on fresh input. For agent workloads that carry long system prompts or a stable document corpus, cache hit rate is high by construction, so the aggregate cost gap converges toward that 7.5x cache line rather than toward the input or output lines. Teams that reason from input price alone will misestimate this class of workload in both directions.

The second is that the discount schedule is a scheduling problem, not a pricing feature. DeepSeek's idle window covers everything outside two weekday blocks. Offline batch processing — classification backfills, corpus summarization, nightly enrichment — can be moved into it and billed at half. Interactive traffic cannot. A workload's realized price is therefore a function of when it runs, which puts it partly under the buyer's control and makes "which model is cheaper" a question without a fixed answer.

The denominator nobody publishes

Neither price sheet includes the variable that actually determines cost per unit of work: output tokens per completed task.

M4 defaults to effort max. On an identical prompt, a max-effort response can emit substantially more thinking tokens than a low-effort response. If a task needs only shallow reasoning, the saving from setting reasoning_effort to low is not a marginal discount — it is a change in the shape of the bill. The same mechanism applies on the DeepSeek side in binary form: thinking versus non-thinking.

This is why the practical recommendation is to run a real task batch on both models before comparing anything, and to compare cost per accepted task rather than cost per million tokens. Two models can carry identical list prices and differ by 3x in cost per finished deliverable, purely because one of them needs a second pass.

A concrete piece of evidence for how far apart the workload profiles are: MiniMax's own engineering demonstration had M4 write roughly 120,000 lines of Rust across more than 4,000 tool calls in a 24-hour window, building a desktop browser from scratch with no existing engine and scoring 100/100 on Acid3. That is a single task consuming an enormous output budget over many hours. It is the profile where a heavier model with better long-horizon coherence earns its price. It is also the profile that a 2,500-concurrency, half-price-at-night workhorse is not designed for.

Integration: three parameters, two dialects

Both models ship OpenAI-compatible and Messages-format interfaces, so a project already on an OpenAI SDK changes three things: base_url, api_key and model.

For M4, the OpenAI-format base URL is [https://api.minimax.cn/v1](https://api.minimax.cn/v1) with model set to MiniMax-M4, and thinking depth is controlled by reasoning_effort. In the Messages format, the equivalent field is output_config.effort, and thinking content returns as a thinking block; under the OpenAI format it returns in the reasoning_content field. MiniMax's documentation leads with the Messages-format path.

For DeepSeek-V4.1-Flash, the base URL is api.deepseek.com with model set to deepseek-flash. Switching between thinking and non-thinking follows the vendor's thinking-mode documentation. DeepSeek also supports the Responses API and can enable server-side web search and file input across Messages, Responses and Chat Completions — a capability worth noting for retrieval-augmented pipelines, since it removes one hop from the architecture.

One production trap belongs here rather than in a footnote. On M4, max_tokens counts thinking tokens. Set it too low and the response contains reasoning with no answer body. This failure mode looks like an empty completion and gets misdiagnosed as a provider outage.

Where a gateway earns its place

Teams running both models rarely want two SDKs, two key-management paths and two billing relationships. Routing both through a single OpenAI-compatible endpoint — 4sapi is one such gateway — keeps the application code on one base_url and turns model selection into a model parameter, which is also the cleanest place to attach per-task cost attribution and rate limiting.

The governance detail matters more than the convenience. When several models sit behind one key, the model ID, context window and price should be read from the gateway's current listing rather than from vendor pages, because aggregator catalogs lag vendor releases by design. As of December 4, 2026, a catalog of this kind would typically carry DeepSeek-V4.1-Flash and DeepSeek-V4.1-Flash-1017 at metered rates matching DeepSeek's own schedule, in the 0.001–0.002 CNY per 1K non-cached input and 0.004–0.008 CNY per 1K output range, while the MiniMax entries may still list M3.1-Flash and M3 with M4 not yet indexed. Verify before you build a price model on top of it.

Five workload shapes and what each implies

The following judgments rest on published capability statements and price sheets. They are not measured rankings.

Long-horizon coding and full project construction. Multi-thousand-tool-call tasks, cross-file refactoring, UE5 or Blender and CAD asset pipelines. High value per task, high turn count. Test M4 first, and pair it with an explicit reasoning_effort setting rather than the default.

Batch text processing and customer-facing dialogue. DeepSeek-V4.1-Flash, with input at 1–2 CNY and output at 4–8 CNY and a 2,500 concurrency ceiling. Schedule offline batches after 18:00 on weekdays or across the weekend to bill at idle rates.

Completion-style developer tooling. Fill-in-the-middle completion and conversation prefix continuation are offered by DeepSeek-V4.1-Flash in non-thinking mode as beta capabilities. MiniMax does not state whether M4 supports FIM. For IDE plugins, that gap is close to disqualifying.

Image understanding. DeepSeek's spec table states image understanding for V4.1-Flash. MiniMax describes M4 as natively multimodal; confirm the accepted input types in documentation before designing around them.

Private deployment. M4's weights are not out. MiniMax says internal and third-party safety evaluation must finish first, with release hoped for within weeks; the public release also weakened some cybersecurity capabilities, with a separate Cyber variant reserved for compliant security research organizations. Teams needing on-premises inference should wait for the weights and the license, and evaluate then.

The combination that most teams actually want

The two models compose better than they compete. In one OpenAI-compatible codebase, switch the model parameter by task type: send planning, ambiguous diagnosis and long-horizon repair to M4, and send summarization, classification, formatting and other high-volume steps to V4.1-Flash. Attach reasoning_effort to the first path and non-thinking mode to the second, and the blended cost per completed task comes in below either model used alone.

That is the decision. Not which price sheet is lower, but which sheet each class of work should be billed against — and whether the output tokens you are paying for actually produced an accepted result.

Tags:MiniMax M4DeepSeek V4.1 FlashMiniMax AIDeepSeek AILLM ComparisonAPI PricingAI Agent

Recommended reading

Explore more frontier insights and industry know-how.