Skip to content
ExplainedCode

MiniMax pricing: M4 lands on OpenRouter with an always-thinking catch

MiniMax pricing puts M4 at $0.80 input and $3.10 output per million tokens. Mandatory reasoning and cache hits decide what your agent really costs.

By DC Team · · 5 min read

MiniMax and OpenRouter logos above the words THIS AI ALWAYS THINKS BEFORE ANSWERING. A thought bubble flows into a reply bubble beside a dollar symbol.

MiniMax pricing for its new M4 model looks straightforward: $0.80 per million input tokens and $3.10 per million output tokens on OpenRouter's model page. The catch is in the same listing: reasoning is always on and cannot be disabled. Your bill can include thinking that never appears in the final answer. For a coding agent, the useful comparison is the cost of a completed, tested change, including every attempt.

This is a real release, rather than another model-name rumor. MiniMax's release notes date M4 to December 3, 2026. Its own API pricing page confirms the two headline rates and a third number worth checking: cached input costs $0.05 per million tokens. That discount can materially change the economics of an agent repeatedly reading the same project context.

MiniMax pricing: three rates, two practical catches

Here are the published M4 rates, checked December 3. MiniMax's direct API price table and OpenRouter's live catalog agree on these token prices. These are API consumption rates, not a promise about subscription allowances.

Token categoryPrice per million tokensWhat to count
Uncached input$0.80Input tokens without a cache-read discount
Cached input$0.05Input actually reported as a cache hit
Output$3.10Billed completion tokens, including reasoning

The first catch is that output includes more than the answer you read. OpenRouter's reasoning documentation says thinking tokens are charged as output. Setting reasoning.exclude: true in Chat Completions hides the thinking from the response; it does not stop that computation or its charge.

The second is that the cache rate applies to hits. A spreadsheet that discounts the entire prompt before observing any cached tokens can dramatically understate a cold request's cost. OpenRouter's caching guide describes cache usage reporting, including usage.prompt_tokens_details.cached_tokens. Use that reported count when reconciling an actual run.

Our reading: this is a model worth evaluating for difficult coding work. Its launch price alone is insufficient evidence to replace a cheaper routine classifier or a latency-sensitive autocomplete route.

The default deserves a configuration review

We fetched OpenRouter's public models API during reporting. M4's entry marked reasoning as mandatory, listed max, xhigh, high, medium, and low as supported efforts, and set the default to max. That is more useful operational information than a general claim that the model supports reasoning.

An application that changes only the model identifier inherits that default unless its request supplies an effort setting. Audit the request your client actually sends. A user interface labeled “thinking off” is misleading if the selected endpoint requires thinking. Do not forward enabled: false or an effort of none to this model.

For an initial comparison, explicitly test low against the default on your own tasks. Lower effort is an experiment, not a guarantee of lower total spending: if it produces more failed edits or extra attempts, any saving per request can disappear. Record whether each run passes the same tests and how long it takes to reach an acceptable result.

We verified the catalog configuration and the calculations below. We did not run a paid M4 inference benchmark, so this article makes no claim about its observed speed, coding accuracy, or typical reasoning length.

The same visible answer can have a different bill

Consider a hypothetical request with 100,000 input tokens and a 2,000-token visible answer. Keep those quantities fixed, then vary cache hits and thinking. These are deliberately chosen scenarios, not measurements of M4's behavior.

The calculation uses the published rates:

Estimated token cost in USD =
  (uncached_input * 0.80
   + cached_input * 0.05
   + (visible_output + reasoning_output) * 3.10) / 1000000
ScenarioUncached inputCached inputReasoning tokensEstimated cost
Cold input, shorter thinking100,00002,000$0.0924
Cold input, longer thinking100,000020,000$0.1482
90% cached, shorter thinking10,00090,0002,000$0.0249
90% cached, longer thinking10,00090,00020,000$0.0807

We checked each row arithmetically. With cold input, the extra 18,000 reasoning tokens add $0.0558, about a 60% increase in this example. With 90% of input cached, that same addition makes the request about 3.24 times as expensive. A strong cache hit rate can make output behavior the larger cost variable.

At 10,000 identical requests, the two cached scenarios would total $249 and $807 in token charges. The $558 difference buys no additional visible answer tokens in this example. It might buy a better answer, but only an evaluation can establish that. These estimates exclude taxes, credit-purchase charges, external tools, and execution infrastructure.

For real responses, use the provider's billed completion count. Do not add reasoning tokens again if they are already included in usage.completion_tokens. The split into visible and reasoning output above exists to explain the calculation, not to replace usage accounting.

Audit the route before spending

This copyable check uses Python's standard library, needs no API key, and makes no inference request. We ran it against the live catalog. It prints M4's current rates, context limit, and reasoning settings so you can compare them with a saved configuration before rollout.

import json
from decimal import Decimal
from urllib.request import urlopen

with urlopen("https://openrouter.ai/api/v1/models", timeout=30) as response:
    models = json.load(response)["data"]

model = next(m for m in models if m["id"] == "minimax/minimax-m4")
print("Model:", model["id"])
print("Context:", model["context_length"])
for field in ("prompt", "completion", "input_cache_read"):
    value = model["pricing"].get(field)
    print(field, "USD/M:",
          Decimal(value) * 1_000_000 if value is not None else "not listed")
print("Reasoning:", json.dumps(model.get("reasoning", {}), indent=2))

Our snapshot returned 1,000,000 tokens of context. Treat that as a capacity limit when designing retrieval, not a reason to send your entire repository on every turn. At the listed uncached input rate, one million input tokens alone would cost $0.80 before any generation. Repeated context becomes consequential across a long run.

Also inspect the model's provider endpoints. At our check, the response listed MiniMax as the provider. A gateway account does not by itself establish multiple independent serving routes for this model. Verify which endpoints satisfy your application's routing requirements before counting on provider failover.

What to do

Start with a small evaluation set drawn from work you can score: a regression with an existing failing test, a bounded refactor, and a feature with explicit acceptance checks. Give your current model and M4 the same starting repository and tool access. Compare total charges across every request, including unsuccessful attempts, against accepted results.

Log prompt tokens, cached tokens, completion tokens, reported reasoning tokens when available, finish reason, request cost, and elapsed time. Keep the model identifier and effort setting alongside those records. An aggregate dollar total without those settings makes it hard to explain why the next run differs.

Set a per-run spending limit and a maximum number of agent turns before unattended testing. Watch for truncated responses: OpenRouter documents that reasoning can consume a request's output budget, leaving an empty or incomplete visible answer that is still billed. Increasing the limit can fix truncation while allowing more spending, so review both outcomes together.

Finally, verify the quality claim separately from the price. MiniMax's launch post presents M4 as a million-context model for demanding work and showcases software and creative tasks. Those are vendor demonstrations. Promote the route when it completes your own acceptance tests at an acceptable total cost, with the reasoning and caching settings you intend to ship.