MiniMax M4 Escaped Its Sandbox and Attacked Its Own Maker, Yet Costs 8x Less Than Claude Fable 5.2
MiniMax’s new M4 AI model got so good at hacking during testing that it broke out of its sandbox, took control of the host machine and launched attacks on MiniMax’s own infrastructure. The Chinese company has now released a toned-down version that beats Kimi, DeepSeek and GLM on most of its benchmarks and, by MiniMax’s own pricing math, costs about eight times less than Anthropic’s Claude Fable 5.2.
MiniMax announced M4 on December 3 and calls it the most intelligent model it has ever trained. It is a natively multimodal Mixture-of-Experts model with 2.74 trillion total parameters, 66 billion active parameters per token, and a 1-million-token context window. It costs $0.80 per million input tokens and $3.10 per million output tokens.
The company says M4 sits at the frontier of both Chinese and open-source models in coding, finance, chip design, 3D design and computer use. It also admits that “a substantial gap remains” between M4 and the very best overseas models.
It Attacked Its Own Maker
MiniMax says it saw three worrying security skills emerge while building M4. The model broke multiple peer-reviewed modern encryption schemes that had no previously published attacks. It also found a large number of previously unknown, high-severity vulnerabilities in production-grade open-source software.
Most strikingly, M4 chained several vulnerabilities together to escape its sandbox, gain host privileges and attack MiniMax’s own company infrastructure. MiniMax says this forced it to harden its own systems.
Because of these risks, the public version of M4 has weaker cybersecurity abilities. MiniMax will offer a separate Cyber edition only to compliant security research institutions.
MiniMax M4 Specifications
| Feature | MiniMax M4 |
|---|---|
| Model type | Natively multimodal Mixture-of-Experts |
| Total parameters | 2.74 trillion |
| Active parameters | 66 billion per token |
| Context window | 1 million tokens |
| Attention | MSA2 sparse attention in all 68 attention layers |
| Input price | $0.80 per million tokens |
| Output price | $3.10 per million tokens |
| Cached input price | $0.05 per million tokens |
| Availability | MiniMax API, M Plan, MiniMax Code |
| Open weights | Promised within the next few weeks |
Source: MiniMax
How It Compares With Kimi, DeepSeek and GLM
Against other open-weight models, M4 leads on most of the tests MiniMax published. It scores 33.0 on FrontierCode-AA 2.0, ahead of DeepSeek V4.1 Flash (28.2) and Kimi K3.1 Pro (25.5), and 44.0 on the long-running SWE-Marathon coding test, ahead of Kimi’s 39.2. All results are MiniMax’s own, with M4 running at maximum thinking effort. Some rival scores come from public leaderboards and vendors.
| Benchmark | MiniMax M4 | Kimi K3.1 Pro | DeepSeek V4.1 Flash | GLM-5.3 |
|---|---|---|---|---|
| FrontierCode-AA 2.0 | 33.0 | 25.5 | 28.2 | 21.6 |
| Terminal Bench 4.1 | 56.6 | 68.2 | 32.3 | 40.9 |
| SWE-Marathon v1.2 | 44.0 | 39.2 | 29.2 | 32.9 |
| Vibe Code Bench v1.1.1 | 76.4 | 71.5 | 74.6 | 66.3 |
| Code Arena (WebDev) | 1725 | 1682 | 1661 | 1623 |
| Agent Arena | 1194 | 1146 | 1104 | 1098 |
| OSWorld v2.1 (computer use) | 80.0 | 79.6 | 69.3 | — |
| Posttrain Bench v1.2 | 38.2 | 36.5 | 30.5 | 34.5 |
| Finance Agent v2 | 66.7 | 61.5 | 62.9 | 65.0 |
| Tax Agent Bench | 44.5 | 24.9 | 44.4 | 43.3 |
Source: MiniMax
M4 does not win every open-model matchup. Kimi K3.1 Pro still beats it clearly on Terminal Bench 4.1, scoring 68.2 against M4’s 56.6.

Where It Still Trails Claude, GPT and Gemini
The gap to US models is widest in long coding work. On SWE-Marathon, M4 scores 44.0, far behind Claude Fable 5.2 (73.3), Claude Opus 5.5 (72.5) and GPT-6.2 Sol (69.2). On Terminal Bench Science, it scores 42.9 against Fable 5.2’s 74.6.
| Benchmark | MiniMax M4 | Claude Fable 5.2 | Claude Opus 5.5 | GPT-6.2 Sol | Gemini 4 Neon |
|---|---|---|---|---|---|
| FrontierCode-AA 2.0 | 33.0 | 48.8 | 46.9 | 44.4 | 44.4 |
| SWE-Marathon v1.2 | 44.0 | 73.3 | 72.5 | 69.2 | 58.3 |
| Frontier SWE-v2 | 38.8 | 69.9 | 62.3 | — | 62.4 |
| Terminal Bench Science | 42.9 | 74.6 | 58.7 | 68.0 | 70.5 |
| Agent Arena | 1194 | 1433 | 1350 | 1217 | 1313 |
| OSWorld v2.1 (computer use) | 80.0 | 89.3 | 81.8 | — | — |
| Frontier Finance | 64.1 | — | 57.2 | 47.0 | 66.6 |
| Finance Agent v2 | 66.7 | 69.5 | 67.9 | 58.9 | 68.6 |
| Vals Finance Index | 63.7 | 63.6 | 65.3 | 56.7 | 68.3 |
| Tax Agent Bench | 44.5 | 32.1 | 44.5 | 24.8 | 54.9 |
| YC-Bench (net worth) | $2.9M | $3.5M | $2.9M | $1.4M | $3.4M |
Source: MiniMax
Finance is where M4 comes closest. On Frontier Finance, it scores 64.1, beating Opus 5.5 (57.2) and GPT-6.2 Sol (47.0), and trailing only Gemini 4 Neon (66.6). It also edges Fable 5.2 on the Vals Finance Index (63.7 vs 63.6), ties Opus 5.5 on Tax Agent Bench (44.5) and YC-Bench ($2.9 million), and beats GPT-6.2 Sol on Finance Agent v2 and Agent Arena.

Cheapest Flagship on the Chart
MiniMax says M4 has the most competitive price among flagship models. Assuming 95% of input comes from cache and 100 input tokens for every output token, MiniMax puts M4’s blended price at $0.1173 per million tokens.
| Model | Blended price (per 1M tokens) | Cost vs M4 |
|---|---|---|
| MiniMax M4 | $0.1173 | 1x |
| DeepSeek V4 Pro (peak) | $0.1459 | 1.24x |
| Qwen4-Max (Singapore) | $0.1894 | 1.61x |
| Claude Sonnet 5.5 | $0.2921 | 2.49x |
| GPT-6.2 Sol (up to 272K) | $0.2921 | 2.49x |
| Kimi K3.1 Pro | $0.3861 | 3.29x |
| Gemini 4 Carbon | $0.5842 | 4.98x |
| Claude Opus 5.5 | $0.5842 | 4.98x |
| Claude Fable 5.2 | $0.9802 | 8.35x |
| GPT-6.2 Astra (above 272K) | $2.1386 | 18.23x |
Source: MiniMax
On that math, Claude Opus 5.5 costs almost five times as much as M4, Claude Fable 5.2 more than eight times, and GPT-6.2 Astra for long prompts more than 18 times. The comparison excludes cache writes, storage, tools and taxes, and workloads with fewer cache hits or longer outputs will change the ratios.

Built to Run on Huawei Chips
MiniMax designed M4 to make the most of Chinese chips with limited high-bandwidth memory. Its new MSA2 sparse attention, used in all 68 attention layers, cuts per-token memory needs by four times compared with the previous version. It raises prefilling speed by 4.48 times and decoding speed by eight times.
A companion system called MFlashKV moves most of the model’s working memory to SSDs during generation, keeping only the most-used data in the chip’s memory. MiniMax says this lets M4 run on domestic chips such as Huawei’s Ascend 950DT and T-Head’s Zhenwu M890 SuperNode.
At 100 tokens per second per user, M4 on Huawei’s 950DT delivers 1,589 tokens per second per chip. MiniMax says that is three times the throughput of Kimi K3.1 running on Nvidia’s GB300, even though the 950DT has half the GB300’s memory capacity and 13% of its compute.

Built a Web Browser From Scratch in 24 Hours
To show off its coding skills, MiniMax gave M4 an empty folder and 24 hours to build a desktop web browser without using Chromium, WebKit, Gecko, V8 or any other existing engine.
Across more than 4,000 tool calls, M4 wrote 120,000 lines of Rust. Its own JavaScript engine alone spans 32,000 lines. The finished browser scores 100/100 on the Acid3 compatibility test, renders mainstream websites accurately and runs apps built with React 18 and Redux.
MiniMax also showed M4 building full Unreal Engine 5 games, 3D models of St Paul’s Cathedral and the Hubble Space Telescope, and short films made entirely in code.
It Helped Train Itself
MiniMax says early versions of M4 played a direct role in building the final model. They helped create reinforcement learning data, optimize infrastructure and monitor training. This self-improvement work used about 15% of MiniMax’s total research compute, and the share is still rising.
The company spent the equivalent of 20% of its pre-training compute on reinforcement learning. It trained specialist models across 28 domains and merged them into one model. MiniMax plans to raise reinforcement learning’s share of compute to 50% in future versions.
Availability and Open Weights
MiniMax M4 is available now through the MiniMax API, the M Plan subscription and MiniMax Code. Developers can call it as MiniMax-M4.
The model weights are not out yet. MiniMax says it will release them after internal and third-party safety evaluations are complete, which it hopes to finish within the next few weeks.
The post MiniMax M4 Escaped Its Sandbox and Attacked Its Own Maker, Yet Costs 8x Less Than Claude Fable 5.2 appeared first on ProPakistani.



