In an official announcement dated December 4, 2026, MiniMax said it has begun offering a new flagship AI model, "MiniMax M4." Its context window is 1 million tokens, the same as the previous-generation M3, but the architecture for processing long contexts efficiently has been improved. The model prefetches from SSD the portion of the data used to refer back to past tokens (the KV cache) that later computations will need. This reduces the use of the AI accelerator's high-speed memory and makes it easier to process several long-context requests at the same time.

Compared with the previous-generation fast, low-cost model "M3.1 Flash," however, third-party evaluations show higher performance but also a substantially higher processing cost per task. Whether moving to M4 is worthwhile depends on how performance gains and costs balance out in actual use.

AD

A new flagship model that keeps the 1-million-token context window

The previous-generation M3, which MiniMax announced on June 1, had a 1-million-token context window and also supported image and video input. M4 keeps the native multimodal design, in which the model itself processes text and visual information. It is available through the API, the flat-rate "M Plan" subscription, and the development tool "MiniMax Code." The announcement gives no details on input and output limits for each access route or on supported image and video formats.

M4 has 2.74 trillion total parameters, of which 66 billion are active when processing one token. According to MiniMax's technical report, the 68-layer model uses a Mixture of Experts (MoE) architecture that selects the experts that perform computation according to the input. When processing text, each MoE layer selects 4 of 384 experts for each token and also uses one shared expert. This limits the parameters used in each token's computation while maintaining the scale of the model as a whole.

Moonshot AI's Kimi K3.1 Pro also has a 1-million-token context window and a total of 2.8 trillion parameters, close to M4. The number of parameters active when processing one token, however, is 104 billion for Kimi and 66 billion for M4. Total parameters indicate the scale of the model when it is held in full, while active parameters indicate the scale of the model used in each token's computation.

MiniMax says it will release M4's trained parameters (weights) later in its official GitHub repository. MiniMax explained that it aims to release them within a few weeks, after internal and third-party safety evaluations. The specific release date, the license and the hardware requirements for running the model in one's own environment have not been announced.

Prefetching the needed parts of the KV cache from SSD

When an AI model generates the next token, it decides which parts of the input text and of what it has generated so far to refer to. The "KV cache," which stores the keys and values computed from past tokens, is used repeatedly in this attention computation. Keys are used to evaluate how relevant past tokens are to the new token, and values relate to the information drawn from past tokens. When several long-context requests are processed at once, each request's KV cache accumulates and squeezes the free capacity of the high-bandwidth memory (HBM) in the AI accelerator.

M3 used a method called "MiniMax Sparse Attention (MSA)," which narrowed the attention computation by selecting which blocks of past tokens to refer to. In M4's "MSA2," the blocks to refer to are selected at an earlier stage. According to the technical report, past tokens are divided into blocks of 16 tokens, and 128 blocks are chosen per token for the main attention computation. In the index that identifies the blocks to refer to, four consecutive keys are combined and stored as one, cutting storage to a quarter, and as a rule the blocks needed two layers ahead are selected in an earlier layer.

In MSA2's attention computation, each of 128 query heads evaluates relevance to past tokens, while a single KV head holds the keys and values and is shared. According to MiniMax, these changes reduced the KV cache capacity needed per token to a quarter of that of the previous method. It reduces not only the index that identifies the references but also the capacity of the data used in the actual attention computation.

Because the blocks to be referenced can be identified in advance, SSDs can be used as the storage location for the KV cache. In configurations that use SSDs, the KV cache management system "MFlashKV" stores on the SSD the KV cache for each request's entire history, while keeping the index, the blocks at the start and the most recent part of the context, and frequently referenced blocks in HBM. When the KV cache is stored in 8-bit format, the data for 16 tokens fits in a 4 KiB SSD page.

The GPU asynchronously reads from the SSD those selected blocks that are not in HBM, and advances the computation of earlier layers in the meantime. Reading data and computing thus run in parallel, which keeps down the wait times that come with SSD access. If a read does not finish by the time the earlier layer's computation is complete, subsequent computation waits until the needed data arrives.

AD

Attention throughput during generation is 8 times that of the previous method

According to Figure 6 of the technical report, the throughput of attention computation run in 8-bit floating point (FP8) format was 4.48 times that of the previous MSA during input processing (Prefill) and 8.00 times during generation (Decode). This is a measurement of how much effective computation can be processed per unit time under each method's head configuration. What was measured is the part that runs the attention computation after the blocks to refer to have been determined, which is different from the inference speed of the model as a whole.

For the inference system as a whole, which processes requests from multiple users, another measurement appears in Figure 1 of the same report. On Huawei's "Ascend 950DT" AI accelerator, under a condition of 100 tokens per second generated per user, it recorded a total generation throughput of 1,589 tokens per second per accelerator. MiniMax explains that this is roughly three times that of Kimi K3.1 running on the NVIDIA GB300.

The competing model's figures are taken from SemiAnalysis's InferenceX, and the combinations of model, accelerator and inference software differ. HBM capacity also differs: 144 GB for the Ascend 950DT versus 288 GB for the GB300. This comparison evaluates how many tokens each accelerator can generate per unit time for multiple users when the output speed per user is held equal.

Performance gaps with competing models differ across coding, PC operation and finance

In Table 2 of the technical report, MiniMax grouped M4, whose weights it plans to release, with competing models whose weights are already public and compared them. In this group, M4 recorded the top score in 27 of the 30 listed evaluations. On tasks such as running commands in a terminal, however, Kimi K3.1 Pro outperforms M4.

Evaluation M4 Kimi K3.1 Pro DeepSeek-V4.1-Flash-1017 GLM-5.3 Highest listed score among models without public weights
FrontierCode-AA 2.0 33.0 25.5 28.2 21.6 48.8 (Claude Fable 5.2)
SWE-Marathon v1.2 44.0 39.2 29.2 32.9 73.3 (Claude Fable 5.2)
Terminal Bench 4.1 56.6 68.2 32.3 40.9 65.2 (Gemini 4 Neon)
OSWorld v2.1 80.0 79.6 69.3 Not reported 89.3 (Claude Fable 5.2)
Razavi-Bench 94.3 84.8 77.3 Not reported 97.7 (Claude Opus 5.5)
Frontier Finance 64.1 56.8 57.4 Not reported 66.6 (Gemini 4 Neon)

Source: Table 2 of MiniMax's technical report. M4 was evaluated at maximum reasoning effort (max). The listed values include MiniMax's internal evaluations, figures published by other companies and third-party evaluation results, and evaluation conditions differ by test.

On FrontierCode-AA 2.0 and SWE-Marathon v1.2, which evaluate coding ability, M4 outperformed the competing models with public weights listed in the table. On SWE-Marathon v1.2, which deals with software development tasks, however, M4's 44.0 still trails Claude Fable 5.2's 73.3 by a wide margin.

On Terminal Bench 4.1, which evaluates the ability to work by running commands in a terminal, Kimi K3.1 Pro outperformed both M4 and Gemini 4 Neon and ranked first among all the listed models. Artificial Analysis, which evaluated the competing models, measured them by pairing Gemini with the Antigravity CLI and Kimi and other competing models with mini-swe-agent.

The other two evaluations where Kimi beat M4 are PMPP-Hard, which evaluates the ability to develop parallel programs, and GDPx v1.0, which deals with real-world work tasks. On PMPP-Hard, MiniMax ran all models in the same Claude Code environment and ran each task once. Under those conditions M4 recorded 85.5 and Kimi 86.9, and Claude Opus 5.5 also scored 86.9.

On OSWorld v2.1, which evaluates PC operation ability, M4 and Kimi recorded nearly equal scores. Claude Fable 5.2, which recorded the highest score in the table, was evaluated on the offline task set, while M4 was evaluated on the full task set. On Razavi-Bench, which evaluates analog circuit design, M4 far outperformed Kimi. On Frontier Finance, a finance-domain evaluation, M4 also beat Claude Opus 5.5's 57.2 and GPT-6.2 Sol's 47.0 but fell short of Gemini 4 Neon. Because model rankings shift from one evaluation to the next, the number of evaluations in which a model scored highest makes it hard to grasp performance differences for individual uses.

In its official announcement, MiniMax explains that it used reinforcement learning to train specialist models across 28 domains and merged the capabilities each acquired into a single M4. The training targets are wide-ranging, including coding, circuit design and finance. The M4 scores in the comparison table are for the maximum reasoning-effort setting, so in actual use one must consider not only performance but also the number of tokens and the cost needed to process a task.

AD

Higher performance than the previous generation, but cost per task is about 3.56 times higher

According to Vals AI's public ranking as of December 4, on "Vals Index v2.2," a composite metric that aggregates multiple benchmarks with weighting, M4 at maximum reasoning effort recorded 61.65% and M3.1 Flash recorded 51.75%. M4 beat the previous-generation fast model by 9.90 points, but the processing cost per task recorded in the same evaluation rose about 3.56 times, from $0.66 for M3.1 Flash to $2.35 for M4. The improvement in score is an aggregate over multiple tasks, and the degree of improvement in individual jobs differs.

M3.1 Flash, announced on October 19, is a model MiniMax developed with an emphasis on fast processing and low cost. In its official API pricing table, the price for reading input data from the cache for reuse in later requests is set separately from the regular input price. In addition, M3's Standard plan charges different prices depending on the number of input tokens.

Model / condition Regular input Output Input cache read
M4 0.80 3.10 0.05
M3.1 Flash 0.15 0.60 0.015
M3 Standard (input of 512,000 tokens or less) 0.30 1.20 0.06
M3 Standard (input over 512,000 tokens) 0.60 2.40 0.12

Units are US dollars per 1 million tokens. M3 Standard prices are the listed prices after a 50% discount.

M4's regular input and output prices are both a little over five times those of M3.1 Flash. Its input cache read price, on the other hand, is lower than in either of M3 Standard's price tiers. Work that repeatedly refers to the same material and work that generates long text or code each time have different cost breakdowns, so the actual processing cost is determined by the unit price of each item and the number of tokens consumed.

Furthermore, even for the same M4, the performance gain and the rate of increase in output tokens when reasoning effort is raised differ greatly by task. According to Figure 28 of the technical report, when reasoning effort was raised from minimum to maximum, the score on the internal coding evaluation "Code++" rose from 32.0 to 50.3, with output tokens per trial rising 1.5 times. On OSWorld v2.1 the score rose from 69.4 to 80.0, with output tokens rising 1.9 times. On Frontier Finance, by contrast, the score rose from 56.7 to 64.1, but output tokens rose 5.7 times.

In the coding evaluation, a large score improvement came with fewer additional tokens than in the finance evaluation. Whether choosing maximum reasoning effort is worthwhile in practice comes down to weighing the tasks that can be solved only by raising reasoning effort against the additional processing cost they require.