Back to Models

Qwen Max

qwenqwen/qwen-max

API guide

Chat completion

Standard OpenAI-compatible chat completions. If you are building something new, consider qwen/qwen3-32b instead β€” same provider family, active generation, with optional thinking mode.

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

Tool calling

qwen-max supports function calling via the standard 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 mode

Use JSON mode for structured data extraction. qwen-max supports 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"}
  }'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Architectureqwenlm.github.io β†—2026-06-10to verify
Pretraining dataqwenlm.github.io β†—2026-06-10verified
Post-trainingqwenlm.github.io β†—2026-06-10verified
API availability date (Qwen2.5-Max)qwenlm.github.io β†—2026-06-10verified
Thinking modeβ€”β€”verified
Licenseβ€”β€”verified
Lifecycle statushelp.aliyun.com β†—2026-06-10verified
Arena-Hardqwenlm.github.io β†—2026-06-10to verify
LiveCodeBenchqwenlm.github.io β†—2026-06-10to verify
GPQA-Diamondqwenlm.github.io β†—2026-06-10to verify
Qwen2.5-Max launches as qwen-max API alias, outperforming DeepSeek V3 at launchQwen blog β†—2026-06-10verified
Help & contact