MiniMax M2.1
Гид по API
Chat completion
M2.1 использует стандартный endpoint chat completions. Модель поддерживает interleaved thinking — токены цепочки рассуждений чередуются с ответом, не тарифицируются отдельно и выводятся прямо в ответе.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.1",
"messages": [{"role": "user", "content": "Write a Rust function that deduplicates a vector"}]
}'Streaming
M2.1 поддерживает стандартный SSE-стриминг. В агентских рабочих процессах стриминг снижает воспринимаемую задержку первого токена.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.1",
"messages": [{"role": "user", "content": "Explain the VIBE benchmark"}],
"stream": true
}'Tool use / function calling
M2.1 поддерживает нативный вызов инструментов и функций. Высокая производительность на Toolathlon (43,5%) и кросc-фреймворковое тестирование SWE-bench делают её подходящей для агентских ассистентов кодинга, использующих function calling для файлового I/O, shell-команд и поиска по кодовой базе.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.1",
"messages": [{"role": "user", "content": "Find all pending-review comments in the codebase"}],
"tools": [{
"type": "function",
"function": {
"name": "search_files",
"description": "Search files by pattern",
"parameters": {
"type": "object",
"properties": {
"pattern": {"type": "string", "description": "Search pattern"},
"path": {"type": "string", "description": "Directory to search"}
},
"required": ["pattern"]
}
}
}]
}'Structured output (JSON mode)
M2.1 поддерживает response_format со схемой JSON через OpenAI-совместимый API. Используйте для структурированных выходных данных в автоматизации.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.1",
"messages": [{"role": "user", "content": "Generate a test plan for a merge sort function"}],
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "test_plan",
"strict": true,
"schema": {
"type": "object",
"properties": {
"test_cases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"input": { "type": "array", "items": { "type": "number" } },
"expected": { "type": "array", "items": { "type": "number" } },
"description": { "type": "string" }
},
"required": ["input", "expected", "description"]
}
}
},
"required": ["test_cases"]
}
}
}
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Дата релиза | www.minimax.io ↗ | 2026-05-27 | проверено |
| Архитектура | github.com ↗ | 2026-05-27 | проверено |
| Дата отсечения данных | — | — | неизвестно |
| Лицензия | huggingface.co ↗ | 2026-05-27 | проверено |
| Поддерживаемые backend инференса | github.com ↗ | 2026-05-27 | проверено |
| Преемник (M2.5) | www.minimax.io ↗ | 2026-05-27 | к проверке |
| Последний преемник (M2.7) | huggingface.co ↗ | 2026-05-27 | к проверке |
| SWE-bench Verified | github.com ↗ | 2026-05-27 | проверено |
| Multi-SWE-bench | github.com ↗ | 2026-05-27 | проверено |
| SWE-bench Multilingual | github.com ↗ | 2026-05-27 | проверено |
| Terminal-bench 2.0 | github.com ↗ | 2026-05-27 | проверено |
| VIBE (Average) | github.com ↗ | 2026-05-27 | проверено |
| VIBE-Web | github.com ↗ | 2026-05-27 | проверено |
| VIBE-Android | github.com ↗ | 2026-05-27 | проверено |
| VIBE-iOS | github.com ↗ | 2026-05-27 | проверено |
| VIBE-Simulation | github.com ↗ | 2026-05-27 | проверено |
| VIBE-Backend | github.com ↗ | 2026-05-27 | проверено |
| Toolathlon | github.com ↗ | 2026-05-27 | проверено |
| BrowseComp | github.com ↗ | 2026-05-27 | проверено |
| AIME25 | github.com ↗ | 2026-05-27 | проверено |
| MMLU-Pro | github.com ↗ | 2026-05-27 | проверено |
| GPQA-Diamond | github.com ↗ | 2026-05-27 | проверено |
| SWE-bench Verified (Droid) | github.com ↗ | 2026-05-27 | проверено |
| SWE-bench Verified (mini-swe-agent) | github.com ↗ | 2026-05-27 | проверено |
| MiniMax M2.1 выпущена — фокус на мультиязычном кодинге | minimax.io/news ↗ | 2026-05-27 | проверено |
| Можно ли использовать MiniMax M2.1 в коммерческих проектах? | huggingface.co ↗ | 2026-05-27 | к проверке |
| Какое оборудование нужно для локального запуска M2.1? | github.com ↗ | 2026-05-27 | к проверке |
| Поддерживает ли M2.1 Interleaved Thinking (цепочку рассуждений)? | www.minimax.io ↗ | 2026-05-27 | к проверке |
| Как M2.1 сравнивается с Claude Sonnet 4.5 в кодинге? | github.com ↗ | 2026-05-27 | к проверке |