Skip to content
AI Primer
release

MiniMax launches M4 with 2.74T parameters and 1M-token context

MiniMax M4 launches with 2.74T total parameters, 66B active parameters and a million-token context. API pricing is $0.80 per million input tokens and $3.10 per million output tokens; weights are promised later.

8 min read
MiniMax launches M4 with 2.74T parameters and 1M-token context
MiniMax launches M4 with 2.74T parameters and 1M-token context

TL;DR

  • MiniMax M4 ships with 2.74T total parameters, 66B active per token, and 1M context. The launch announcement prices API access at $0.80/M input and $3.10/M output; downloadable weights come later.
  • Independent coding results jumped: ValsAI’s comparison puts M4 9.9 percentage points above M3.1 Flash on its overall index and first among models it classifies as open-weight.
  • Huawei serving is a headline result: SemiAnalysis describes MiniMax’s reported 1,589 tokens/second per Ascend 950DT chip at 100 tokens/second per user.
  • Long-running agents still have expensive failure modes. In ValsAI’s evaluation, terminal-task token consumption increased, while high legal rubric scores frequently failed to become completed tasks.
  • Day-one access already extends beyond MiniMax’s products, including OpenCode Go, despite the pending weight release.

MiniMax says a 24-hour browser-building experiment produced 120,000 lines of Rust from an empty directory, including its own JavaScript engine, and scored 100/100 on Acid3. The model documentation also lists million-token windows for M3 and M3.1 Flash, so context capacity is unchanged from those predecessors.

API pricing and pending weights

M4 rolled out through MiniMax’s API, M Plan, and paid MiniMax Code access, as the initial rollout report documented. The native API model ID is MiniMax-M4.

The official pricing table shows a substantial increase over M3.1 Flash, per million tokens:

  • Input: $0.15 → $0.80, about 5.3×.
  • Output: $0.60 → $3.10, about 5.2×.
  • Cache reads: $0.015 → $0.05, about 3.3×.

MiniMax’s much lower blended-price comparison assumes a 95% input-cache hit rate and 100:1 input-to-output ratio. Its calculation excludes cache writes, storage, tools, and taxes.

The release post targets downloadable weights within a few weeks, after internal and third-party safety evaluations. The launch post leaves weight-licensing terms unspecified; the repository currently says the weights will arrive “soon.”

MSA2 and MFlashKV

All 68 attention layers use MiniMax Sparse Attention 2, or MSA2. MiniMax’s architecture explanation describes four components:

  1. KV-sharing multi-query attention reduces the stored attention state.
  2. Fine-grained block-sparse attention reads selected portions of the history.
  3. Compressed multi-head indexing identifies relevant blocks.
  4. Two-layer lookahead index prediction starts fetching blocks before their attention layer needs them.

At the advertised million-token scale, attention selects 128 of 65,536 KV blocks per query, roughly 0.2%, according to MiniMax’s attention breakdown.

MFlashKV keeps hot blocks and indices in HBM while offloading most KV state to SSDs. Each 16-token block of 8-bit KV cache fits one 4 KiB SSD page, so retrieving it requires one page read, as MiniMax’s storage-layout explanation details.

Lookahead overlaps index computation and SSD loading with preceding-layer computation. MiniMax reports 4× lower per-token KV requirements, 4.48× higher prefill throughput, and 8× higher decode throughput than its previous attention version, with no added decoding overhead from offloading.

Ascend 950DT serving

MiniMax reports 1,589 decoding tokens/second per chip at 100 tokens/second per user on Huawei Ascend 950DT. The comparison lists these hardware differences against NVIDIA GB300:

  • HBM capacity: 144 GB versus 288 GB.
  • HBM bandwidth: 4 TB/s versus 8 TB/s.
  • FP4 peak compute: 2 PF versus 15 PF.

The chart changes both model and accelerator: M4 runs on Ascend, while the NVIDIA curves use DeepSeek, GLM, and Kimi models. MiniMax supplied the M4 measurement; its NVIDIA baselines come from InferenceX, whose public runs include configurations and logs.

Deployment work also spans other accelerators. Ahead of launch, MiniMax began working with Inferact on vLLM deployments for coding and agent workloads on NVIDIA and AMD GPUs; RadixArk and SGLang helped power the launch.

28 RL specialists

MiniMax trained specialists across 28 domains, then consolidated them into one model through multi-teacher on-policy distillation, according to the project repository. Domain experts participated in development, sometimes directly leading specialist training.

The company’s training account gives three compute details:

  • Reinforcement learning consumed compute equivalent to 20% of pretraining.
  • RL and evaluation together account for 30–40% of total R&D compute.
  • Pretraining and mid-training finished 50 days before release, followed by post-training and serving work.

Tree-MSA targets repeated context in subagent training: shared prefixes are computed once per packed sequence while preserving the loss and gradients of separately trained calls.

Coding and finance benchmarks

ValsAI evaluated M4 at max reasoning effort through MiniMax’s native API, as it specified in its methodology note. Its comparison with M3.1 Flash reports:

  • Vals Index: 51.75% → 61.65%, +9.90 percentage points.
  • Terminal-Bench 4.0: 25.25% → 44.95%, +19.70 points.
  • Vibe Code Bench: 57.27% → 76.43%, +19.16 points.
  • Finance Agent: 58.83% → 66.67%, +7.84 points.
  • Tax Agent Bench: 32.14% → 44.51%, +12.37 points.

Arena independently reported these changes over M3.1 Flash in its launch results:

  • Agent Arena Index: 1,045 → 1,194, +149 points, with a $0.35 median task cost.
  • Code Arena WebDev: 1,584 → 1,731, +147 points, with a $0.95 median task cost.

MiniMax’s launch chart used a WebDev score of 1,725, also carried in WesRoth’s report; Arena’s own announcement reports 1,731.

Against proprietary models, MiniMax’s chart shows sharply different gaps by task:

  • Finance Agent: M4’s 66.7 versus GPT-6.2 Sol’s 58.9, +7.8 points.
  • Design Arena HTML: M4’s 1,440 versus Gemini 4 Neon’s 1,437, +3 rating points.
  • FrontierCode-AA 2.0: M4’s 33.0 versus Fable 5.2’s 48.8, −15.8 points.

On Vibe Code Bench, M4 used 28% fewer tokens than M3.1 Flash despite writing more, because it reread less prior context. On Terminal-Bench 4.0, consumption went the other direction: 39% more tokens, amounting to 2.6× Fable 5.2’s and 3.2× Kimi K3.1 Pro’s usage.

Legal tasks exposed a separate completion problem:

  • Legal Agent Benchmark: 93% of rubric criteria passed, but only 12% of tasks fully resolved. Every criterion must pass for a task to count.
  • Legal Research: about 133 tool calls and 3,000-word answers per task, with only 43% of tasks fully passing.

MiniMax also disclosed a deliberate capability restriction in its release post: cybersecurity capabilities were attenuated in the public general-purpose model. It plans a separate Cyber edition for compliant security research institutions.

Always-on thinking

The invocation guide, also shared through the API documentation link, defines five effort levels: low, medium, high, xhigh, and max. Omitting effort defaults to max.

The parameter and response field depend on the protocol:

  • Anthropic-compatible: output_config.effort; reasoning arrives in thinking content blocks.
  • OpenAI Chat Completions-compatible: reasoning_effort; reasoning arrives in reasoning_content, separately from the final content.
  • OpenAI Responses: reasoning.effort; reasoning arrives as a type: "reasoning" output item.

Sending thinking: {"type": "disabled"} or an effort value of none returns HTTP 400, with the message model "MiniMax-M4" requires adaptive thinking. Higher effort levels produce more output tokens and higher latency, according to the docs.

Vibe Check

  • Detailed SVGs can take a while: chetaslua’s black controller illustration took 22 minutes at max effort.
  • Code-generated animation included sound: chetaslua’s Goku demo used text to construct the character, landscape, and energy beam.

A Goku animation built from text and code

  • Effort does not guarantee monotonically increasing token use: Hacker News user simonw tested SVG generation at all five settings; high used more reasoning tokens than xhigh in that test.
  • Document work had a different latency profile: in a Chinese-language hands-on report, BlackCoffee used M4 through Codex for documents and presentations, reporting faster overall tasks than DeepSeek’s 1017 variant despite lower generation speed. Subscription quota consumption was the complaint.

Day-one integrations

Chip design and FPGA bring-up

MiniMax’s report evaluated repository auditing through Claude Code, but used MiniMax Code for an accelerator implementation, as the report excerpts document.

The hardware workflow covered RTL authoring, functional verification, timing and area optimization, and physical implementation using the ASAP7 7 nm PDK. MiniMax reports validation on AMD Alveo V80 and VeriTiger-QV19P FPGA platforms, followed by deployment beside a GPU to run its H3 video-and-audio pipeline.

Further reading

Discussion across the web

Where this story is being discussed, in original context.

On X· 10 threads
TL;DR3 posts
API pricing and pending weights2 posts
MSA2 and MFlashKV3 posts
Ascend 950DT serving2 posts
Coding and finance benchmarks4 posts
Always-on thinking1 post
Vibe Check5 posts
Day-one integrations8 posts
Chip design and FPGA bring-up1 post
Share on X