Calling the MiniMax M4 API works like this: right now it only runs through the official API — the weights have not been released, so nothing runs locally. The call itself is not hard: the model ID is MiniMax-M4, and pay-as-you-go pricing is $0.80 per million input tokens and $3.10 per million output tokens.
Three ways in — pick the right one first
The provider lists three routes: the MiniMax API, the M Plan subscription, and MiniMax Code. If you only want the interface, use the MiniMax API; if you already write code in MiniMax Code, select M4 there; M Plan is the subscription route. Two calling styles are supported: the officially recommended Anthropic-compatible style, and the OpenAI-compatible style also works — the model ID is MiniMax-M4 in both.
How the price is calculated
International pay-as-you-go: $0.80 input, $3.10 output, $0.05 cache read per million tokens; on the China platform it is ¥5.00 input, ¥20.00 output and ¥0.30 cache read. Reasoning is on by default and cannot be switched off; thinking depth is set with effort, five levels from low to max, with max as the default. The higher the level, the longer the model thinks, the more output tokens it produces, and the larger the bill. When estimating cost, do not look only at the input price: for long reasoning tasks the output is the big item.
What the missing weights mean
The official line is that the weights will follow, after internal and third-party safety reviews, hopefully within the next few weeks. Until then M4 can only be used through official channels — no local deployment, no self-hosting. Even once the weights appear, do not rush them into production: first check whether they are the full weights or a restricted version, and read the licence.
Q: How much more expensive is M4 than M3.1-Flash?
A: Input $0.80 versus $0.15, output $3.10 versus $0.60 — M4 costs about five times as much, so split tasks between the two models by difficulty.