Qwen3.8 Flash
AvailableQwen3.8 Flash is the fast, low-cost model in Alibaba’s Qwen 3.8 line.
Good for Fast and cheap · Long context · Images and screenshots · Bulk and batch jobs
Is it right for you?
Alibaba lists a 1,000,000-token context, input of text, image and video, tool calling and optional reasoning. It is the pick for high-volume agent steps where speed and cost matter more than the last bit of quality.
Best for
- High-volume agent steps: sub-agents, summaries, commit messages and small edits.
- Long inputs, up to the limit of our route, at a lower cost than Qwen3.7 Plus or Qwen3.8 Max.
- Reading screenshots, charts and short video clips next to code.
Not ideal for
- The hardest reasoning and planning work; Qwen3.8 Max and Qwen3.7 Max are the larger models.
- 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 (this page) | $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.000910
- Coding session
- $0.05
- Per day
- $1.82
- Suggested key budget
- $65.00
- Alert at 80%
- $52.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.8 Flash can do, as Alibaba lists it.
| Capability | Support |
|---|---|
| Tool calling | Yes (function calling) |
| Parallel tool calls | Not listed |
| Reasoning | Optional, on by default; enable_thinking: false turns it off |
| Reasoning effort | reasoning_effort: xhigh (default) / medium / low |
| Image input | Text, image and video in; text out |
| 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.8-flashcurl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-flash",
"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-flash",
"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-flash",
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-flash",
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 Flash?
Qwen3.8 Flash is a fast, low-cost language model from Alibaba’s Qwen team. It accepts text, image and video, calls tools and can reason before answering.
Does Qwen3.8 Flash support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema).
Does Qwen3.8 Flash support reasoning?
Yes. Alibaba lists thinking as on by default, and you can turn it off with enable_thinking: false.
How is Qwen3.8 Flash different from Qwen3.7 Plus and Qwen3.8 Max?
Qwen3.8 Flash is the fast and cost-effective one. Qwen3.7 Plus is the balanced mid-range model, with two price bands by input length at Alibaba. Qwen3.8 Max is the largest model in the 3.8 line and always reasons. Use Flash for volume, Plus for everyday coding work and Max when the task is hard.