Qwen3.8 Max
AvailableQwen3.8 Max is the largest model in Alibaba’s Qwen 3.8 line.
Good for Hard reasoning · Long context · Images and screenshots
Is it right for you?
It always reasons before it answers and offers the widest range of effort levels of the models in our catalogue, from minimal to extra high. It accepts images, calls tools and has a 256K context on Yunshu Router. It costs more per token than Qwen3.7 Plus.
Best for
- Hard coding and reasoning tasks where you want to control how long the model thinks.
- Long sessions that need more than 128K context, with images in the mix.
- The last step of a fallback chain, after a cheaper model.
Not ideal for
- Fast, cheap agent steps: reasoning is always on and the price per token is high.
- 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 | $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 (this page) | $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.013165
- Coding session
- $0.70
- Per day
- $26.33
- Suggested key budget
- $910.00
- Alert at 80%
- $728.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.
One price all day: this model has no peak pricing in our catalogue.
Capabilities
What Qwen3.8 Max can do, as Alibaba lists it.
| Capability | Support |
|---|---|
| Tool calling | Yes |
| Parallel tool calls | Not listed |
| Image input | Text, image and video in |
| JSON output | JSON mode and structured outputs yes |
| Streaming | Yes |
| Prompt caching | Cache-read price 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.8-maxcurl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-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.8-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.8-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.8-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.8 Max?
Qwen3.8 Max is the largest model in Alibaba’s Qwen 3.8 line. It always reasons, accepts images and calls tools.
Does Qwen3.8 Max support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema).
Does Qwen3.8 Max support reasoning?
Yes, and it is always on.