MiniMax 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.
End-to-end creation and editing of Word, Excel, and PowerPoint files. Achieves 97% skill adherence on complex multi-round office tasks — the highest GDPval-AA ELO score among open-source-accessible models.
Handles structured financial workflows including multi-step spreadsheet logic, data aggregation pipelines, and report generation across financial datasets in production environments.
204,800-token context window with full automatic cache support, no manual configuration needed. Prompt caching is built-in, which has meaningful cost implications for repeated or system-prompt-heavy workflows.
The M2.7-highspeed variant delivers identical output quality at approximately 100 TPS, roughly 3x faster than the base variant, for latency-sensitive applications and high-throughput inference pipelines.
M2.7 is not a drop-in replacement for every use case. Where it competes on coding and agent tasks, it's genuinely at the frontier tier. Where it falls short is general knowledge depth and some specialized vertical domains where Claude Opus 4.6 and GPT-5 still have an edge.
| Criterion | MiniMax M2.7 | Claude Opus 4.6 | GPT-5 |
|---|---|---|---|
| SWE-Pro (Coding) | 56.2% | ~58% (est.) | ~57% (est.) |
| Input token price | $0.30/M | ~$15/M | ~$10/M |
| Output token price | $1.20/M | ~$75/M | ~$30/M |
| Speed (TPS) | 44–100 | ~30–50 | ~40–80 |
| Context window | 204K | 200K | 128K |
| Open weights available | ✓ Available | ✗ No | ✗ No |
| Self-evolving architecture | ✓ Yes | ✗ No | ✗ No |
| Production agentic use | Primary focus | Strong | Strong |
| Best-in-class general knowledge | Not primary | Yes | Yes |
The model's design choices, heavy agentic tuning, long context, tool-calling precision, and low per-token cost, point toward a specific kind of user.
// 01 DevOps & SRE TeamsIf you're building incident response agents that correlate monitoring metrics with code repositories, M2.7's sub-three-minute production recovery documentation makes it worth evaluating against heavier, pricier options.
// 02 ML Research InfrastructureThe self-evolution loop was designed for RL research workflows. Teams running experiment pipelines who want an AI that can monitor, debug, and optimize its own scaffolds will find M2.7 purpose-built for this.
// 03 Document Automation PipelinesOrganizations generating large volumes of Word, Excel, and PowerPoint output, financial reports, legal documents, data summaries, benefit from M2.7's top-ranked office task ELO without the overhead of closed-source pricing.
// 04 Startups Replacing Frontier API CostsIf your product runs coding, document processing, or agentic tasks on Claude Opus 4.6 or GPT-5, M2.7 is the first realistic alternative where the cost-to-performance ratio justifies a migration evaluation.
// 05 High-Throughput Research SystemsWith 100 TPS on the highspeed variant, workloads that need fast parallel inference — large-scale data processing, evaluation pipelines, multi-agent simulations — run materially faster and cheaper than most alternatives.
// 06 Agent Framework DevelopersM2.7 was designed as a drop-in backend for harnesses like Claude Code, Kilo Code, and OpenClaw. Its 75.8% tool-calling accuracy means fewer brittle tool invocations and more reliable multi-step chains in production.
Benchmarks give you numbers. These documented examples give you a better sense of what M2.7 actually does when given a production problem with no hand-holding:
M2.7 was given a brief to build a six-player "Who Am I?" party game, a lead agent and five players, each with unique roles and behavioral constraints. Without any human intervention, the model wrote the server-side game logic, the client-facing web page, configured inter-agent communication, and successfully ran the game from start to finish. The entire codebase was produced in a single agentic session.
Given logs and a database configuration from a degraded production system, M2.7 correctly identified the root cause of a performance drop and proposed a fix using PostgreSQL's CONCURRENTLY syntax, a detail that matters specifically because standard index operations lock the table in production. The model understood the non-blocking requirement without being explicitly told, which is the kind of contextual judgment that separates adequate from production-ready reasoning.
Across three 24-hour autonomous evolution trials, M2.7 participated in a Kaggle-style ML competition without human guidance. It built training pipelines, monitored results, and iterated on modeling decisions independently. The best single run produced 9 gold medals, 5 silver, and 1 bronze, placing M2.7 at a 66.6% average medal rate, narrowly behind Opus 4.6 (75.7%) and GPT-5.4 (71.2%), with no human researcher in the loop.
M2.7 is one of the most compelling API models released in early 2026, but it's not perfect for every team. Here's what the data and documentation are honest about.
Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.
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.
import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "minimax/m2-7-20260402", "messages": [ { "role": "user", "content": "Hello!" } ] }, ) print(r.json())
const r = 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": "Hello!" } ] }), }); console.log(await r.json());
curl -X POST 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":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Intelligence | 23.2 | Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Coding | 52.6 | Composite score across standardised coding evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
MiniMax M2.7 This page | Coding + agents | |||
| Reasoning + agents | ||||
| Balanced coding + agents | ||||
| Long-context, multimodal & agentic workflows | ||||
| Reasoning + agents |
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 is priced at input $0.39 / 1M tokens, output $1.56 / 1M tokens, cached input $0.078 / 1M tokens.
Yes, MiniMax M2.7 can stream responses as they are generated.
MiniMax M2.7 was built by MiniMax.