minimaxm4.org

MiniMax M4 API: model ID, pricing, and setup

The platform model ID is MiniMax-M4. List price is $0.80 per 1M input tokens, $3.10 per 1M output tokens, and $0.05 per 1M cached input tokens. A call can use the 1,000,000-token context. This independent page records endpoints, effort levels, gateway names, and cost arithmetic from MiniMax, OpenRouter, Vercel, and the press notes in the source list.

Independent information site, not a MiniMax official page.

MiniMax M4 API model ID

On the MiniMax platform the ID string is MiniMax-M4. OpenRouter lists minimax/minimax-m4 and names MiniMax as the only provider, with a 1.0M context, reasoning that stays on, and native image and video understanding. Vercel AI Gateway uses the same gateway string, minimax/minimax-m4, and lists tool calling, text plus image input, a 1M context, and adjustable reasoning intensity. Coding agents named on that Vercel page include Claude Code, Codex, and Cursor. Send MiniMax-M4 when the base URL is the platform itself; send the gateway string only on that gateway.

Endpoints

Unite.AI and AI Frontier Post report an Anthropic-compatible endpoint and an OpenAI-compatible endpoint. Take the base URL from the MiniMax platform docs. No host is printed here. In the samples, YOUR_BASE_URL stands in for the documented OpenAI-compatible base, and YOUR_API_KEY stands in for a platform key. For the Python client, YOUR_BASE_URL is the base_url value that client expects. For curl, YOUR_BASE_URL is the full chat-completions URL from the same docs, so the sample does not invent a path. M3.1-Flash and M3 remain available beside this release.

MiniMax M4 API pricing

M4 sits on the current MiniMax price table next to M3.1-Flash. M3 is on the Legacy table. Rates below are per 1M tokens. The cache wording differs by row because the sources use different labels: cached input for M4, cache read for M3.1-Flash. M3 has no verified cache rate in this set, so that cell is a dash rather than a guess.

Model Input / 1M Output / 1M Cache / 1M Table
M4 $0.80 $3.10 $0.05 cached input Current
M3.1-Flash $0.15 $0.60 $0.015 cache read Current
M3 $0.60, listed permanent 50% off to $0.30 $2.40, listed permanent 50% off to $1.20 — Legacy, input up to 512K

Source: MiniMax official blog; MiniMax platform pricing overview.

MiniMax M4 API price card: $0.80 input, $3.10 output, $0.05 cached input per 1M tokens
List prices for MiniMax M4, from the platform pricing overview.

Reasoning effort

Press notes list five effort levels: low, medium, high, xhigh, and max. The default is max. Those notes say thinking cannot be turned off. OpenRouter's model page says reasoning is always on and cannot be disabled. Vercel describes the intensity as adjustable, which lines up with picking a level, not with an off switch. This fact set does not name the JSON field that carries the level, so the samples below set only model and messages.

What the request can carry

Context length is 1,000,000 tokens on the platform figures, on OpenRouter (listed as 1.0M), and on Vercel AI Gateway. Image and video understanding is an OpenRouter listing. Vercel lists text plus image input and tool calling. Those are input features stated by the gateways, not a second price.

Request examples

Both samples are OpenAI-shaped. Replace the placeholders before any real call. The Python base_url and the curl URL are different slots, as the endpoints section says, and both must come from the MiniMax platform docs.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="YOUR_BASE_URL",
)
resp = client.chat.completions.create(
    model="MiniMax-M4",
    messages=[{"role": "user", "content": "List three risks in this diff."}],
)
print(resp.choices[0].message.content)
curl "YOUR_BASE_URL" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{"model":"MiniMax-M4","messages":[{"role":"user","content":"List three risks in this diff."}]}'

Cost arithmetic

Cost is the sum of three list rates. Input cost equals input tokens divided by 1,000,000, times $0.80. Output cost equals output tokens divided by 1,000,000, times $3.10. Cached-input cost equals cached input tokens divided by 1,000,000, times $0.05. A pure arithmetic check of those rates: 1M input tokens = $0.80. 1M output tokens = $3.10. 1M cached input tokens = $0.05. Multiplying the input rate by two is still just arithmetic: 2M input tokens at $0.80 per 1M come to $1.60. That is not a sample workload.

The division by 1,000,000 converts a raw token count into millions of tokens before the dollar rate is applied. Each line of the check uses one rate and one token type, which keeps the example to arithmetic on the published table.

Price versus M3 and M3.1-Flash

The table above is the comparison. M3's published permanent 50% off applies to the $0.60 and $2.40 rates when input is at or under 512K, which is how the $0.30 and $1.20 figures are labeled. M3.1-Flash stays on the current table at $0.15 and $0.60, with cache read at $0.015. Both older models remain callable. Nothing here estimates a blended bill.

Parameter counts, MSA2, training, and the open-weight timeline are on the MiniMax M4 model page.

FAQ

What is the MiniMax M4 API model ID?

MiniMax-M4 on the MiniMax platform. OpenRouter and Vercel AI Gateway use minimax/minimax-m4.

What are the list prices per 1M tokens?

Input $0.80, output $3.10, cached input $0.05, from the MiniMax platform pricing overview and the official blog.

Can thinking be turned off?

No. Press reports and the OpenRouter page say thinking stays on. Five effort levels still apply, and the default is max.

Which base URL should the client use?

Use the OpenAI-compatible or Anthropic-compatible endpoint from the MiniMax platform docs. Hosts are not reprinted here.

How do OpenRouter and Vercel name the model?

Both list minimax/minimax-m4. OpenRouter names MiniMax as the only provider.

What does 1M input tokens cost?

1M input tokens = $0.80. The same arithmetic gives $3.10 for 1M output tokens and $0.05 for 1M cached input tokens.

How do M3 and M3.1-Flash prices compare?

M3 lists $0.60 input and $2.40 output per 1M for inputs up to 512K, with a stated permanent 50% off to $0.30 and $1.20. M3.1-Flash lists $0.15 and $0.60, and cache read at $0.015. Both remain available.