MiniMax M2.7 API

MiniMax M2.7 isn't just a smarter model, it's one that participated in its own creation.

Modalities
TextText
In / Out price
$0.3/$1.2per 1M
Context window
200K tokens
Released
Apr 2, 2026

MiniMax M2.7 overview

MiniMax M2.7 specs

Model ID
minimax/m2-7-20260402
Developer
MiniMax
Context window
204,800 tokens
Max output
204,800 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What MiniMax M2.7 Is

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.

Key Specs

  • Model ID: minimax/minimax-m2.7
  • Context window: 204,800 tokens
  • Claimed output speed: About 60 tps standard, about 100 tps high-speed

Benchmark Results That Actually Matter

Most 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.

What M2.7 Is Actually Built For

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.

Software Engineering

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.

Multi-Agent Coordination

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.

Use cases

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.

Capabilities

  • Function calling
  • Streaming
  • Reasoning

MiniMax M2.7 benchmarks by Artificial Analysis

See how MiniMax M2.7 compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 11 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

MiniMax M2.7 API pricing

MiniMax M2.7 pricing in US dollars
UsagePriceUnit
Input$0.31M tokens
Output$1.21M tokens
Cached input$0.061M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

MiniMax M2.7 vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
MiniMax M2.7$0.3$1.2
MiniMax M3.1 Flash$0.15$0.6
MiniMax M3$0.3$1.2
MiniMax M2.1 Highspeed$0.6$2.4
MiniMax M2.7 Highspeed$0.6$2.4

How to use the MiniMax M2.7 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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."
    }
  ]
}'

Related articles

All posts

MiniMax M2.7 FAQ

What is the context window of MiniMax M2.7?

MiniMax M2.7 has a 204,800 tokens context window and can return up to 204,800 tokens.

What inputs and outputs does MiniMax M2.7 support?

MiniMax M2.7 takes text as input and returns text.

What is the model ID for MiniMax M2.7?

Use minimax/m2-7-20260402 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does MiniMax M2.7 cost?

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.

Does MiniMax M2.7 support streaming?

Yes, MiniMax M2.7 can stream responses as they are generated.

Who created MiniMax M2.7?

MiniMax M2.7 was built by MiniMax.

Start building with MiniMax M2.7

MiniMax M2.7 API

minimax/m2-7-20260402

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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."
    }
  ]
}'