返回模型列表

MiniMax M2

minimaxminimax/m2

API 使用指南

Chat 调用

使用标准 OpenAI 风格的 chat completions 端点,模型 id 为 minimax/m2。支持 tools 和通过 response_format 的 JSON 模式。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"minimax/m2","messages":[{"role":"user","content":"Write a Python function to merge two sorted arrays."}]}'

流式调用

对于低延迟 agent 工作流,启用流式响应。M2 的 10B 激活 MoE 架构带来快速首 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","messages":[{"role":"user","content":"Explain Rust ownership in 3 sentences."}],"stream":true}'

工具调用

M2 原生支持工具/函数调用。该模型特别擅长规划多步工具链——这是其 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","messages":[{"role":"user","content":"What is the weather in Shanghai?"}],"tools":[{"type":"function","function":{"name":"get_weather","description":"Get current weather","parameters":{"type":"object","properties":{"location":{"type":"string"}},"required":["location"]}}}]}'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期github.com ↗2026-05-27已核实
架构github.com ↗2026-05-27已核实
训练数据截止——未知
许可huggingface.co ↗2026-05-27待核实
支持的推理后端github.com ↗2026-05-27已核实
后继版本(M2.1)github.com ↗2026-05-27已核实
家族最新版本(M2.7)openrouter.ai ↗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-Benchgithub.com ↗2026-05-27已核实
BrowseCompgithub.com ↗2026-05-27已核实
BrowseComp-zhgithub.com ↗2026-05-27已核实
GAIA (text only)github.com ↗2026-05-27已核实
AIME25github.com ↗2026-05-27已核实
MMLU-Progithub.com ↗2026-05-27已核实
GPQA-Diamondgithub.com ↗2026-05-27已核实
ArtifactsBenchgithub.com ↗2026-05-27已核实
LiveCodeBench (LCB)github.com ↗2026-05-27已核实
xbench-DeepSearchgithub.com ↗2026-05-27已核实
HLE (w/ tools)github.com ↗2026-05-27已核实
MiniMax 开源 M2——为编码和 agent 工作流打造的 230B MoE 模型github.com/MiniMax-AI ↗2026-05-27已核实
MiniMax M2.1 发布——编码和 agent 增量改进github.com/MiniMax-AI ↗2026-05-27已核实
MiniMax M2 是否可以免费用于商业应用?huggingface.co ↗2026-05-27待核实
M2 在 TheRouter 上支持多长的上下文?openrouter.ai ↗2026-05-27待核实
M2 与其后继版本 M2.1、M2.5、M2.7 相比如何?github.com ↗2026-05-27待核实
M2 支持视觉或图片输入吗?github.com ↗2026-05-27待核实
可以自部署 MiniMax M2 吗?docs.vllm.ai ↗2026-05-27待核实
帮助与联系