Where it comes from
MiniMax is a Shanghai-based AI company that also makes the Hailuo video models and the Speech voice models. M4 follows MiniMax M3 and M3.1 Flash as its main text model.
MiniMax describes M4 as built under compute constraints: it says the model cuts the KV cache per token by 4×, and that at 100 output tokens per second, M4 on Huawei’s 950DT delivers 3× the throughput of Kimi K3.1 on NVIDIA’s GB300. These are MiniMax’s own figures.
What it is good at
MiniMax shows M4 on long coding and agent tasks. Its announcement reports a score of 38.2 on Posttrain Bench v1.2 and demos of code-built 3D scenes and a browser that passes the Acid3 test. Independent benchmarks were not yet available when this guide was written.
- Multi-file coding, refactors and agent loops with tool calls.
- Long documents and repositories: up to 1M tokens of context.
- Questions about screenshots, diagrams, charts and photos.
- Step-by-step reasoning on math, planning and analysis.
How to use it
MiniMax serves M4 through its own API, its M Plan subscription and MiniMax Code. You can also call it through OpenAI-compatible APIs such as this one, which work with the OpenAI SDKs and coding agents.
- Create a key. Sign in on minimaxm4.io and create an API key.
- Add balance. Pay $5 once; requests are billed by the tokens they use.
- Connect. Set the base URL https://minimaxm4.io/v1 in your SDK or editor and use the model minimax-m4.