返回模型列表
MiniMax M2.5
minimaxminimax/m2.5
API 使用指南
对话补全
标准 OpenAI 兼容对话补全。支持工具调用、JSON 模式、流式输出和 stop 序列。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.5",
"messages": [
{"role": "system", "content": "You are an expert software engineer."},
{"role": "user", "content": "Write a Python function to merge two sorted lists."}
],
"temperature": 0.3,
"max_tokens": 2048
}'流式输出
M2.5 支持 token 级流式输出,使用标准 SSE 格式。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.5",
"messages": [{"role": "user", "content": "Explain Rust ownership in 3 sentences."}],
"stream": true
}'工具 / 函数调用
工具调用能力强劲(BFCL 76.8%),支持并行工具调用和多轮工具编排。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.5",
"messages": [
{"role": "user", "content": "What is the weather in Tokyo and London?"}
],
"tools": [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}
}],
"tool_choice": "auto"
}'JSON 模式
使用 response_format 确保结构化 JSON 输出。支持 json_object 和 json_schema 模式。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/m2.5",
"messages": [{"role": "user", "content": "List 3 popular JS frameworks as JSON."}],
"response_format": {"type": "json_object"}
}'事实档案 — 本页每条断言可在此回溯来源
| 来源 | URL | 采集于 | |
|---|---|---|---|
| 发布日期 | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| 架构 | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| 许可协议 | github.com ↗ | 2026-05-27 | 已核实 |
| 强化学习框架 | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| 训练环境 | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| 训练语言 | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| SWE-bench Verified | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| Multi-SWE-bench | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| BrowseComp | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| BFCL (Tool Calling) | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| VIBE-Pro | www.minimax.io ↗ | 2026-05-27 | 待核实 |
| SWE-bench Multilingual | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| Wide Search | www.minimax.io ↗ | 2026-05-27 | 待核实 |
| RISE | www.minimax.io ↗ | 2026-05-27 | 待核实 |
| GDPval-MM | www.minimax.io ↗ | 2026-05-27 | 待核实 |
| MiniMax 发布 M2.5 —— 性能接近 Claude Opus 4.6,成本仅 1/10 | www.minimax.io ↗ | 2026-05-27 | 已核实 |
| 什么是 Forge 强化学习框架? | www.minimax.io ↗ | 2026-05-27 | 待核实 |
| MiniMax M2.5 可以商用吗? | github.com ↗ | 2026-05-27 | 待核实 |