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
| source | URL | retrieved | |
|---|---|---|---|
| Release date | www.minimax.io β | 2026-05-27 | verified |
| Architecture | github.com β | 2026-05-27 | verified |
| License | huggingface.co β | 2026-05-27 | verified |
| Training cutoff | β | β | unknown |
| Self-evolution capability | www.minimax.io β | 2026-05-27 | verified |
| Skill adherence | www.minimax.io β | 2026-05-27 | verified |
| Predecessor | www.minimax.io β | 2026-05-27 | verified |
| SWE-Pro | www.minimax.io β | 2026-05-27 | verified |
| SWE Multilingual | www.minimax.io β | 2026-05-27 | verified |
| Multi-SWE-Bench | www.minimax.io β | 2026-05-27 | verified |
| VIBE-Pro | www.minimax.io β | 2026-05-27 | verified |
| Terminal Bench 2 | www.minimax.io β | 2026-05-27 | verified |
| NL2Repo | www.minimax.io β | 2026-05-27 | verified |
| GDPval-AA | www.minimax.io β | 2026-05-27 | verified |
| MLE Bench Lite | www.minimax.io β | 2026-05-27 | verified |
| MiniMax M2.7: Early Echoes of Self-Evolution | minimax.io/news β | 2026-05-27 | verified |
| Is M2.7 fully open-weight? Can I self-host it? | huggingface.co β | 2026-05-27 | to verify |
| How does M2.7 compare with the previous M2.5? | www.minimax.io β | 2026-05-27 | to verify |
| What is the 'self-evolution' feature in M2.7? | www.minimax.io β | 2026-05-27 | to verify |
| What is the M2.7 Highspeed variant and when should I use it? | github.com β | 2026-05-27 | to verify |