Technical Specifications of MiniMax M4
| Specification | Details |
|---|---|
| Model name | MiniMax M4 |
| Model ID (MiniMax API) | MiniMax-M4 |
| Provider | MiniMax |
| Model architecture | Mixture of Experts (MoE) |
| Total parameters | 2.74 trillion |
| Active parameters | 66 billion per token |
| Context window | 1,000,000 tokens |
| Input modality | Natively multimodal |
| Output modality | Text and code generation |
| Attention architecture | MiniMax Sparse Attention 2 (MSA2) |
| KV-cache system | MFlashKV |
| Reinforcement learning | Large-scale RL across 28 specialist domains |
| Model availability | API available; weights release announced as forthcoming |
| API compatibility | Anthropic-compatible and OpenAI-compatible interfaces |
Important technical notes:
- The 1-million-token limit refers to the combined input and output token budget, according to MiniMax's API documentation.
- M4 activates 66 billion parameters from its 2.74-trillion-parameter architecture for each token.
- The technical report describes an open-weight model, but the GitHub repository currently says that the weights will be released soon. Do not describe downloadable weights as already available.
- The public API supports both Anthropic SDK and OpenAI SDK integration.
What Is MiniMax M4?
MiniMax M4 is a next-generation general-purpose AI model designed to handle complex reasoning, software engineering, autonomous agents, and multimodal tasks. Unlike conventional dense models that activate all parameters during inference, M4 uses a Mixture-of-Experts architecture that activates a smaller subset of its parameters for each token.
Its development focuses on overcoming two major challenges in large-scale AI systems: computational efficiency and memory consumption.
MiniMax introduces two important technologies:
- MSA2 (MiniMax Sparse Attention 2): A sparse attention mechanism that combines KV-sharing Multi-Query Attention, fine-grained block-sparse attention, compressed multi-head indexing, and two-layer lookahead index prediction.
- MFlashKV: A KV-cache management system that moves most cache blocks to SSD storage while keeping frequently accessed blocks and indexes in high-bandwidth memory (HBM).
Together, these technologies reduce KV-cache requirements and improve long-context inference efficiency.
MiniMax positions M4 as a model capable of supporting long-running engineering tasks, domain-specific research, and complex agent workflows rather than simply generating conversational responses.
Main Features of MiniMax M4
1. 1-Million-Token Long-Context Processing
M4 supports a 1-million-token context window, making it suitable for processing large codebases, lengthy technical documentation, extensive business records, and complex multi-stage conversations. This capacity is particularly useful for applications that need to maintain context across long-running agent sessions.
2. Advanced Agentic Coding and Software Engineering
M4 is designed to handle complex software engineering workflows, including multi-file development, debugging, testing, and long-horizon coding tasks.
MiniMax demonstrated M4 building a desktop web browser from scratch over a 24-hour engineering task. The demonstration involved more than 4,000 tool calls and approximately 120,000 lines of Rust code, including HTML parsing, CSS layout, SVG rendering, and a JavaScript engine.
This is a company demonstration rather than an independently reproduced benchmark, but it illustrates the model's intended engineering capabilities.
3. Native Multimodal Intelligence
M4 is designed as a natively multimodal model rather than a text-only system. MiniMax highlights applications involving visual understanding, 3D modeling, game development, and video production.
Its multimodal capabilities make it relevant to workflows where AI needs to interpret visual information and use code to create or manipulate complex digital assets.
4. MSA2 Sparse Attention Architecture
MSA2 is one of M4's most important architectural innovations.
According to MiniMax, MSA2 reduces per-token KV-cache requirements by 4× compared with its previous architecture. It also increases prefill throughput by 4.48× and decoding throughput by 8× in the company's reported comparisons.
These improvements are designed to make extremely long-context inference more practical.
5. MFlashKV for Memory-Efficient Inference
MFlashKV complements MSA2 by offloading most KV-cache data to SSD storage instead of keeping everything in HBM.
Its lookahead mechanism overlaps cache-index computation and data loading with preceding-layer computation. This reduces dependence on expensive high-bandwidth memory without introducing additional overhead in MiniMax's reported design.
6. Reinforcement Learning and Specialized Domain Expertise
MiniMax devoted computing resources equivalent to 20% of M4's pre-training compute to reinforcement learning.
The company trained specialist models across 28 domains and consolidated their capabilities into a unified model through multi-teacher on-policy distillation.
This approach targets stronger generalization across coding, finance, business, chip design, and other specialized tasks.
MiniMax M4 Benchmark Performance
MiniMax's technical report presents results across coding, agentic workflows, financial tasks, post-training, and design benchmarks.
The following results are taken from the company's published benchmark overview.
| Benchmark | MiniMax M4 | Evaluation focus |
|---|---|---|
| FrontierCode-AA 2.0 | 33.0 | Advanced coding |
| Code Arena (WebDev) | 1,725 | Web development |
| Agent Arena | 1,194 | Agent performance |
| Posttrain Bench v1.2 | 38.2 | Post-training capabilities |
| Finance Agent v2.1 | 66.7 | Financial workflows |
| Design Arena (HTML) | 1,440 | HTML and web design |
Source: MiniMax M4 official benchmark overview. Scores are benchmark-specific and should not be compared across different evaluation systems.
How Does MiniMax M4 Compare with Other Frontier Models?
Selected results from MiniMax's published benchmark charts:
| Benchmark | MiniMax M4 | Kimi K3.1 Pro | Claude Fable 5.2 | GPT-6.2 Sol |
|---|---|---|---|---|
| FrontierCode-AA 2.0 | 33.0 | 25.5 | 48.8 | 44.4 |
| Posttrain Bench v1.2 | 38.2 | 36.5 | 44.6 | — |
| Code Arena (WebDev) | 1,725 | 1,682 | 1,819 | 1,752 |
| Agent Arena | 1,194 | 1,146 | 1,433 | 1,217 |
Source: MiniMax's benchmark charts. — indicates a value not displayed in the selected comparison. These are vendor-published results, not a unified independent evaluation.
What do these results indicate?
- Coding: M4 scores 33.0 on FrontierCode-AA 2.0, ahead of the two selected open-weight competitors but behind the selected proprietary models.
- Web development: Its Code Arena score of 1,725 is competitive with the selected frontier models, although Claude Fable 5.2 scores higher.
- Agentic tasks: M4 achieves 1,194 on Agent Arena, suggesting room for improvement against the strongest proprietary alternatives.
- Post-training: Its 38.2 score indicates meaningful post-training capabilities, although it remains below the selected Claude Fable 5.2 result.
The overall takeaway is that M4 is a competitive open-weight flagship, but its results do not establish universal superiority over proprietary frontier models.
Representative Use Cases of MiniMax M4
- Repository-Scale Software Engineering: Analyze large codebases, implement multi-file changes, debug complex dependencies, and run iterative testing workflows.
- Autonomous AI Agents: Build agents that execute multi-step tasks, interact with external tools, and maintain context across extended workflows.
- Financial Research and Analysis: Support financial research, business analysis, data interpretation, and structured financial workflows.
- 3D Modeling and Game Development: Generate code-driven 3D environments, interactive games, rendering pipelines, and procedural assets.
- Enterprise Knowledge Processing: Analyze extensive documentation, technical records, and business information within a long-context workflow.
- Multimodal Creative Production: Support workflows involving visual understanding, video production, animation, and programmatic content creation.
Limitations of MiniMax M4
- Benchmark performance varies: M4 performs competitively against open-weight models, but selected proprietary models achieve higher scores on several coding and agent benchmarks.
- Weights are not yet downloadable: MiniMax has announced an open-weight release, but its GitHub repository currently says the weights will be released soon.
- Hardware requirements: Its 2.74T total parameter architecture creates substantial infrastructure demands for self-hosting, despite its sparse activation and memory optimizations.
- API specifications require further verification: The public API overview confirms the model and context window, but does not provide a complete public specification of all M4-specific request parameters and output limits.
- Cybersecurity restrictions: MiniMax says certain cybersecurity capabilities have been attenuated in the public general-purpose release. A dedicated Cyber edition is planned for compliant research institutions.
How to Access MiniMax M4 API through CometAPI
Step 1: Create a MiniMax account
Visit CometAPI Platform and register for a developer account.
Step 2: Generate an API key
Navigate to API Keys and create a new secret key. Keep the key secure because it authenticates your API requests.
Step 3: Configure the API endpoint
MiniMax supports Anthropic-compatible and OpenAI-compatible API integration. You can use the corresponding SDK and configure the model identifier as:
MiniMax-M4
Use the CometAPI-compatible endpoint and your API key to integrate the model into your application.
CometAPI's existing OpenAI-compatible base URL is https://api.cometapi.com/v1.