MiniMax M4 vs M3: Should You Upgrade, and at Which Effort Level?

On the same 10 coding tasks, MiniMax M4 at low effort passed as many as M3 and cost 25% less per task. Left at its default max, it cost 3.1 times as much.

AIHubMix8 min read
MiniMax M4 vs M3: Should You Upgrade, and at Which Effort Level?

Switch from M3 to M4 if you set reasoning_effort to low: on the same 10 coding tasks, M4 at low passed as many tasks as M3 and cost 25% less per task, even though its list price is about 2.6 times M3's. Leave M4 on its default max and the same tasks cost 3.1 times as much as at low with no clear gain in passes. For high-volume, well-specified coding, M3.1-Flash at low passed 19 of 20 at about a tenth of what M4 at low cost per task; stay on M3 only if your code depends on switching thinking off or on MiniMax's Priority tier.

These results come from one small set of single-file Python tasks that AIHubMix ran on December 3, 2026. They don't cover the long, multi-file agent work MiniMax built M4 for, and no third-party benchmarks of M4 exist yet.

Which model fits your task?

Your situation Pick Why, from this test
Coding on M3 today M4 at low Same passes, 25% cheaper per task
High-volume, clear specs M3.1-Flash at low 19/20 passes, $0.45 per 1,000 tasks
Hard or open-ended work M4 at high or max Untested here; MiniMax's suggestion
Code turns thinking off Stay on M3 M4 can't switch thinking off
Effort left unset Set it Unset means max: 3.1x low's cost

The third row is not a test result. MiniMax's model pairing guide, written for its own MiniMax Code app, assigns M4 at high or max to design, hard debugging and pre-commit review and calls M3.1-Flash "your everyday workhorse". This test had no task hard enough to check that split.

What did the same 10 coding tasks show?

Every setting got the same prompt and the same 10 task descriptions, and each task ran twice. The tasks were self-contained Python problems with hidden tests: merging intervals, parsing durations, Roman numerals, a topological sort, an arithmetic parser without eval, a TTL cache, a minimal diff, fixing a buggy function from its docstring, CSV line splitting and SemVer comparison.

Setting Passed Output tokens Median time Cost per 1,000 tasks
M4, low 18/20 1,456 10.9 s $4.62
M4, max (default) 19/20 4,600 27.4 s $14.37
M3 18/20 5,045 30.7 s $6.13
M3.1-Flash, low 19/20 673 7.2 s $0.45
M3.1-Flash, max (default) 17/20 3,529 20.9 s $2.16

Output tokens are the mean per call and include thinking. Cost uses MiniMax's official prices (below) and the cached input each call reported.

On quality, the five settings landed between 17 and 19 passes out of 20. With two runs per task, a gap of one or two passes is within run-to-run noise, so this set doesn't rank the models on correctness. Five of the ten tasks were solved in every run by every setting. The failures were scattered: the arithmetic parser tripped up M3 once, M3.1-Flash at low once and M3.1-Flash at max twice; M4 at low missed the CSV and SemVer tasks once each; M4 at max and M3 each missed the Roman numeral task once; M3.1-Flash at max missed the diff task once.

The settings differ far more on cost, from $0.45 to $14.37 per 1,000 tasks:

Cost per 1,000 coding tasks at MiniMax list prices for five settings: M3.1-Flash low $0.45 (19/20 passed), M3.1-Flash max $2.16 (17/20), M4 low $4.62 (18/20), M3 $6.13 (18/20), M4 max default $14.37 (19/20).

M4 at low beat M3 on cost because M3 wrote 3.5 times as many output tokens per task (5,045 against 1,456), and output was 89% or more of every setting's bill here. M3 has no effort setting to turn down. M4 at max wrote about as much as M3 and pays M4's higher output price on it, which is why it costs the most.

How the test was run

  • Date and time: December 3, 2026, 15:18 to 15:30 UTC.
  • Endpoint: AIHubMix Chat Completions, one turn per task.
  • Models as sent and as returned: minimax-m4 (MiniMax-M4), minimax-m3 (MiniMax-M3), minimax-m3.1-flash (MiniMax-M3.1-Flash).
  • Settings: reasoning_effort low or max for M4 and M3.1-Flash; no effort field for M3, which ignores it. max_completion_tokens 32,000; no call hit it.
  • Sample: 10 tasks, 2 runs each, 20 calls per setting, 100 calls.
  • Pass criterion: the returned code plus the hidden tests run without error within 10 seconds, in a sandbox with no network.

What does one task cost on each model?

Model Input Output Cache read
MiniMax-M4 $0.80 $3.10 $0.05
MiniMax-M3, up to 512K input $0.30 $1.20 $0.06
MiniMax-M3, over 512K input $0.60 $2.40 $0.12
MiniMax-M3.1-Flash $0.15 $0.60 $0.015

MiniMax list prices in USD per 1M tokens, from MiniMax's pricing page on December 3, 2026 at 14:32 UTC. M3 is listed as a legacy model with a permanent 50% discount already applied; M4 has one price row, with no long-context tier.

Per token, M4 costs 2.67 times M3 for input and 2.58 times for output. Per task in this test, M4 at low cost $0.0046 against M3's $0.0061, and M4 at max $0.0144. The price per token says little until you know how many tokens a model spends, and that depends mostly on the effort level.

For agent sessions that resend a long context on every step, cached input matters more than it did in these short tasks. M4's cache read price ($0.05) is lower than M3's ($0.06). As an estimate, not a measurement: a 40-step session resending 120K tokens of context per step, with 90% of input cached and 3K output tokens per step on both models, costs about $0.97 on M4 and $0.55 on M3. That assumes equal output, which this test didn't show: at low, M4 wrote fewer tokens than M3; at max, about as many.

When should you stay on M3 or use M3.1-Flash?

Stay on M3 when your code turns thinking off. MiniMax's API reference says M3 skips thinking and answers directly when sent thinking: {"type": "disabled"} on Chat Completions; M4 always thinks, and an AIHubMix API check on December 3 got a 400 for that request. Stay on M3 also if you need MiniMax's Priority tier, which its pricing page lists for M3 only. M3 has no announced retirement date.

Use M3.1-Flash at low for routine, well-specified coding. In this test it passed 19 of 20 at $0.45 per 1,000 tasks and answered fastest (7.2 s median). Raising Flash to max did not help here: it passed 17 of 20, and its two arithmetic-parser failures came after 13,661 and 18,866 output tokens.

Use M4 when a task is hard enough that M3.1-Flash keeps failing. For that kind of work MiniMax suggests high or max; for anything else, low cost a third of max in this test. This set had no task that separated the models, so the case for M4 on hard, long-horizon work rests on MiniMax's own claims until someone tests it.

What changes in your code when you switch?

M3 M4
Thinking off Allowed Rejected or ignored
Effort levels None low, medium, high, xhigh, max
Default effort None max
Context window 1M 1M
Sampling Fixed (temperature 1) Fixed (temperature 1)

Three changes need code edits. Remove any setting that turns thinking off. Set an effort level on every call, since leaving it out means max. Raise output limits, because thinking counts toward them: in AIHubMix's API check, a 30-token limit returned an empty reply. The model ID on AIHubMix is minimax-m4 (model page), and Chat Completions, Anthropic Messages and the Responses API all answered for it. The migration post linked below has the full list, the raw errors and a verification test.

A first call through the OpenAI SDK, with a key from the AIHubMix quick start:

import os
from openai import OpenAI

client = OpenAI(base_url="https://aihubmix.com/v1", api_key=os.environ["AIHUBMIX_API_KEY"])
resp = client.chat.completions.create(
    model="minimax-m4",
    reasoning_effort="low",
    max_completion_tokens=16000,
    messages=[{"role": "user", "content": "Write a Python function that merges overlapping intervals."}],
)
print(resp.choices[0].message.content)
print(resp.usage.completion_tokens_details.reasoning_tokens)

Expect a code answer in content and a reasoning-token count in usage. In this test, M4 at low averaged 1,091 reasoning tokens per task.

What isn't known yet?

As of December 3, 2026, MiniMax has published no benchmarks, launch post or model card for M4, and BenchLM's M4 page showed no benchmark coverage. MiniMax's text generation guide describes M4 as a 2.74T-parameter model with 66B active parameters and says its weights will follow. M4's maximum output length isn't published.

This test leaves open how M4 does on multi-file changes, long agent runs with many tool calls, and debugging inside large codebases. It also used two runs per task, so its token and cost figures are averages for this set; one M4 max run of the diff task used 9,801 output tokens and the other 25,854.

FAQ

Is MiniMax M4 better than M3 for coding?
On this set of 10 single-file tasks, no clear difference in passes: M4 at low and M3 both passed 18 of 20, and M4 at max 19. M4 at low was cheaper per task. Harder, longer tasks weren't tested.

Why did M4 cost less per task than M3 when its list price is higher?
At low effort M4 wrote about 1,456 output tokens per task against M3's 5,045, and output dominates the bill. At max effort M4 wrote about as much as M3 and cost 2.3 times as much.

Which effort level should I use on M4?
Start at low and raise it only for tasks that fail. In this test max cost 3.1 times low per task for one more pass out of 20. Leaving effort unset means max.

Can I turn thinking off on M4?
No. In AIHubMix's API check, a disabled thinking type got a 400 (error 2013) on Chat Completions, while an effort of none, and a disabled type on Anthropic Messages, were accepted and M4 thought anyway. Low is the lightest setting.

Is M3.1-Flash enough instead of M4?
For well-specified tasks like these, it passed 19 of 20 at low for about a tenth of what M4 at low cost. MiniMax recommends M4 for design, hard debugging and review; that split wasn't tested here.

Is M3 being retired?
No date has been announced. MiniMax lists M3 as a legacy model with a permanent 50% discount.

Can I download M4's weights?
Not yet. MiniMax calls M4 open-weight but says the weights will follow; none were published as of December 3, 2026.

Keep reading: the MiniMax M4 series

Sources

One gateway to multiple AI providers. Built for production.

Visit AIHubMix