Qwen3.7 Max
AvailableQwen3.7 Max is the largest model in Alibaba’s Qwen 3.7 line.
Good for Coding agents · Hard reasoning · Long context
Is it right for you?
Alibaba aims it at agent work, and lists programming, office and productivity tasks and long-running autonomous execution as its strengths. It has a 1,000,000-token context, tool calling and optional reasoning.
Best for
- Hard coding and agent tasks that run over many steps.
- Office and productivity work, such as long documents and structured edits.
- Very long prompts, up to the limit of our route.
Not ideal for
- Fast, cheap agent steps; Qwen3.8 Flash is built for that.
- Reading screenshots, unless our route serves the snapshot that accepts images.
- Prompts longer than 256K tokens, the limit in our catalogue today.
Next to the rest of the Alibaba (Qwen) line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| Qwen3.6 Plus | $0.3037 | $1.8221 | 250K | $0.1057 |
| Qwen3.7 Max (this page) | $1.5184 | $4.5553 | 256K | $0.3918 |
| Qwen3.7 Plus | $0.3037 | $1.2148 | 250K | $0.1020 |
| Qwen3.8 Flash | $0.1721 | $0.5808 | 256K | $0.0484 |
| Qwen3.8 Max | $2.5813 | $7.7440 | 256K | $0.6970 |
What it costs
Prepaid, per token, no subscription. Set your traffic to see your bill.
30 days, at today's prices. You're billed on actual tokens.
- Per request
- $0.007380
- Coding session
- $0.39
- Per day
- $14.76
- Suggested key budget
- $510.00
- Alert at 80%
- $408.00
A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.
Capabilities
What Qwen3.7 Max can do, as Alibaba lists it.
| Capability | Support |
|---|---|
| Tool calling | Yes (function calling) |
| Parallel tool calls | Not listed |
| Reasoning | Optional on the alias, on by default; enable_thinking: false turns it off |
| Reasoning effort | Not listed |
| Image input | Text in on the alias; image and video in on the 2026-06-08 snapshot |
| JSON output | Structured output (JSON) supported |
| Streaming | Yes |
| Prompt caching | Context caching listed |
Get started
Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=$YUNSHU_API_KEY
export ANTHROPIC_MODEL=qwen3.7-maxcurl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.7-max",
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'curl https://api.yunshurouter.com/v1/messages \
-H "x-api-key: $YUNSHU_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.7-max",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.yunshurouter.com/v1",
api_key=os.environ["YUNSHU_API_KEY"],
)
response = client.chat.completions.create(
model="qwen3.7-max",
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(response.choices[0].message.content)import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.yunshurouter.com", # no /v1: the SDK adds it
api_key=os.environ["YUNSHU_API_KEY"],
)
message = client.messages.create(
model="qwen3.7-max",
max_tokens=1024,
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(message.content[0].text)Full steps for each tool: integration guides →
Questions
What is Qwen3.7 Max?
Qwen3.7 Max is the largest model in Alibaba’s Qwen 3.7 line. It is built for agent work, calls tools and can reason before answering.
Does Qwen3.7 Max support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema).
Does Qwen3.7 Max support reasoning?
Yes. Alibaba lists thinking as on by default, and you can turn it off with enable_thinking: false.
How is Qwen3.7 Max different from Qwen3.8 Max and Qwen3.7 Plus?
Qwen3.7 Max is the top model of the older 3.7 line. Qwen3.8 Max is the newer top model; it always reasons and has a wider range of effort levels. Qwen3.7 Plus is the mid-range model of the same 3.7 line and accepts images. Pick Qwen3.7 Max when you want the 3.7 line at its most capable, Qwen3.8 Max for the newest, and Qwen3.7 Plus for everyday work.