Back to Models

MiniMax M2.7

minimaxminimax/m2.7

API guide

Chat completion

Basic text generation via chat completions endpoint. Supports temperature, max_tokens, top_p, stop, and response_format (JSON mode).

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"minimax/m2.7","messages":[{"role":"user","content":"Write a Rust function to parse CSV"}],"temperature":0.7,"max_tokens":4096}'

Streaming

M2.7 supports SSE streaming for real-time token delivery. Set stream: true in the request body.

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

Function calling (tools)

M2.7 supports tool_choice and tools for function calling. Excels at multi-tool orchestration with 40+ skills.

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

Related news

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datewww.minimax.io β†—2026-05-27verified
Architecturegithub.com β†—2026-05-27verified
Licensehuggingface.co β†—2026-05-27verified
Training cutoffβ€”β€”unknown
Self-evolution capabilitywww.minimax.io β†—2026-05-27verified
Skill adherencewww.minimax.io β†—2026-05-27verified
Predecessorwww.minimax.io β†—2026-05-27verified
SWE-Prowww.minimax.io β†—2026-05-27verified
SWE Multilingualwww.minimax.io β†—2026-05-27verified
Multi-SWE-Benchwww.minimax.io β†—2026-05-27verified
VIBE-Prowww.minimax.io β†—2026-05-27verified
Terminal Bench 2www.minimax.io β†—2026-05-27verified
NL2Repowww.minimax.io β†—2026-05-27verified
GDPval-AAwww.minimax.io β†—2026-05-27verified
MLE Bench Litewww.minimax.io β†—2026-05-27verified
MiniMax M2.7: Early Echoes of Self-Evolutionminimax.io/news β†—2026-05-27verified
Is M2.7 fully open-weight? Can I self-host it?huggingface.co β†—2026-05-27to verify
How does M2.7 compare with the previous M2.5?www.minimax.io β†—2026-05-27to verify
What is the 'self-evolution' feature in M2.7?www.minimax.io β†—2026-05-27to verify
What is the M2.7 Highspeed variant and when should I use it?github.com β†—2026-05-27to verify
Help & contact