MiniMax M4 is a flagship multimodal reasoning model that can interpret images, write code and call tools. Three figures describe different parts of it:
2.74 trillion total parameters,
66 billion active parameters per token and a
one-million-token context window. The first two describe the model itself. The third tells you how much source code, tool output and conversation history can fit in a request.
MiniMax model specifications
Which M4 specs matter in practice?
Both M4 and M3.1 Flash have a one-million-token context window and support adjustable reasoning depth.
Read the published benchmark results and their test conditions.
| MiniMax M4 | API |
|---|
| Input | Text, images and video |
| Context window | 1,000,000 Token |
| Maximum output | 262,144 Token |
In EvoLink Chat Completions, M4 accepts text, images and video as input. Use the model to interpret footage or draft code for a renderer. The text API returns the generated response, and the rendering tool produces the video or 3D artifact.
API reference
How does M4 carry a coding task across several steps?
One developer in an early-access thread asked for a project that would take over an hour. Duration alone leaves out a more revealing moment: what happens after the first test fails? MiniMax documents a loop in which M4 requests a test, the client runs it, and the model uses the resulting log to decide which file to inspect next. If you build the agent yourself, preserve the complete assistant message and append the matching tool result. Keeping only the visible text drops the record of the call.
Developer discussion ·
MiniMax tool-use guide
What does a long coding task look like?
Imagine a catalog that shows no results when a shopper changes the filter on page three. The URL still contains the old page number. Give the agent the failing steps, a screenshot, the filter component, the URL-state code and the failing test. Ask it to trace the page number from the browser address to the request before it edits anything.
A convincing repair resets a new search to page one and restores the old filter and page when the shopper presses Back. Ask the agent to run both checks and show the diff. The screenshot records the symptom, the source explains how it arose, and the browser test tells you whether the change fixed it. This is a task you can reproduce on your own project.
Can M4 make a game or a 3D prototype?
A Claude Code user gave a beta model labeled
M78 and Opus 5.5 the same prompt for a Three.js tea party with clickable objects and controls to shrink or grow the character. The author shared the prompt and recordings of both runs. It is an example of a model writing a program someone can interact with. It covers one task, and the public M4 guide does not identify that beta checkpoint as the released model.
Original demo and prompt
For a lamp configurator, give M4 a reference image and ask for a scene with touch rotation and two selectable materials. The model can write scene and interaction code. Your renderer draws the lamp, and a browser lets you rotate it and see whether switching materials preserves the camera angle. A video of the result can hide a broken control. Try the control in the running prototype.
M4 access and weights
As of December 3, MiniMax lists M4 in its hosted products and describes the downloadable weights as a later release. If your deployment requires local inference, check the publisher’s model page for weights and license terms before reserving hardware.
MiniMax model guide
Where can you try MiniMax M4?
MiniMax lists hosted access through MiniMax Code, M Plan and its API. If you want to try the task above, choose an entry point that can read your files and run your checks.
Where to use MiniMax M4