Speed
Output tokens / second
Custom pricing for production workloads
MiniMax-M2 is an advanced large language model with 1M token context for extended reasoning and generation.
The model is designed for easy integration into existing AI ecosystems requiring fast, intelligent decision-making capabilities.
minimax/m2https://api.aimlapi.com/v1MiniMax M2 is a state-of-the-art agent-based reasoner designed for high efficiency and advanced autonomous capabilities. It leverages a Mixture of Experts (MoE) architecture with 230 billion total parameters, activating 10 billion parameters per inference for optimal performance. This model excels in latency reduction and throughput, making it suitable for demanding AI applications.
vs Claude Opus: MiniMax M2 emphasizes swift, scalable agent reasoning with coding-centered capabilities, whereas Claude Opus targets maximal reasoning depth and complex multi-step problem solving with robust tool and memory integration.
vs Gemini 2.5: MiniMax M2 surpasses Gemini 2.5 Pro in overall intelligence scores, placing it among the top five models globally, and exceeds it in efficiency due to its MoE architecture activating only a small subset of parameters. Gemini 2.5 excels in multimodal creativity, generating images, art, and audio, whereas MiniMax M2 is more focused on reasoning, coding, and autonomous agent tasks.
vs PaLM 2: PaLM 2 is renowned for its multilingual, coding, and research capabilities, but MiniMax M2 outperforms it in open intelligence rankings and autonomous reasoning benchmarks. PaLM 2’s versatility makes it suitable for a wide range of applications, whereas MiniMax M2’s strength lies in cost-efficient, high-performance agent reasoning for specialized tasks.
vs GPT-4: GPT-4 remains the industry leader for multilingual understanding and a wide array of domains beyond coding and reasoning, while MiniMax M2 specifically optimizes those domains tied to autonomous agent reasoning, coding, and deep search functions.
See how MiniMax M2 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 12 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.3 | 1M tokens |
| Output | $1.2 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.3 | $1.2 | |
| $0.15 | $0.6 | |
| $0.3 | $1.2 | |
| $0.6 | $2.4 | |
| $0.6 | $2.4 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "minimax/m2",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "minimax/m2",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "minimax/m2",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());MiniMax M2 has a 1,000,000 tokens context window and can return up to 40,960 tokens.
MiniMax M2 takes text as input and returns text.
Use minimax/m2 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
MiniMax M2 costs $0.3 input and $1.2 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, MiniMax M2 can stream responses as they are generated.
MiniMax M2 was built by MiniMax.