Speed
Output tokens / second
Custom pricing for production workloads
MiniMax M2.7 isn't just a smarter model, it's one that participated in its own creation.
minimax/m2-7-20260402https://api.aimlapi.com/v1MiniMax M2.7 is the latest flagship text model, purpose-built for real-world software engineering and complex production workloads. It stands out through its core architecture focused on recursive self-improvement and multi-agent collaboration, delivering exceptional performance in software engineering, debugging, log analysis, code generation, and long-form document creation.
Unlike previous models that excelled mainly at polyglot coding and multi-step reasoning in controlled benchmarks, M2.7 was specifically engineered for live production environments. It brings strong causal reasoning capabilities, the kind needed to understand, diagnose, and fix issues inside actual running systems, not just sandbox tests.
minimax/minimax-m2.7Most benchmark comparisons tell you how a model performs on carefully curated academic tests. The interesting thing about M2.7's numbers is where they come from: production-grade scaffolds, terminal-based engineering challenges, and real document-editing workflows.
Understanding where M2.7 excels, and where it trades off, makes a real difference in whether it's the right model for a given workflow. It made deliberate design choices, optimizing agentic performance even at a small cost to narrow domain precision in areas like specialized medicine and finance.
Live debugging, root cause analysis, log reading, code security review, and multi-file refactors. Reduction of production incident recovery time to under three minutes has been documented in SRE contexts.
Plans, executes, and refines tasks across dynamic environments through multi-agent collaboration. Can orchestrate sub-agents with distinct roles and communication protocols within a single harness.
MiniMax M2.7 is documented as suited to building complex agent harnesses and handling highly elaborate productivity tasks, including multi-agent collaboration and dynamic tool search.
It is also documented for real-world software engineering work, including end-to-end project delivery, log analysis, bug troubleshooting, refactoring, code security, and machine learning tasks.
Another stated use case is advanced coding assistance and autonomous coding workflows, where the model plans, edits, runs, and verifies code across long multi-step sessions.
It is additionally documented for office productivity workflows, including document generation and editing across Word, Excel, and PowerPoint, with multi-round revisions and high-fidelity editing.
See how MiniMax M2.7 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 11 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.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.3 | 1M tokens |
| Output | $1.2 | 1M tokens |
| Cached input | $0.06 | 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-7-20260402",
"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-7-20260402",
"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-7-20260402",
"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.7 has a 204,800 tokens context window and can return up to 204,800 tokens.
MiniMax M2.7 takes text as input and returns text.
Use minimax/m2-7-20260402 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
MiniMax M2.7 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.7 can stream responses as they are generated.
MiniMax M2.7 was built by MiniMax.