MiniMax M2 is an open-source, agent-native large language model (LLM) released by MiniMax on October 27, 2025. It is explicitly engineered for coding and agentic workflows (tool calling, multi-step automation), prioritizing low latency and cost-effective serving while delivering strong reasoning and tool-use capabilities.
Key features
Highlights โ coding specialization, agentic workflows, low active-parameter footprint, long context support, OpenAI-compatible API. MiniMax positions Minimax M2ย as a fast, deployment-friendly MoE model intended for multi-step agents, code generation & repair, terminal/IDE workflows, and tool calling.
Notable bullets (quick):
- Architecture: Mixture-of-Experts (MoE) with a very large total parameter count and a small activated parameter set per forward pass.
- Activation footprint: ~10 billion active parameters (per token).
- Total parameters (reported): reported between ~200B โ 230B depending on source/metric (see Technical details).
- Context window: enterprise-scale long context; 204,800 tokens max context.
- Primary modality: text (tool calling / function calling supported).
- Agent-native: designed for multi-step tool calling (shell, browser, python interpreter, MCP tools).
- Coding focus: optimized for multi-file edits, run-fix loops and CI/IDE tasks.
Technical details (architecture & specs)
Architecture โ Mixture-of-Experts (MoE): Minimax M2ย API uses an MoE strategy so the model can have a very large total parameter count while only activating a fraction per inference step. This yields improved compute efficiency, throughput, and cost per token for interactive agent and coding loops.
Precision & quantization โ model files and provider stacks list FP32/BF16 and FP8 formats and multiple quantized builds (safetensors, FP8/E4M3, etc.), enabling local deployment and efficiency trade-offs.
Context & I/O โ deployed providers publish 204,800 token context support and large maximum output settings. M2 is text-only for now (many open-weights releases from China have emphasized text/agent capabilities while multimodal remains the domain of other releases).
Runtime recommendations / special instructions โ Minimax M2ย API uses an โinterleaved thinkingโ output format that wraps the modelโs internal reasoning in <think>...</think> blocks. MiniMaxโ request keeping that thinking content intact and passing it back in historical context to preserve performance for multi-turn agent workflows.
Benchmark performance
Composite intelligence & agent benchmarks โ independent benchmarking by Artificial Analysis reports that MiniMax-M2 achieves a best-in-class Intelligence Index among open-weight models, and ranks among the top open-source models on composite intelligence metrics, especially in tool use, instruction following, and agentic tasks. Artificial Analysis highlights the modelโs efficiency (very few active parameters) as a key driver of its ranking.

Minimax M2ย shows strong results on coding & agentic suites (Terminal-Bench, SWE-Bench, BrowseComp, LiveCodeBench types of tasks), where its architecture and activation budget favor planning โ act โ verify loops (compilation/run/test cycles, multi-file edits, and tool chains).

Comparison: MiniMax M2 vs other contemporary models
Against open-weights peers (DeepSeek, Qwen3, Kimi, etc.) โ Minimax M2ย is presented as particularly efficient on active-parameter budget (โ10B) giving it strong intelligence-per-active-parameter ratios; other open models may have higher active parameter counts but similar or higher total parameters.
Against commercial frontier models (OpenAI / Anthropic / Google / xAI) โ reporting places M2 below the very top commercial models on some generalist metrics but competitive or ahead on many agentic and coding benchmarks for its price point.
Cost & speed tradeoffs โ Its cost per token is only 8% of Anthropic Claude Sonnet and its speed is about twice as fast.
Limitations & risks
Limitations โ verbosity (high token usage), text-only modality, task-specific weaknesses, and the usual LLM risks (hallucination, overconfidence, dataset biases). Artificial Analysis and MiniMax both point out that M2 may underperform some large generalist models on certain open-ended tasks even while it excels at agentic and coding workflows. Because it is MoE-based, deployment considerations (expert routing, quantization, and inference frameworks) matter.
Operational caveats โ Minimax M2ย โs interleaved thinking format requires retaining special <think>...</think> tokens across history for best performance; removing that content can degrade agent behavior. Also, because Minimax M2ย is verbose, cost per task is a function of both per-token price and total tokens generated.
Primary use cases
- Agent orchestration & long workflows โ multi-step tool chains, browseโretrieveโexecute cycles, error recovery, and evidence traceability in agent runs.
- Developer productivity & coding assistants โ compile-run-test loops, multi-file edits, test-validated repairs, and IDE integration (Claude Code, Cursor, Codex, Grok CLI examples exist).
- High-throughput agent fleets / production bots โ where cost per inference and concurrency matter, M2โs low activated parameter footprint can reduce infrastructure cost.
How to callย Minimax M2ย ย API from CometAPI
minimax-m2ย API Pricing in CometAPI๏ผ20% off the official price:
- Input Tokens:ย $0.24 Mย tokens
- Output Tokens:ย $0.96/ย Mย tokens
Required Steps
- Log in toย cometapi.com. If you are not our user yet, please register first.
- Sign into yourย CometAPI console.
- Get the access credential API key of the interface. Click โAdd Tokenโ at the API token in the personal center, get the token key: sk-xxxxx and submit.

Use Method
- Select the โminimax-m2โ endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience.
- Replace <YOUR_API_KEY> with your actual CometAPI key from your account.
- Insert your question or request into the content fieldโthis is what the model will respond to.
- . Process the API response to get the generated answer.
CometAPI provides a fully compatible REST APIโfor seamless migration. Key details toย API doc:
- Base URL:ย
https://api.cometapi.com/v1/chat/completions - Model Names:ย โ
minimax-m2โ - Authentication:ย
Bearer YOUR_CometAPI_API_KEYย header - Content-Type:ย
application/jsonย .
API Integration & Examples
Below is aย Pythonย snippet demonstrating how to invoke GLMโ4.6 via CometAPIโs API. Replaceย <API_KEY>ย andย <PROMPT>ย accordingly:
import requests
API_URL = "https://api.cometapi.com/v1/chat/completions"
headers = {
"Authorization": "Bearer <API_KEY>",
"Content-Type": "application/json"
}
payload = {
"model": "minimax-m2",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "<PROMPT>"}
],
"max_tokens": 512,
"temperature": 0.7
}
response = requests.post(API_URL, json=payload, headers=headers)
print(response.json())
See also Claude Haiku 4.5 API
