Back to Models

MiniMax M2

minimaxminimax/m2

MiniMax M2 is a MoE model blending frontier-level intelligence with efficient active parameters. Engineered for AI agents with strong reasoning, coding, and multilingual performance. Ideal for general-purpose chat/coding, tool use, and high-throughput inference.

MiniMax M2 is an open-weight Mixture-of-Experts (MoE) language model released in late October 2025, purpose-built for coding and agentic workflows. With 230 billion total parameters but only 10 billion activated per token, it achieves a strong balance between capability and inference efficiency β€” the same core architecture carried forward into the M2.1, M2.5, and M2.7 successors. M2 debuted as the highest-performing open-weight model on Artificial Analysis' composite intelligence benchmark at launch, with particular strengths in SWE-bench style coding evaluations and long-horizon tool-use tasks across shell, browser, retrieval, and code-runner environments.

For a TheRouter operator, M2 occupies a unique position: it is the foundational release of the M2 family, demonstrating that a 10B-active-parameter MoE could compete with frontier models on coding and agent benchmarks. While its younger siblings (M2.1, M2.5, M2.7) have incrementally improved, M2 remains relevant as a well-documented baseline β€” it was the first open-weight model to prove that sub-20B-active architectures could deliver frontier-level SWE-bench scores (69.4% Verified), BrowseComp competitiveness (44.0%), and strong GAIA text-only performance (75.7%). New agents should default to M2.5 or M2.7, but M2 is useful for cross-version regression testing, academic baselines, and deployments that match a specific known M2 behavioural profile.

Best for
  • β€’ Open-weight SWE-bench baseline β€” M2 achieved 69.4% on SWE-bench Verified at launch, topping the open-weight leaderboard and proving that 10B-active MoE architectures could compete on real-world code-repo editing tasks
  • β€’ Long-horizon agentic toolchains β€” the model plans and executes complex sequences across shell, browser, retrieval, and code runners, demonstrated by 44.0% on BrowseComp and 75.7% on GAIA (text-only)
  • β€’ Multi-language software engineering β€” 56.5% on SWE-bench Multilingual and 36.2% on Multi-SWE-Bench with claude-code scaffold, covering Rust, Java, Golang, C++, and more
  • β€’ Cost-efficient agent inference at scale β€” 10B-active MoE means faster TTFB and higher concurrent throughput vs comparably capable dense models, making it suitable for high-volume agentic workloads when priced via TheRouter
Reach for something else if
  • β€’ New coding agent projects β€” M2.1 (Dec 2025), M2.5 (Feb 2026), and M2.7 (Apr 2026) have incrementally improved; new integrations should start with M2.5 as the recommended current-generation entry point
  • β€’ Deep competition-level math β€” AIME25 at 78.0% is solid but significantly behind DeepSeek V3.2 (88.0%) or Qwen3-235B-thinking for mathematical reasoning tasks
  • β€’ Vision or multimodal tasks β€” M2 is text-in / text-out only; route multimodal requirements to doubao-seed-2.0-vision, qwen3-vl, or gpt-image-1.5
Context Length
205K
Max Output
66K
Input Priceper 1M tokens
$0.324/ 1M tokens
Output Priceper 1M tokens
$1.30/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$0.324 / 1M tokens
Output$1.30 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

Specifications

Release date2025-10-27github.com β†—verified
Architecture230B total / 10B active β€” MoE (Mixture of Experts); Transformer backbonegithub.com β†—verified
Training cutoffNot publicly disclosedunknown
LicenseOpen-weight (commercial use permitted; permissive license similar to Modified-MIT per community reports)huggingface.co β†—to verify
Supported inference backendsSGLang, vLLM, Transformers, MLX-LM, KTransformersgithub.com β†—verified
Successor (M2.1)MiniMax M2.1 (December 2025) β€” improved coding + tool use; available on TheRouter as minimax/m2.1github.com β†—verified
Latest in family (M2.7)MiniMax M2.7 (April 2026) β€” latest generation; available on TheRouter as minimax/m2.7openrouter.ai β†—verified

Benchmarks

BenchmarkDistributionScoreSource
SWE-bench Verified
OpenHands scaffold, 128k context, 100 max steps, no test-time scaling
69.4%%github.com β†—
Multi-SWE-Bench
claude-code scaffold, 300 max steps, avg 8 runs
36.2github.com β†—
SWE-bench Multilingual
claude-code scaffold, 300 max steps, avg 8 runs
56.5github.com β†—
Terminal-Bench
claude-code scaffold, avg 8 runs
46.3github.com β†—
BrowseComp
WebExplorer agent framework
44.0github.com β†—
BrowseComp-zh
WebExplorer agent, Chinese subset
48.5github.com β†—
GAIA (text only)
103-sample validation subset, WebExplorer agent
75.7%%github.com β†—
AIME25
Artificial Analysis methodology
78github.com β†—
MMLU-Pro
82github.com β†—
GPQA-Diamond
78github.com β†—
ArtifactsBench
Gemini-2.5-Pro judge, avg 3 runs
66.8github.com β†—
LiveCodeBench (LCB)
83github.com β†—
xbench-DeepSearch
72github.com β†—
HLE (w/ tools)
31.8github.com β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "minimax/m2",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

Use the standard OpenAI-style chat completion endpoint with minimax/m2 as the model id. The model supports tools and JSON mode via response_format.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"minimax/m2","messages":[{"role":"user","content":"Write a Python function to merge two sorted arrays."}]}'

More from minimax

Similar models

Cross-provider sibling models

News & changes

2025-10-27

MiniMax open-sources M2 β€” 230B MoE model built for coding and agentic workflows

MiniMax released M2, a 230B-total / 10B-active MoE language model, topping the open-weight leaderboard on Artificial Analysis at launch. The model achieved 69.4% on SWE-bench Verified, 75.7% on GAIA text-only, and competitive BrowseComp scores, using only 10B activated parameters per token for fast, cost-efficient inference. M2 was released under a permissive open-weight license allowing commercial use.

re-authored by TheRoutergithub.com/MiniMax-AI β†—
2025-12-23

MiniMax M2.1 released β€” incremental improvements for coding and agents

MiniMax released M2.1 as an incremental upgrade to the M2 family, delivering improved performance on SWE-bench Verified (74.0%), Multi-SWE-Bench (49.4%), and the new VIBE benchmark (88.6%). M2.1 maintained the same 230B / 10B-active MoE architecture with a Modified-MIT license.

re-authored by TheRoutergithub.com/MiniMax-AI β†—

Frequently asked

Is MiniMax M2 free to use for commercial applications?

Yes. M2 was released under an open-weight license that permits commercial use and self-hosting. The exact license terms are permissive (similar to Modified-MIT per community reports). Users can download the weights from Hugging Face or GitHub and deploy on their own infrastructure, or access it through TheRouter's pay-per-token API.

What context length does M2 support via TheRouter?

M2 has a 204,800-token context window on TheRouter, with a maximum output of 65,536 tokens. The model operates with 128k context for agentic evaluations (SWE-bench scoring) and is capable of handling full-codebase-level context for software engineering tasks.

How does M2 compare to its successors M2.1, M2.5, and M2.7?

Each successor improves incrementally. M2.1 (Dec 2025) raised SWE-bench Verified from 69.4% to 74.0% and introduced the VIBE benchmark. M2.5 (Feb 2026) further improved to 80.2% SWE-bench Verified with faster agent completions and improved Toolathlon scores. M2.7 (Apr 2026) is the latest generation. For new projects, start with M2.5 or M2.7. M2 remains relevant as a well-documented baseline for regression testing and academic comparisons.

Does M2 support vision or image input?

No. MiniMax M2 is text-in / text-out only. For multimodal tasks requiring image, video, or audio input, consider doubao-seed-2.0-vision, qwen3-vl, or gpt-image-1.5. M2 focuses exclusively on coding, text reasoning, and tool use.

Can I self-host MiniMax M2?

Yes. M2 supports SGLang, vLLM, Transformers, MLX-LM, and KTransformers for inference. With only 10B active parameters, it is deployable on consumer-grade multi-GPU setups. The vLLM team has published specific usage guides for the MiniMax-M2 family.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dategithub.com β†—2026-05-27verified
Architecturegithub.com β†—2026-05-27verified
Training cutoffβ€”β€”unknown
Licensehuggingface.co β†—2026-05-27to verify
Supported inference backendsgithub.com β†—2026-05-27verified
Successor (M2.1)github.com β†—2026-05-27verified
Latest in family (M2.7)openrouter.ai β†—2026-05-27verified
SWE-bench Verifiedgithub.com β†—2026-05-27verified
Multi-SWE-Benchgithub.com β†—2026-05-27verified
SWE-bench Multilingualgithub.com β†—2026-05-27verified
Terminal-Benchgithub.com β†—2026-05-27verified
BrowseCompgithub.com β†—2026-05-27verified
BrowseComp-zhgithub.com β†—2026-05-27verified
GAIA (text only)github.com β†—2026-05-27verified
AIME25github.com β†—2026-05-27verified
MMLU-Progithub.com β†—2026-05-27verified
GPQA-Diamondgithub.com β†—2026-05-27verified
ArtifactsBenchgithub.com β†—2026-05-27verified
LiveCodeBench (LCB)github.com β†—2026-05-27verified
xbench-DeepSearchgithub.com β†—2026-05-27verified
HLE (w/ tools)github.com β†—2026-05-27verified
MiniMax open-sources M2 β€” 230B MoE model built for coding and agentic workflowsgithub.com/MiniMax-AI β†—2026-05-27verified
MiniMax M2.1 released β€” incremental improvements for coding and agentsgithub.com/MiniMax-AI β†—2026-05-27verified
Is MiniMax M2 free to use for commercial applications?huggingface.co β†—2026-05-27to verify
What context length does M2 support via TheRouter?openrouter.ai β†—2026-05-27to verify
How does M2 compare to its successors M2.1, M2.5, and M2.7?github.com β†—2026-05-27to verify
Does M2 support vision or image input?github.com β†—2026-05-27to verify
Can I self-host MiniMax M2?docs.vllm.ai β†—2026-05-27to verify
Help & contact