返回模型列表

MiniMax M2.1

minimaxminimax/m2.1

API 使用指南

Chat 调用

M2.1 使用标准 chat completions 接口。模型包含 Interleaved Thinking——思维链推理 token 与回复交错输出,不单独计费,直接出现在响应中。

cURL
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"}]
  }'

流式调用

M2.1 支持服务器推送(SSE)标准流式输出。在 agent 工作流中,流式调用可以降低首 token 的感知延迟。

cURL
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
  }'

工具调用 / 函数调用

M2.1 支持原生工具和函数调用。在 Toolathlon(43.5%)和跨框架 SWE-bench 测试中表现优异,适合依赖函数调用进行文件 I/O、Shell 命令和代码搜索的 agent 式编码助手。

cURL
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"]
        }
      }
    }]
  }'

结构化输出(JSON 模式)

M2.1 通过 OpenAI 兼容 API 支持带 JSON Schema 的 response_format,可用于下游自动化的结构化输出。

cURL
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已核实
支持的推理后端github.com ↗2026-05-27已核实
后继版本(M2.5)www.minimax.io ↗2026-05-27待核实
最新后继版本(M2.7)huggingface.co ↗2026-05-27待核实
SWE-bench Verifiedgithub.com ↗2026-05-27已核实
Multi-SWE-benchgithub.com ↗2026-05-27已核实
SWE-bench Multilingualgithub.com ↗2026-05-27已核实
Terminal-bench 2.0github.com ↗2026-05-27已核实
VIBE (Average)github.com ↗2026-05-27已核实
VIBE-Webgithub.com ↗2026-05-27已核实
VIBE-Androidgithub.com ↗2026-05-27已核实
VIBE-iOSgithub.com ↗2026-05-27已核实
VIBE-Simulationgithub.com ↗2026-05-27已核实
VIBE-Backendgithub.com ↗2026-05-27已核实
Toolathlongithub.com ↗2026-05-27已核实
BrowseCompgithub.com ↗2026-05-27已核实
AIME25github.com ↗2026-05-27已核实
MMLU-Progithub.com ↗2026-05-27已核实
GPQA-Diamondgithub.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待核实
帮助与联系