MiniMax M2 API

minimax/m2
MiniMax M2 offers powerful agent-based reasoning with low-latency, high-throughput performance.
Context
1M tokens
Input
$0.39 / 1M tokens
Output
$1.56 / 1M tokens
Released
Nov 4, 2025

Overview

MiniMax M2 API Overview

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

Technical Specifications

  • Architecture: Mixture of Experts (MoE)
  • Total Parameters: 230 billion
  • Active Parameters: 10 billion (per inference)
  • Latency: Low latency optimized for real-time use
  • Throughput: High throughput supporting large-scale deployments
  • Model Type: Agent-based reasoner

Performance Benchmarks

  • Outperforms leading open models including Claude Opus and Gemini 2.5 in independent benchmark tests.
  • Ranked in the Top 5 smartest AI models globally by Artificial Intelligence rankings.
  • Demonstrates superior reasoning, coding, and prompt generation capabilities in diverse evaluation scenarios.
__wf_reserved_inherit

Key Features

  • Agent-based reasoning drives autonomous and context-aware decision making.
  • Writes, debugs code, and crafts effective prompts for autonomous AI agents.
  • Efficient MoE design enables low-latency responses despite large parameter count.
  • Robust scalability and performance balance allow deployment across various cloud and edge environments.
  • Supports integration with autonomous systems requiring complex reasoning workflows.

MiniMax M2 API Pricing

  • Input: $0.39 / 1M tokens
  • Output: $1.56 / 1M tokens

‍

Code Sample

Comparison with Other Models

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.

‍

Uptime and performance

  • Uptime (7d): 100%

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Autonomous AI agent orchestration and control.
  • Automated coding assistance and bug fixing for software developers.
  • Generation of advanced prompts for AI-driven workflows and task automation.
  • Real-time decision support systems in dynamic environments.
  • Research and development in multi-agent systems and AI reasoning.

‍

How to use MiniMax M2 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to minimax/m2.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "minimax/m2",
      "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",
    "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","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

MiniMax M2 API Pricing

TypePrice
Input
$0.39 / 1M tokens
Output
$1.56 / 1M tokens

MiniMax M2 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Humanity's Last Exam
12.5%
Expert-level questions across many domainsSourceJuly 8, 2026
LiveCodeBench
83%
Contamination-free competitive programming problemsSourceJuly 8, 2026
AIME 2025
78%
Competition mathematics (AIME), 2025SourceJuly 8, 2026
GPQA Diamond
78%
Google-proof graduate science questions (hardest subset)SourceJuly 8, 2026
Terminal-Bench
46.3%
Autonomous shell/terminal task completionSourceJuly 8, 2026
SWE-bench Verified
69.4%
Resolving verified real GitHub issuesSourceJuly 8, 2026
Intelligence
18.6
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Math
78.3
Composite score across standardised mathematics evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

MiniMax M2 vs other models

ModelInputOutputContextBest for
MiniMax M2
This page
$0.39 / 1M tokens
$1.56 / 1M tokens
1M tokens
Coding + agents
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

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 is priced at input $0.39 / 1M tokens, output $1.56 / 1M tokens.

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

MiniMax M2 was built by MiniMax.

Start building with MiniMax M2

Get API Key
1000+ models, one API.