Back to Models

MiniMax M2.5

minimaxminimax/m2.5

API guide

Chat completion

Standard OpenAI-compatible chat completion. Supports tool calling, JSON mode, streaming, and stop sequences.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/m2.5",
    "messages": [
      {"role": "system", "content": "You are an expert software engineer."},
      {"role": "user", "content": "Write a Python function to merge two sorted lists."}
    ],
    "temperature": 0.3,
    "max_tokens": 2048
  }'

Streaming

M2.5 supports token-level streaming via standard SSE format for real-time output.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/m2.5",
    "messages": [{"role": "user", "content": "Explain Rust ownership in 3 sentences."}],
    "stream": true
  }'

Tool / function calling

Strong tool-use capability (76.8% on BFCL). Supports parallel tool calling and multi-turn tool orchestration.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/m2.5",
    "messages": [
      {"role": "user", "content": "What is the weather in Tokyo and London?"}
    ],
    "tools": [{
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Get current weather for a city",
        "parameters": {
          "type": "object",
          "properties": {
            "location": {"type": "string", "description": "City name"}
          },
          "required": ["location"]
        }
      }
    }],
    "tool_choice": "auto"
  }'

JSON mode

Use response_format to guarantee structured JSON output. Supports both json_object and json_schema modes.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax/m2.5",
    "messages": [{"role": "user", "content": "List 3 popular JS frameworks as JSON."}],
    "response_format": {"type": "json_object"}
  }'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datewww.minimax.io β†—2026-05-27verified
Architecturewww.minimax.io β†—2026-05-27verified
Licensegithub.com β†—2026-05-27verified
RL frameworkwww.minimax.io β†—2026-05-27verified
Training environmentswww.minimax.io β†—2026-05-27verified
Training languageswww.minimax.io β†—2026-05-27verified
SWE-bench Verifiedwww.minimax.io β†—2026-05-27verified
Multi-SWE-benchwww.minimax.io β†—2026-05-27verified
BrowseCompwww.minimax.io β†—2026-05-27verified
BFCL (Tool Calling)www.minimax.io β†—2026-05-27verified
VIBE-Prowww.minimax.io β†—2026-05-27to verify
SWE-bench Multilingualwww.minimax.io β†—2026-05-27verified
Wide Searchwww.minimax.io β†—2026-05-27to verify
RISEwww.minimax.io β†—2026-05-27to verify
GDPval-MMwww.minimax.io β†—2026-05-27to verify
MiniMax releases M2.5 -- a frontier model matching Claude Opus 4.6 at 1/10th the costwww.minimax.io β†—2026-05-27verified
What is the Forge RL framework?www.minimax.io β†—2026-05-27to verify
Can I use MiniMax M2.5 commercially?github.com β†—2026-05-27to verify
Help & contact