Editorial

MiniMax M4 Agent Cost: $0.87 a Session vs M3

MiniMax M4 costs $0.80/$3.10 with a $0.05 cache read. Our 60-turn agent session is $0.87 vs $0.62 on M3. Max effort widens it.

JJyoti Ranjan SwainUpdated
MiniMax M4 agent session cost: $0.87 against $0.62 on M3 and $0.21 on M3.1 Flash, at $0.80/$3.10 per million tokens

MiniMax launched M4 on 3 December 2026. It's a natively multimodal model with 2.74 trillion parameters, 66 billion of them active per token, and a 1M-token context window. The API price is $0.80 per million input tokens, $3.10 for output and $0.05 for a cached read. That's more than double M3 on input and output, and a little less than M3 on cache reads.

I ran our usual 60-turn agent session through MiniMax's own pricing table. M4 comes to $0.87, M3 to $0.62 and M3.1 Flash to $0.21. The 40% gap between M4 and M3 is smaller than the headline rates suggest, because most of an agent's tokens are cache reads. It also grows fast once the model thinks harder, and M4 thinks at maximum effort unless you tell it otherwise.

Table of contents

MiniMax M4 prices against M3 and M3.1 Flash

From MiniMax's pay-as-you-go page, read on 4 December 2026, per million tokens:

ModelInputOutputCache read
MiniMax-M4$0.80$3.10$0.05
MiniMax-M3 (up to 512K input)$0.30$1.20$0.06
MiniMax-M3 (above 512K input)$0.60$2.40$0.12
MiniMax-M3.1-Flash$0.15$0.60$0.015

M3 now sits under "Legacy Models" with a permanent 50% discount, which is why it's so cheap. Its list price was $0.60 and $2.40. M4 has one flat rate across the whole 1M context, so there's no long-prompt tier to plan around.

MiniMax doesn't bill a separate cache write. Its caching guide gives the formula: new input tokens at the input rate, cache hits at the cache rate, output at the output rate. The first time a prefix goes through, it costs the normal input price. Caching is automatic and works by prefix match, in the order system prompt, then tool list, then messages. Change the tool list mid-session and the cache breaks from that point on.

One 60-turn agent session on each model

This is the workload we cost for every model: 60 turns, a 120,000-token prefix sent once and read from cache on the other 59 turns, then 3,000 new input tokens and 1,500 output tokens per turn.

LineTokensM4M3M3.1 Flash
Prefix, first send120,000$0.096$0.036$0.018
Cache reads7,080,000$0.354$0.425$0.106
New input180,000$0.144$0.054$0.027
Output90,000$0.279$0.108$0.054
Session$0.87$0.62$0.21

One 60-turn agent session: MiniMax M4 $0.87, M3 $0.62, M3.1 Flash $0.21, with cache reads and output split out

M4's input rate is 2.67 times M3's and its output rate 2.58 times. The session costs only 1.40 times as much. Cache reads are 68.2% of the M3 bill, and on that line M4 is the cheaper model by a cent per million. On M4 the cache share drops to 40.5% and output climbs to 32.0%.

At four sessions a workday for 20 days, that's $69.84 a month on M4, $49.82 on M3 and $16.42 on M3.1 Flash. For scale, the same session on Amazon's Ergo, which launched two days earlier, is $0.81, and Claude Sonnet 5.5 is $2.27. Put in your own token counts with the API Cost Calculator. It lists M4 from today.

Thinking at max effort is the expensive line

M4 always thinks. Sending thinking: {"type": "disabled"} returns a 400 error, and MiniMax's Anthropic-compatible API docs say the effort setting defaults to max when you leave it out. The accepted values are low, medium, high, xhigh and max. Thinking tokens count toward max_tokens and bill as output, so the 1,500 output tokens per turn in the table above is generous for a model reasoning at max.

Here's the same session as output per turn grows:

Output per turnM4M3M4 / M3
500$0.69$0.551.25x
1,500$0.87$0.621.40x
3,000$1.15$0.731.58x
6,000$1.71$0.951.81x
12,000$2.83$1.382.05x

Session cost as output per turn rises from 500 to 12,000 tokens: M4 goes from $0.69 to $2.83, M3 from $0.55 to $1.38

At 12,000 output tokens a turn, M4 costs double what M3 does. A hard debugging turn at max effort can produce that much. MiniMax hasn't published how many thinking tokens each effort level produces, so I can't tell you where your workload lands. Count it yourself: the usage block in each response reports output_tokens, and a day of logs tells you which row you're in.

My suggestion is to run routine edits at medium and keep max for the turns where the agent is stuck. Set it per request with output_config: {"effort": "medium"} on the Anthropic-style endpoint.

Pointing Claude Code at M4

MiniMax's Claude Code guide uses ~/.claude/settings.json. This is its manual setup, with the key left as a placeholder:

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "524288",
    "CLAUDE_CODE_EFFORT_LEVEL": "max",
    "ANTHROPIC_MODEL": "MiniMax-M4[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M4[1m]",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M4[1m]",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M4[1m]"
  }
}

Claude Code settings.json sends requests to api.minimax.io/anthropic, which routes all four model slots to MiniMax-M4

Two things in that file decide your bill. The guide pins CLAUDE_CODE_EFFORT_LEVEL to max, and while that variable is set, the /effort command inside a session does nothing. If you want to switch levels as you work, delete the line and use /effort medium or start with claude --effort medium. The guide also warns that some Claude Code versions send xhigh as high. Settings that turn thinking off, such as MAX_THINKING_TOKENS=0, have no effect on M4.

The other is the Haiku slot. Claude Code sends small background jobs to whatever model sits there, and this config routes them to M4 at M4 prices. Putting MiniMax-M3.1-Flash in ANTHROPIC_DEFAULT_HAIKU_MODEL is my own change, not something the guide suggests, but it costs a fifth as much per token.

Run /status and /model after you start claude. The base URL should read api.minimax.io/anthropic and the model MiniMax-M4. One more rule from the tool-use guide applies to any harness you build yourself: send the full assistant message back each turn, thinking blocks included. On simple tool calls M4 may skip thinking entirely, so check that the field exists before you read it.

The 512K window MiniMax recommends

The 524288 auto-compact value in that config is MiniMax's own advice. Its Codex guide reports a ProgramBench comparison on M3.1 Flash: 200 tasks, similar scores with a 512K and a 1M window, and 18.5% fewer tokens per task at 512K (111.42 million against 136.76 million). Estimated charges were 19.9% lower.

That test used M3.1 Flash, not M4, so treat the 19.9% as a hint. If it held for M4, our $0.87 session would be about $0.70. Our session never gets near 512K anyway. The saving shows up on long runs where the history keeps growing, because compaction earlier means fewer cached tokens re-read on every turn after it.

M Plan instead of pay-as-you-go

MiniMax also sells M Plan, a subscription that replaced its Token Plan for new buyers. Monthly prices on the M Plan page are $22 for Go, $55 for Explore, $132 for Build and $200 for Scale. Paying yearly gets you 12 months for the price of 10.

TierMonthlyUsage vs GoUsage per dollar vs Go
Go$221x1.00x
Explore$553x1.20x
Build$1327.5x1.25x
Scale$20011.5x1.27x

M4 is on every tier. On Go, Explore and Build, M4 counts only toward the weekly limit and skips the 5-hour limit that M3.1 Flash still uses. Scale has no 5-hour limit on anything. MiniMax doesn't say how many tokens a Go week holds, so I can't turn these tiers into sessions. The M Plan API key is different from a pay-as-you-go key, and it works in Claude Code, Codex, Cursor, OpenCode and Hermes Agent.

The launch post adds a limited-time double off-peak bonus in MiniMax Code, its own agent app. The M Plan page describes it as 0.5x quota use off-peak on text models. That applies only inside MiniMax Code, not through the API key.

FAQ

Can I run MiniMax M4 locally yet? No. MiniMax says it will release the weights after internal and third-party safety evaluations, and hopes to do that "within the next few weeks". When it does, the AI VRAM Calculator can size it. MiniMax says the new MSA2 attention cuts KV cache per token to a quarter of the previous version.

Is M4 cheaper than M3 for any workload? Only on cache reads, $0.05 against $0.06. A workload that is almost entirely cached prefix with tiny output comes close to break-even. Everything else costs more on M4.

Does MiniMax charge for cache writes? No separate charge. The first pass of a prefix bills at the normal $0.80 input rate.

Sources

  • MiniMax, "MiniMax M4: The Intelligence Frontier Under Compute Constraints" (minimax.io/blog/m4, read 4 December 2026): parameters, context, MSA2 KV cache claim, API prices, open-weights timing, off-peak bonus.
  • MiniMax, Pricing Overview (platform.minimax.io/docs/pricing/overview, read 4 December 2026): M4, M3 and M3.1 Flash rates, M3 legacy discount and 512K tier.
  • MiniMax, Prompt Caching (platform.minimax.io/docs/api-reference/text-prompt-caching): billing formula, prefix order.
  • MiniMax, Anthropic API compatibility and Tool Use & Interleaved Thinking guides (platform.minimax.io/docs, read 4 December 2026): thinking always on, effort levels and default, returning thinking blocks.
  • MiniMax, M Plan Claude Code and Codex guides, M Plan introduction and Token Plan notice (platform.minimax.io/docs/m-plan, read 4 December 2026): settings.json, effort behaviour, 512K ProgramBench figures, tiers and limits.
  • MiniMax, M Plan page (minimax.io/m-plan, read 4 December 2026): tier prices.
  • Release date from MiniMax's model release notes (3 December 2026). Session totals, monthly figures and ratios are calculated by ToolMintX from the official rates.

Tools In This Article

Browser-based, no sign-up. Try them while the topic is fresh.

More From ToolMintX

Other Blog Posts