The blue Atomic Agent mascot holding a wrench and looking up at a tall glossy pink sound wave sculpture on a dark navy stage
Models

MiniMax M4: Tested as an Agent

Published
Reading time
9 min read
Tag

MiniMax M4 is out: 2.74T parameters, 1M context, $0.80/$3.10 per million tokens. Its benchmarks, effort levels, where the weights are, and how it did in our agent test.

MiniMax released MiniMax M4 on December 3, 2026. It’s the biggest model the company has shipped: 2.74 trillion parameters, 66 billion active per token, a 1 million token context window, and a price of $0.80 per million input tokens and $3.10 per million output.

MiniMax’s own pitch is that M4 leads Chinese and open-weight models on most of its benchmarks. Its own table also shows the catch: on long coding tasks M4 is well behind Claude Fable 5.2 and Opus 5.5. We put it on the same coding task we use for every new model and ran it in Atomic Agent.

Key takeaways

Model IDs. MiniMax API: MiniMax-M4. OpenRouter: minimax/minimax-m4. In Atomic Agent, pick it from the live OpenRouter catalog with /model.

What is MiniMax M4?

MiniMax M4 is a natively multimodal mixture-of-experts model: it takes text, images and video, and only 66B of its 2.74T parameters work on each token. MiniMax trained it with reinforcement learning across 28 specialist domains and merged those into one model.

MiniMax M4
ReleasedDecember 3, 2026
Parameters2.74T total, 66B active
Context window1M tokens
Max output524,288 tokens (OpenRouter listing)
InputText, image, video
ThinkingAlways on, effort low / medium / high / xhigh / max
Price per 1M tokens$0.80 input, $3.10 output, $0.05 cached
WeightsNot released yet

Sources: MiniMax’s launch post, pricing page and OpenRouter, checked December 3, 2026.

The launch post spends most of its time on how M4 was built on limited hardware. A new sparse attention design (MSA2) cuts the memory each token needs by 4x compared with M3, and a system called MFlashKV keeps most of the context cache on SSD instead of GPU memory. MiniMax says this let it serve M4 on Huawei’s 950DT chips at 3x the throughput of Kimi K3.1 on NVIDIA’s GB300.

The headline demo is a web browser. MiniMax gave M4 an empty folder and 24 hours, and it wrote 120,000 lines of Rust over more than 4,000 tool calls: HTML and CSS layout, SVG and Canvas, and its own JavaScript engine. MiniMax says the result scores 100/100 on the Acid3 test. It’s a company showcase, not an independent benchmark, but it shows what MiniMax built M4 for: long jobs with thousands of steps.

How much does MiniMax M4 cost?

$0.80 per million input tokens, $3.10 per million output, $0.05 per million cached input. OpenRouter passes through the same price. There’s no long-context surcharge in MiniMax’s price list.

ModelInputOutputCached input
MiniMax M4$0.80$3.10$0.05
MiniMax M3.1 Flash$0.15$0.60$0.015
Kimi K3.1 Pro$2.00$10.00$0.20
Claude Opus 5.5$4.00$20.00$0.20

Official API prices per million tokens from MiniMax, Moonshot and Anthropic, December 3, 2026. OpenRouter currently lists M3.1 Flash and Kimi K3.1 Pro lower than this.

In agent work, almost all input comes back from cache, because every step resends the whole conversation. That’s why the $0.05 cached price matters more than the $0.80 headline. MiniMax’s own chart assumes a 95% cache hit rate and works out a blended price of $0.117 per million tokens, against $0.584 for Opus 5.5.

M4 is also in every tier of MiniMax’s M Plan subscription (Go, Explore, Build and Scale). MiniMax says M4 usage on the plan counts only toward a weekly limit, with no 5-hour cap. M Plan keys are separate from pay-as-you-go API keys.

How did MiniMax M4 do in our agent test?

It solved the task, and cheaply. At medium effort M4 passed all 59 hidden tests in two of three runs and 58 in the third, in about 9 minutes and $0.38 per task. That is less than half of what Opus 5.5 cost on the same job, though it took about twice as long. The default max effort added no accuracy: the same 59, 59 and 58, but 19 to 31 minutes per task. Like M3.1 Flash, M4 is much faster when you turn the effort down.

How we tested. The task is warelog, a warehouse inventory library of about 1,400 lines with 13 planted bugs and one missing feature. The agent gets one prompt: fix it and make the tests pass. Then 59 hidden tests it never sees check the result. The untouched code passes 20 of them. Each model ran three times in Atomic Agent with a 60 minute limit. M4 ran on December 3, 2026 through the AI/ML API on agent build 0.8.0, at max (the default) and medium effort, and its cost is the logged tokens times MiniMax’s list price. The other models ran in November 2026 through OpenRouter on build 0.7.0, with costs as OpenRouter billed them. Same task, same hidden tests.

ModelHidden testsTime per taskCost per task
MiniMax M4, max effort59, 59, 5819 to 31 minnot fully logged
MiniMax M4, medium effort59, 59, 588.8 min$0.38
GPT-6.1 Sol59/592.4 min$0.29
Claude Opus 5.5, medium59/594.2 min$0.97
Gemini 4 Carbon, medium59/5912.7 min$0.95
Kimi K3.1 Pro, max59/5916 to 29 min$1.10
Claude Fable 5.2, high59/5926.6 min$7.70

Three runs per setup, averages shown. Costs for the November runs are what OpenRouter billed; Kimi’s comes from its one fully logged run. M4’s max-effort runs logged only part of their model calls, so we don’t show a cost for them.

Limits of this test. One task, three runs per setup. It shows whether a model finishes a realistic repair job and what that costs; it doesn’t rank models on hard open-ended work.

Download Atomic Agent to run the same comparison on your own repo: switch the model per run, and the tools and prompt stay the same.

How does MiniMax M4 score on benchmarks?

On MiniMax’s 30-row table, M4 scores higher than Kimi K3.1 Pro, the strongest other open-weight model in it, on 27 rows. Against the closed frontier models it’s mostly behind, and the gap is biggest on long coding tasks.

BenchmarkMiniMax M4Kimi K3.1 ProClaude Opus 5.5Claude Fable 5.2
Terminal Bench 4.156.668.259.161.6
SWE-Marathon v1.244.039.272.573.3
Frontier SWE-v238.834.462.369.9
ProgramBench40.031.565.063.5
Vibe Code Bench v1.1.176.471.578.583.5
OSWorld v2.180.079.681.889.3*
Vals Index v2.261.760.968.770.1
Finance Agent v266.761.567.969.5

Source: MiniMax’s launch post. M4 ran at max effort. Some rows are MiniMax’s internal runs, others come from Artificial Analysis, Vals.ai and public leaderboards. *MiniMax notes Fable 5.2’s OSWorld score uses a different test set.

Two things to read from this. First, on short, contained work such as Vibe Code Bench or OSWorld, M4 is within a few points of Opus 5.5. Second, on long software jobs (SWE-Marathon, Frontier SWE, ProgramBench) Opus and Fable are ahead by 20 to 30 points. MiniMax says so itself: “a substantial gap remains compared with the very best overseas models.”

Where are the MiniMax M4 weights?

Not out yet. The GitHub repo has the technical report and says “We will release the weights soon.” The launch post says MiniMax hopes to finish “within the next few weeks,” after internal and third-party safety checks. No license has been published. Earlier MiniMax models shipped under the MiniMax Community License, but that’s no guarantee for M4.

MiniMax also says it weakened some cybersecurity skills in the public model and will offer a separate Cyber edition to approved security researchers.

Even with weights, M4 isn’t a local model. 2.74 trillion parameters take roughly 1.4 TB at 4 bits per weight, before any context cache. That’s server hardware. If you want an agent that works offline or keeps code on your machine, run a smaller open model locally and keep M4 for the turns that need it. Atomic Agent does both in one place: a local model by default, OpenRouter when you switch with /model, and Fusion mode where a cloud model plans and reviews while a local model does the edits.

How do I use MiniMax M4 in an agent?

The fastest route is OpenRouter. Atomic Agent fetches OpenRouter’s live model list, so M4 is in the picker on day one.

Terminal window
curl -fsSL https://atomicagent.io/install | sh
atomic-agent

On Windows, run irm https://atomicagent.io/install.ps1 | iex in PowerShell, or get the desktop app. In the first-run setup choose Cloud models, then OpenRouter, paste your key and pick minimax/minimax-m4. Our OpenRouter guide has the full steps.

To set the effort yourself, add extraBody to the OpenRouter entry in ~/.atomic-agent/config.json:

{
"id": "openrouter",
"kind": "openrouter",
"defaultChatModel": "minimax/minimax-m4",
"extraBody": { "reasoning": { "effort": "medium" } }
}

For Claude Code, MiniMax’s guide sets ANTHROPIC_BASE_URL to https://api.minimax.io/anthropic and the model to MiniMax-M4. It also has setup pages for OpenCode, OpenClaw and Hermes Agent, and a wizard: npx -y mmx-cli@latest agent setup.

Should you use MiniMax M4?

Use it when you want a large, cheap cloud model for long agent jobs and can live with a gap to Claude on hard coding. Set the effort below max for routine work, since max is the default and thinking can’t be turned off.

Stick with Opus 5.5 or Fable 5.2 for long software tasks where finishing matters more than the bill. If you need the weights, wait: they aren’t out, and when they are you’ll need a server to run them.

The cheapest way to find out is to run it on your own work. Atomic Agent lets you try M4, Opus and a local model on the same task, one after another, with the same tools and prompt.

FAQ

FAQ

Everything you need to know about running a local-first agent.

  • When was MiniMax M4 released?

    December 3, 2026. MiniMax put it on its API, the M Plan subscription and MiniMax Code the same day, and OpenRouter listed it as minimax/minimax-m4.

  • How much does MiniMax M4 cost?

    $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens on MiniMax's API. OpenRouter charges the same. At list price that is about five times MiniMax M3.1 Flash.

  • Is MiniMax M4 open source?

    Not yet. MiniMax calls it an open-weight model, but the weights aren't published. Its launch post says it hopes to release them within the next few weeks, after safety evaluations, and no license has been announced.

  • Can I run MiniMax M4 locally?

    Not on a normal computer. Even when the weights come out, 2.74 trillion parameters take roughly 1.4 TB at 4 bits per weight before any context cache. Treat M4 as a cloud model and use a local model for private work.

  • Can I turn off thinking in MiniMax M4?

    No. Thinking is always on. You can set the effort to low, medium, high, xhigh or max, and the default is max.

  • What is the context window of MiniMax M4?

    1 million tokens. OpenRouter lists a maximum output of 524,288 tokens, and MiniMax's OpenCode guide recommends 131,072.

  • Is MiniMax M4 better than Claude Opus 5.5?

    Not on MiniMax's own coding benchmarks. Opus 5.5 leads on most of them, by a wide margin on long software tasks such as SWE-Marathon (72.5 against 44.0). M4's case is price: about a fifth of Opus per token.

  • How do I use MiniMax M4 in an agent?

    Pick minimax/minimax-m4 from the OpenRouter catalog in Atomic Agent with /model, or point Claude Code, OpenCode or OpenClaw at MiniMax's API using its setup guides.


Get new posts
by email

One email when we post something new.

Share
Written by
Nadya Dudka Product, Atomic Agent
Andrew Dyuzhov SEO and growth

Run your local agent
in one click