For routine, well-specified coding, M4 at reasoning_effort low can take over M3's calls: on AIHubMix's 10 Python tasks, M4 at low passed 18 of 20 runs, as M3 did, at 25% less per task, although its list price is about 2.6 times M3's. For hard, multi-step coding, set M4 to high or max: Vals.ai's independent runs put M4 at max 25 to 36 points above M3 on two harder coding benchmarks, and MiniMax reports max beating low by 18 points on its internal coding set. Leave effort unset and M4 runs at max, which cost 3.1 times as much as low on the short tasks with no clear gain in passes. Stay on M3 only if your code switches thinking off or relies on MiniMax's Priority tier; for high-volume, well-specified work, M3.1-Flash at low passed 19 of 20 at about a tenth of what M4 at low cost per task.
The price sheet alone doesn't predict the bill. What a task costs depends on how many tokens the model spends, on M4 that depends mostly on the effort level, and M4 defaults to the highest one.
AIHubMix ran the comparison on December 3, 2026, from 15:18 to 15:30 UTC: 10 single-file Python tasks with hidden tests, two runs each, five model and effort settings, 100 calls. The harder-task numbers come from MiniMax's technical report (vendor-reported, at max effort) and from Vals.ai's independent runs, both checked on December 4, 2026.
Which model should take your coding calls?
| 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 | Bigger gap on hard benchmarks |
| 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 doesn't come from AIHubMix's test, since none of the 10 tasks was hard enough to separate the models. It rests on the published benchmarks covered below and on MiniMax's model pairing guide, written for its own MiniMax Code app, which assigns M4 at high or max to design, hard debugging and pre-commit review and calls M3.1-Flash "your everyday workhorse".
What did 100 calls across five settings show?
| 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 list prices (next section) and the cached input each call reported.
Pass counts landed between 17 and 19 of 20. With two runs per task, a gap of one or two passes is within run-to-run noise, so this set of tasks doesn't rank the models on correctness. Five of the ten tasks were solved in every run by every setting, and 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 also missed the diff task once.
Cost separates the settings far more, from $0.45 to $14.37 per 1,000 tasks:
Why did M4 at low cost less per task than M3?
Output was 89% or more of every setting's bill here, so output tokens per task set the cost. M3 wrote 3.5 times as many as M4 at low (5,045 against 1,456), and 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 makes it the most expensive setting: 3.1 times M4 at low per task, and 2.3 times M3.
| 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, M3 $0.0061 and M4 at max $0.0144.
For agent sessions that resend a long context on every step, cached input matters more than it did in these short tasks, and 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. Equal output is an assumption this test didn't show: at low, M4 wrote fewer tokens than M3; at max, about as many.
How was the test run?
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.
- 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_effortlowormaxfor M4 and M3.1-Flash; no effort field for M3, which ignores it.max_completion_tokens32,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.
Do harder benchmarks change the picture?
For hard work, yes. Two sets of benchmark results appeared on December 3, 2026, after M4 launched, and both point the same way.
MiniMax's technical report compares M4 with other open-weight and proprietary models. Every M4 score in it is MiniMax's own, measured at max effort, and M3 isn't in the table. On long coding tasks M4 leads the open-weight models listed but trails the top proprietary ones:
| Benchmark | M4 | Kimi K3.1 Pro | Claude Opus 5.5 |
|---|---|---|---|
| SWE-Marathon v1.2 | 44.0 | 39.2 | 72.5 |
| Terminal Bench 4.1 | 56.6 | 68.2 | 59.1 |
| FrontierCode-AA 2.0 | 33.0 | 25.5 | 46.9 |
| OSWorld v2.1 | 80.0 | 79.6 | 81.8 |
Scores from Table 2 of MiniMax's report. Artificial Analysis ran FrontierCode-AA 2.0; the other rows mix MiniMax's runs and public leaderboards. MiniMax itself writes that "a substantial gap remains compared with the very best overseas models."
The same report shows what effort buys on hard tasks. On MiniMax's internal coding set (50 tasks, eight runs each, in Claude Code), M4 scored 32.0 at low and 50.3 at max, using 1.5 times the output tokens. On OSWorld v2.1 the gain from low to max was 10.6 points at 1.9 times the tokens.
Vals.ai ran M4, at max effort, and M3 on the same independent benchmarks:
| Benchmark | M4 | M3 |
|---|---|---|
| SWE-bench Multimodal | 58.5% | 33.3% |
| Code Migration v1.1 | 56.5% | 20.9% |
| Finance Agent v2.1 | 66.7% | 54.3% |
Vals.ai results as listed on December 4, 2026; Vals doesn't show run dates, and M3 has no effort setting.
On short, well-specified tasks like AIHubMix's, low effort matched max and M3. On these harder, multi-step benchmarks, M4 at max is 12 to 36 points ahead of M3, and MiniMax's data says effort matters there. Two other independent tests found low or medium enough for routine work: on Atomic Agent's 1,400-line bug-fix repository, M4 passed 59, 59 and 58 of 59 hidden tests at both medium and max, taking 8.8 minutes on average at medium and 19 to 31 minutes per run at max; in Sulat's hands-on review, a set of 10 hard maths questions scored 10 of 10 at every effort level.
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 at high or max when a task is hard enough that M3.1-Flash keeps failing; the Vals.ai results and MiniMax's effort data above point that way. For anything else, low cost a third of max in this test.
What changes in the request when you switch?
| Behaviour | 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) |
The model ID on AIHubMix is minimax-m4 (model page), and Chat Completions, Anthropic Messages and the Responses API all answered for it in AIHubMix's API check. A first call through the OpenAI SDK, with a key from the AIHubMix quick start in AIHUBMIX_API_KEY:
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 fails when M3 code runs on M4?
- Requests that turn thinking off. In AIHubMix's API check on December 3, a disabled thinking type on Chat Completions got a 400 (error 2013), while an effort of
none, and a disabled type on Anthropic Messages, were accepted and M4 thought anyway. Remove the setting;lowis the lightest setting. - Calls that never set effort. Leaving it out means
max, which cost 3.1 timeslowper task in this test. Set an effort level on every call:lowfor routine, well-specified tasks,highormaxfor hard, multi-step work. - Output limits sized for M3. Thinking counts toward them, and in AIHubMix's API check a 30-token limit returned an empty reply. Raise them.
The migration post linked below has the full parameter list, the raw errors and a verification test.
What isn't known yet?
Artificial Analysis had no Intelligence Index score for M4 as of December 4, 2026; its only M4 number so far is the FrontierCode-AA 2.0 run in MiniMax's report. MiniMax says it will release the weights after internal and third-party safety evaluations and hopes to finish "within the next few weeks"; none were published as of December 4. It also says the public model has some cybersecurity capabilities attenuated, with a separate Cyber edition for vetted security institutions. MiniMax's text generation guide still doesn't state a maximum output length; Vals.ai ran M4 with a 262,144-token limit.
AIHubMix's own test leaves open how M4 does on multi-file changes, long agent runs with many tool calls, and debugging inside large codebases; for those, the evidence so far is the benchmark data above. With two runs per task, its token and cost figures are averages for this set, and single runs varied: one M4 max run of the diff task used 9,801 output tokens and the other 25,854.
Keep reading: the MiniMax M4 series
- Once you decide to switch, the request settings that fail or return empty replies on M4, with raw errors and a verification test, are in MiniMax M3 to M4 Migration: Error 2013, Empty Replies and the Parameters to Change
Sources
- MiniMax docs, pricing, text generation guide and model pairing guide: list prices, effort levels and defaults, MiniMax's suggested split between M4 and M3.1 Flash, accessed 2026-12-03 14:32 UTC
- MiniMax M4 technical report and launch post: Table 2 benchmarks and the effort-level results, vendor-reported at max effort; weights timing, accessed 2026-12-04
- Vals.ai results for MiniMax-M4 and MiniMax-M3: independent benchmark scores, accessed 2026-12-04
- MiniMax M4 on AIHubMix: the minimax-m4 model ID; AIHubMix's API check (14:43 to 14:47 UTC) and coding-task test (15:18 to 15:30 UTC) ran through this endpoint on 2026-12-03
- Independent hands-on tests by Atomic Agent and Sulat: effort levels on a bug-fix repository and a maths set, published December 3 and 4, 2026


