返回模型列表

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 Verifiedwww.minimax.io ↗2026-05-27已核实
Multi-SWE-benchwww.minimax.io ↗2026-05-27已核实
BrowseCompwww.minimax.io ↗2026-05-27已核实
BFCL (Tool Calling)www.minimax.io ↗2026-05-27已核实
VIBE-Prowww.minimax.io ↗2026-05-27待核实
SWE-bench Multilingualwww.minimax.io ↗2026-05-27已核实
Wide Searchwww.minimax.io ↗2026-05-27待核实
RISEwww.minimax.io ↗2026-05-27待核实
GDPval-MMwww.minimax.io ↗2026-05-27待核实
MiniMax 发布 M2.5 —— 性能接近 Claude Opus 4.6,成本仅 1/10www.minimax.io ↗2026-05-27已核实
什么是 Forge 强化学习框架?www.minimax.io ↗2026-05-27待核实
MiniMax M2.5 可以商用吗?github.com ↗2026-05-27待核实
帮助与联系