MiniMax’s M4 is available through the company’s API, M Plan and MiniMax Code, bringing a 1-million-token context window to a mixture-of-experts model with 2.74 trillion total parameters and 66 billion active parameters per token. MiniMax says it will release the weights after internal and third-party safety evaluations, so launch access means hosted services, not a downloadable model.
Vercel confirmed M4 availability through AI Gateway on December 3, 2026. MiniMax’s primary announcement describes a flagship built around compute constraints: reduce the memory needed to serve long contexts, then use more of the available processing capacity across different chip platforms.
That makes M4 interesting for two separate reasons. Developers can evaluate a large multimodal reasoning model now. Infrastructure teams also get a published account of how sparse attention and SSD-backed memory could make unusually large models practical on hardware with limited high-bandwidth memory.
Where Developers Can Use MiniMax M4 Now
MiniMax M4’s 1-million-token context window is available through hosted access, including MiniMax’s API, M Plan and MiniMax Code. Vercel also exposes the model through AI Gateway under the identifier minimax/minimax-m4.
The launch offers three direct access points:
- MiniMax API: programmatic access for applications and agent workflows.
- M Plan: access through MiniMax’s plan-based offering.
- MiniMax Code: access within the company’s coding product.
Those access routes should not be confused with a weight release. MiniMax’s stated plan is to publish weights after safety evaluations; developers cannot treat that promise as an available self-hosting option.
Vercel calls M4 an open-weight model in its announcement, but MiniMax’s release condition is the important qualification for deployment planning. Teams requiring downloadable weights today should wait for the actual files and accompanying release terms.
For developers already using Vercel’s AI SDK, its published integration example uses streamText:
import { streamText } from 'ai';
const result = streamText({
model: 'minimax/minimax-m4',
prompt: 'Write a TypeScript function that debounces another function.',
});
for await (const text of result.textStream) {
process.stdout.write(text);
}
The example streams generated text to standard output in a configured AI Gateway environment. It is a usage example, not a test result.
Vercel also says M4-specific Zero Data Retention support will become available as more providers support the model. Its gateway’s general privacy features should therefore not be assumed to apply to M4 at launch.
MSA2 and MFlashKV Target the Long-Context Memory Bill
MiniMax M4 uses MSA2 sparse attention in all 68 attention layers, with a claimed fourfold reduction in per-token KV-cache requirements compared with the previous version. Its companion system, MFlashKV, moves most KV-cache blocks to SSDs while retaining frequently needed blocks and indices in high-bandwidth memory.
The KV cache stores attention keys and values from previously processed tokens. Keeping those intermediate representations avoids recomputing them during generation, but the cache grows as context length increases. At a 1-million-token window, that memory burden becomes a central serving constraint.
MiniMax’s MSA2 architecture description combines:
- KV-sharing Multi-Query Attention, which reduces duplicated key/value storage.
- Fine-grained block-sparse attention, which works with selected blocks.
- Compressed multi-head indexing, used to identify relevant information.
- Two-layer lookahead index prediction, which anticipates blocks needed by later computation.
MiniMax reports 4.48× higher prefill throughput and 8× higher decoding throughput alongside the cache reduction, compared with the previous version. Prefill processes the incoming prompt; decoding generates subsequent tokens. These are vendor-reported gains, not independent measurements.

MFlashKV addresses where the remaining cache lives. HBM sits close to the accelerator and supplies data quickly, but capacity is limited. SSDs provide another storage tier, with a potential loading penalty. MiniMax says lookahead lets it overlap index calculation and SSD loading with computation in the preceding layer, avoiding additional decoding overhead.
The consequential design choice is selective residency: keep the immediately useful information in scarce HBM and stage other blocks before they are needed. That offers a plausible route to serving longer contexts without keeping the entire cache in accelerator memory. It is not evidence that arbitrary models can move their caches to SSDs without a performance penalty; the reported benefit depends on M4’s coordinated attention and serving design.
Multimodal Input, Tools and Token Pricing
MiniMax M4 accepts text and image input, supports tool calling and provides a 1-million-token context window, according to Vercel’s launch listing. MiniMax prices uncached input at $0.80 per million tokens, output at $3.10 and cached input at $0.05.
| Token category | MiniMax M4 price per 1 million tokens |
|---|---|
| Input | $0.80 |
| Output | $3.10 |
| Cached input | $0.05 |
These are MiniMax’s published API rates, not a statement of M Plan subscription terms.
Vercel says reasoning is always enabled. Lower reasoning effort reduces latency and reasoning-token usage, giving developers a tuning option without a fully non-reasoning mode. It also reports a new image encoder that produces fewer visual tokens per image, although the announcement provides no fixed conversion rate developers could use to calculate every image’s cost.
For budgeting, one million uncached input tokens plus 100,000 output tokens would cost $1.11 at the listed rates. If that same input quantity qualified entirely for cached pricing, the token total would fall to $0.36. These are arithmetic illustrations, not measured workloads or guarantees of cache eligibility.
Cached input is 16 times cheaper than uncached input. That makes repeated use of large shared prompts worth investigating, particularly for workflows that repeatedly supply the same reference material. Actual savings depend on which tokens qualify for caching and how much output the agent generates. Zeniteq’s AI model API pricing tracker provides a separate reference for monitoring model costs.
A large context window also does not guarantee reliable use of every supplied detail. Capacity, task accuracy and latency are separate evaluation questions.
Huawei and T-Head Are Central to the Efficiency Claim
MiniMax says M4 runs efficiently on Huawei’s 950DT and T-Head’s Zhenwu M890 SuperNode. Its headline comparison claims three times the throughput of Moonshot AI’s Kimi K3.1 on Nvidia’s GB300 at an output speed of 100 tokens per second.
The hardware comparison in MiniMax’s announcement gives these conditions:
| Measure | MiniMax’s reported comparison |
|---|---|
| M4 deployment | Huawei 950DT |
| Comparison deployment | Kimi K3.1 on Nvidia GB300 |
| Output-speed condition | 100 tokens per second |
| Claimed throughput advantage | 3× |
| 950DT HBM capacity relative to GB300 | 50% |
| 950DT compute relative to GB300 | 13% |
MiniMax attributes the Kimi benchmark data to SemiAnalysis. The opened evidence does not include an independently reproduced, matched deployment test.
The distinction matters because this compares two complete model-and-hardware systems, not the same model running on two accelerators. Architecture, numerical precision, batching and serving configuration can affect throughput. The result cannot isolate chip performance or establish that Huawei hardware is generally faster than Nvidia hardware.
The narrower implication is still important: a model designed around memory constraints may use available compute more effectively than a model with different serving requirements. MSA2 and MFlashKV give MiniMax’s claim a concrete technical mechanism.
For T-Head, the announcement identifies deployment support but provides no equivalent numerical comparison in the supplied evidence. Huawei’s reported result should not be transferred to T-Head by implication.
Price Comparisons Need More Than Parameter Counts
MiniMax M4’s $0.80 input and $3.10 output rates are higher than the DeepSeek v4.1 Flash rates quoted by an individual Hacker News commenter. Those competing prices are community-supplied figures, not rates verified here against DeepInfra’s own pricing page.
| Model and provider | Input per million | Output per million | Cached input per million | Evidence |
|---|---|---|---|---|
| MiniMax M4, MiniMax | $0.80 | $3.10 | $0.05 | MiniMax announcement |
| DeepSeek v4.1 Flash, DeepInfra | $0.098 | $0.294 | $0.00294 | Hacker News comment |
In the Hacker News discussion of M4’s price and serving efficiency, commenter joshheitzman supplied the DeepInfra figures. Another commenter, 0xbadcafebee, argued that M4 had about 3.6× the total parameters and 4.1×–8.3× the active compute per token, framing its higher price as reasonable for its scale.
That argument produces a lower price per unit of the commenter’s claimed active compute, but it is not a task-level price-performance result. Active parameter counts do not measure whether a model completes a coding assignment correctly, how many retries it needs or how many reasoning tokens it spends.
Other comments described M4 as cheaper than Kimi K3.1 and GLM 5.3. Without directly verified competing price schedules, those observations are insufficient for a firm price ranking.
M4 is worth evaluating for hosted coding and tool-using workflows that need text-and-image input, large prompts and inexpensive cached input. Teams requiring immediate self-hosting should skip it for now. Cost-sensitive teams should compare completed-task cost, latency and failure rates on their own workloads, rather than selecting by model size or a vendor throughput chart. Zeniteq’s AI model comparison hub offers another starting point for that shortlist.
Frequently Asked Questions
3 questions
1Are MiniMax M4’s Weights Available?
MiniMax had not released M4’s weights at announcement time. The company says publication will follow internal and third-party safety evaluations. Developers can use hosted access through its API, M Plan and MiniMax Code, plus Vercel AI Gateway, but should not plan immediate self-hosting around the promised release.
2How Much Does MiniMax M4 Cost?
MiniMax lists M4 at $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens. Those are API token rates. A workload with one million uncached input tokens and 100,000 output tokens would total $1.11, excluding any other charges.
3Does MiniMax M4 Run on Huawei and T-Head Hardware?
MiniMax reports M4 deployments on Huawei’s 950DT and T-Head’s Zhenwu M890 SuperNode. It claims a threefold throughput advantage over Kimi K3.1 on Nvidia GB300 at a 100-token-per-second output condition. That is a vendor-reported system comparison, not an independently verified ranking of the chips themselves.