MiniMax M4: Power-User Guide to the API, Effort Levels and Pricing

Last updated: December 4, 2026

MiniMax M4 is MiniMax’s new flagship model, released December 3, 2026. It has 2.74 trillion total parameters, 66 billion active per token and a 1M-token context window. Call it as MiniMax-M4 on the MiniMax API for $0.80 input and $3.10 output per million tokens, or use it through M Plan and MiniMax Code.

Contents

What MiniMax M4 is

MiniMax announced M4 on December 3, 2026, describing it as the most intelligent model it has trained (MiniMax blog). MiniMax says it leads Chinese and open-source models on most tasks it tested, including coding, computer use, finance and 3D design.

The main technical changes, according to MiniMax (MiniMax blog):

  • New sparse attention: all 68 attention layers use MiniMax Sparse Attention 2 (MSA2). MiniMax says it cuts per-token KV cache needs by 4x compared with the previous version, with 4.48x faster prefill and 8x faster decoding.
  • KV cache offload: a companion system, MFlashKV, moves most of the KV cache to SSDs during decoding and keeps only hot blocks in GPU memory.
  • More reinforcement learning: RL used the equivalent of 20% of pre-training compute, with specialists in 28 domains merged into one model.
  • Reduced cyber capability: MiniMax says it weakened certain cybersecurity capabilities in the public version and will offer a separate Cyber edition to approved security research groups.

These are MiniMax’s own claims and benchmarks. On Posttrain Bench v1.2, which tests post-training skills, MiniMax reports a score of 38.2 for M4 (MiniMax blog).

Where to use M4 and what it costs

M4 is available in three places: the MiniMax API, the M Plan subscription and the MiniMax Code agent app (MiniMax blog). API pricing is listed on the pricing page (pricing overview):

Model Input ($ per 1M tokens) Output ($ per 1M tokens) Cached input read ($ per 1M tokens)
MiniMax-M4 $0.80 $3.10 $0.05
MiniMax-M3.1-Flash $0.15 $0.60 $0.015

MiniMax estimates that about 750 English words use 1,000 tokens (pricing overview).

M Plan is the subscription option for individuals, with four tiers: Go, Explore, Build and Scale. All four include M4 and M3.1 Flash. Usage scales at 1x, 3x, 7.5x and 11.5x of Go. On Go, Explore and Build, M4 counts only toward the weekly limit rather than the 5-hour limit, and Scale has no 5-hour limit at all (M Plan introduction). MiniMax Code also has a limited-time 2x off-peak night bonus (MiniMax blog).

How to call MiniMax-M4 through the API

The API accepts both Anthropic-style and OpenAI-style requests. MiniMax recommends the Anthropic-compatible endpoint because it supports thinking blocks and interleaved thinking (text generation guide). To make a first call:

  1. Create an API key in the MiniMax console (pay-as-you-go) or get an M Plan API key from the plan page.
  2. Set the base URL to https://api.minimax.io/anthropic for the Anthropic SDK, or https://api.minimax.io/v1 for the OpenAI SDK.
  3. Set model to MiniMax-M4.
  4. Choose a thinking depth: output_config.effort on the Anthropic protocol, reasoning_effort on Chat Completions, or reasoning.effort on the Responses API.
  5. Set an output limit with max_tokens (or max_output_tokens on Responses), send your messages, and set stream to true if you want streamed output.
  6. Read the answer from the text blocks. Thinking comes back separately: as thinking blocks on the Anthropic protocol and in reasoning_content on Chat Completions.

A minimal Anthropic-compatible request body looks like this (text generation guide):

{
  "model": "MiniMax-M4",
  "max_tokens": 4096,
  "output_config": {"effort": "max"},
  "messages": [{"role": "user", "content": "Hello"}]
}

Thinking and effort levels

Thinking is on by default for M4 and cannot be turned off. The effort setting accepts low, medium, high, xhigh and max, and defaults to max when you omit it (text generation guide). Higher levels think longer, use more output tokens and add latency.

If you send thinking: {"type": "disabled"} or effort: "none", the API returns a 400 error stating that the model requires adaptive thinking. A practical pattern:

  • low or medium: classification, short rewrites and simple tool calls.
  • high or xhigh: everyday coding and analysis.
  • max: long-horizon coding and multi-step agent tasks.

Using M4 in Claude Code

MiniMax documents three ways to run M4 inside Claude Code with an M Plan key (Claude Code setup guide). First unset ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL, which override the settings file. Then run the wizard with npx -y mmx-cli@latest agent setup, edit ~/.claude/settings.json directly, or use the CC Switch provider manager.

The manual configuration sets ANTHROPIC_BASE_URL to https://api.minimax.io/anthropic, uses your key as ANTHROPIC_AUTH_TOKEN, maps the default Sonnet, Opus and Haiku models to MiniMax-M4[1m], sets CLAUDE_CODE_AUTO_COMPACT_WINDOW to 524288 (a recommended 512K compaction window) and sets CLAUDE_CODE_EFFORT_LEVEL to max. Run /status and /model in Claude Code to confirm the MiniMax endpoint and model are active.

The /effort command works only after you remove CLAUDE_CODE_EFFORT_LEVEL, which takes priority. MiniMax notes that some Claude Code versions send xhigh as high (Claude Code setup guide). For recent Claude Code features, see our Claude Code 2.1.335 guide.

MiniMax M4 vs. M3.1 Flash

M3.1 Flash, released October 19, 2026, stays available alongside M4. Our MiniMax M3.1 Flash guide covers it in detail. The main differences, based on MiniMax’s documentation (text generation guide) (pricing overview):

Feature MiniMax M3.1 Flash MiniMax M4
Role Efficient everyday model Flagship for the hardest coding and agent work
Context window 1,000,000 tokens 1,000,000 tokens
Effort levels low to max (default max) low to max (default max)
Input / output price $0.15 / $0.60 $0.80 / $3.10
Open weights Released Promised within weeks
M Plan quota Counts toward 5-hour and weekly limits Weekly limit only (Go, Explore, Build)

A sensible split: route routine, high-volume steps to M3.1 Flash and send planning, large refactors and hard debugging to M4. For another recent large open model from China, see our StepFun Step 5 guide. MiniMax’s media models are covered in our MiniMax H3-Image guide.

Limits and open questions

Keep these points in mind before you depend on M4 (MiniMax blog):

  • No weights yet. You cannot self-host M4 today. For self-hosting other open models, see our vLLM 0.34 guide.
  • Vendor benchmarks only. The performance claims come from MiniMax, which itself says a substantial gap remains compared with the very best overseas models.
  • Always-on thinking. Even short requests can produce reasoning tokens, adding cost and latency.

Frequently asked questions

What is MiniMax M4?

MiniMax M4 is MiniMax’s flagship language model, released December 3, 2026. 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.

How much does the MiniMax M4 API cost?

MiniMax lists $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens for MiniMax-M4 on pay-as-you-go API billing.

Is MiniMax M4 open source?

Not yet. MiniMax says the weights will follow internal and third-party safety evaluations, which it hopes to finish within a few weeks.

Can I turn off thinking in MiniMax M4?

No. Thinking is always on. Sending thinking disabled or effort none returns a 400 error. To cut latency and token use, lower the effort level to low, medium, high or xhigh instead.

Can I use MiniMax M4 in Claude Code?

Yes. Point Claude Code at https://api.minimax.io/anthropic with an M Plan API key and set the model to MiniMax-M4[1m], or run MiniMax’s wizard with npx -y mmx-cli@latest agent setup.

How is M4 different from MiniMax M3.1 Flash?

M4 is the larger flagship for the hardest coding and agent work. M3.1 Flash costs less, at $0.15 input and $0.60 output per million tokens. Both have a 1M-token context window and accept the same five effort levels.

Sources

Related answers

Leave a Comment