MiniMax’s M4, an open-source language model in the three-trillion-parameter class, produced a 25-second animated short by writing the code for it. In an early-access test reported by QbitAI on December 4, 2026, the model staged four shots of an airship crossing a polar landscape, from a low pass over the ice to its departure through a fjord. It also produced the sound effects and score.
The distinction matters: M4 was writing programs that render scenes, rather than generating video frames directly. In a separate pelican-themed short, the reviewer said M4 handled the Three.js modeling, narration and background music without calling a video or music generation model. Given a screen recording as a reference, it also reworked a website in the style of The Little Prince, using code to create wheat stalks, petal textures, wind and chimes.
Across more than a dozen demos, the reviewer observed output speeds of 120 tokens per second or higher. That did not always translate into a quick result: a paper-book rendition of Alice’s Adventures in Wonderland ran for nine hours, and even minor bug fixes could take more than ten minutes.
How M4 handles long inputs
In its technical report, Scaling Model Intelligence under Compute Constraints, MiniMax describes two changes aimed at the cost of running M4. Its MSA2 sparse attention architecture reduces the computation needed to process long inputs and allows more work to run in parallel. Combined with its MFlashKV and MInfer systems, it also lets M4 keep part of its key-value cache—the data reused as the model generates each new token—on ordinary SSDs rather than in scarce high-bandwidth memory. MiniMax says it can do this without discarding cache entries or sacrificing low latency.
On Chinese-designed hardware such as Huawei’s Ascend 950DT, MiniMax reported 1,589 tokens per second in aggregate throughput per chip and 100 tokens per second for one user. The company said aggregate throughput was four times that of a comparably sized model on top-end Nvidia hardware. Those figures come from MiniMax’s tests, not the reviewer’s coding demos.
API pricing
In China, M4’s API was priced at 5 yuan per million input tokens, 20 yuan per million output tokens and 0.3 yuan per million cached tokens read. International rates were $0.80, $3.10 and $0.05 per million tokens, respectively.