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
| source | URL | retrieved | |
|---|---|---|---|
| Architecture | qwenlm.github.io β | 2026-06-10 | to verify |
| Pretraining data | qwenlm.github.io β | 2026-06-10 | verified |
| Post-training | qwenlm.github.io β | 2026-06-10 | verified |
| API availability date (Qwen2.5-Max) | qwenlm.github.io β | 2026-06-10 | verified |
| Thinking mode | β | β | verified |
| License | β | β | verified |
| Lifecycle status | help.aliyun.com β | 2026-06-10 | verified |
| Arena-Hard | qwenlm.github.io β | 2026-06-10 | to verify |
| LiveCodeBench | qwenlm.github.io β | 2026-06-10 | to verify |
| GPQA-Diamond | qwenlm.github.io β | 2026-06-10 | to verify |
| Qwen2.5-Max launches as qwen-max API alias, outperforming DeepSeek V3 at launch | Qwen blog β | 2026-06-10 | verified |