返回模型列表

Qwen Max

qwenqwen/qwen-max

API 使用指南

Chat 调用

标准 OpenAI 兼容 Chat Completions。如果你在构建新项目,建议使用 qwen/qwen3-32b——同一供应商系列、现役版本、支持可选思考模式。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen-max",
    "messages": [
      {"role": "user", "content": "Summarize the key capabilities of Qwen2.5-Max."}
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

工具调用

qwen-max 通过标准 OpenAI tools API 支持函数调用。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen-max",
    "messages": [{"role": "user", "content": "What is the current time in Tokyo?"}],
    "tools": [{
      "type": "function",
      "function": {
        "name": "get_current_time",
        "description": "Get the current time for a given timezone",
        "parameters": {
          "type": "object",
          "properties": {
            "timezone": {"type": "string", "description": "IANA timezone string"}
          },
          "required": ["timezone"]
        }
      }
    }],
    "tool_choice": "auto"
  }'

JSON 模式

使用 JSON 模式进行结构化数据提取。qwen-max 支持 response_format: json_object。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen-max",
    "messages": [
      {"role": "system", "content": "Return only valid JSON with keys: title, author, year."},
      {"role": "user", "content": "Extract book info: The Great Gatsby by F. Scott Fitzgerald, 1925."}
    ],
    "response_format": {"type": "json_object"}
  }'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
架构qwenlm.github.io ↗2026-06-10待核实
预训练数据qwenlm.github.io ↗2026-06-10已核实
后训练qwenlm.github.io ↗2026-06-10已核实
API 可用日期(Qwen2.5-Max)qwenlm.github.io ↗2026-06-10已核实
思考模式——已核实
许可证——已核实
生命周期状态help.aliyun.com ↗2026-06-10已核实
Arena-Hardqwenlm.github.io ↗2026-06-10待核实
LiveCodeBenchqwenlm.github.io ↗2026-06-10待核实
GPQA-Diamondqwenlm.github.io ↗2026-06-10待核实
Qwen2.5-Max 以 qwen-max API 别名发布,发布时超越 DeepSeek V3Qwen blog ↗2026-06-10已核实
帮助与联系