Providers / Qwen (Alibaba)
Qwen (Alibaba)
Qwen is the model family made by Alibaba. It is one of the widest ranges any lab offers: API-only tiers named Max, Plus and Flash, open-weight models in many sizes, a Coder line for programming, and vision (VL) and Omni models. Alibaba sells API access through Alibaba Cloud. The newest text models are Qwen3.8 Max, Qwen3.8 Flash and Qwen3.7 Plus.
Models
USD per 1M tokens · prices as of 2026-11-21
| Model | Best for | Input | Output | Context |
|---|---|---|---|---|
| Qwen3.6 Plus | Coding agents with front-end work and OCR | $0.3037 | $1.8221 | 250K |
| Qwen3.7 Max | Long agent runs, office and productivity work | $1.5184 | $4.5553 | 256K |
| Qwen3.7 Plus | Everyday coding-agent work · Prompts with images | $0.3037 | $1.2148 | 250K |
| Qwen3.8 Flash | High-volume, simple tasks · Prompts with images | $0.1721 | $0.5808 | 256K |
| Qwen3.8 Max | Hard coding and agent tasks · Prompts with images | $2.5813 | $7.7440 | 256K |
Which model for which job
Qwen covers most jobs from one maker. Max is the top tier, with reasoning always on and image and video input. Plus is the middle tier for daily work. Flash is for volume.
| Job | Use | Input / output per 1M | Why |
|---|---|---|---|
| Hard coding and agent tasks | Qwen3.8 Max | $2.5813 / $7.7440 | Top tier, reasoning always on |
| Long agent runs, office and productivity work | Qwen3.7 Max | $1.5184 / $4.5553 | Alibaba lists agent work and long-running autonomous tasks as its strengths |
| Everyday coding-agent work | Qwen3.7 Plus | $0.3037 / $1.2148 | Mid price; you can switch reasoning off for simple steps |
| High-volume, simple tasks | Qwen3.8 Flash | $0.1721 / $0.5808 | Fast, low-cost model with optional reasoning |
| Coding agents with front-end work and OCR | Qwen3.6 Plus | $0.3037 / $1.8221 | Older mid-range model; pick it if your prompts are tuned to it |
| Prompts with images | Qwen3.7 PlusQwen3.8 FlashQwen3.8 Max | $0.3037 / $1.2148$0.1721 / $0.5808$2.5813 / $7.7440 | All accept image input |
Data handling
What Alibaba Cloud publishes
Alibaba Cloud’s own terms say Alibaba Cloud International is based in Singapore, does not train on prompts, and retains prompts (no period stated).
What Yunshu does
Prompts aren’t stored by default. Batches are the one exception: batch inputs and results are kept for 7 days after the batch finishes, then deleted. An organisation can turn on zero retention, which refuses batches as well.
Pricing notes
- Prompt caching is explicit. Qwen does not cache on its own. You mark cache points with
cache_controlbreakpoints, the same syntax as Anthropic’s. - Yunshu’s own cache. Exact repeats of a request are answered from our cache and not charged.
Use it in your coding tool
Paste these settings to use Qwen3.6 Plus. Swap in any Qwen model ID from the table above.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=YOUR_YUNSHU_KEY
export ANTHROPIC_MODEL=qwen3.6-plus
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1OpenAI API Key: YOUR_YUNSHU_KEY
Override OpenAI Base URL: https://api.yunshurouter.com/v1
Add model: qwen3.6-plus (then Verify)model = "qwen3.6-plus"
model_provider = "yunshu"
model_context_window = 256000
[model_providers.yunshu]
name = "Yunshu Router"
base_url = "https://api.yunshurouter.com/v1"
env_key = "YUNSHU_API_KEY"
wire_api = "responses"Base URL: https://api.yunshurouter.com/v1
API Key: YOUR_YUNSHU_KEY
Model ID: qwen3.6-plusRun these in your shell before starting Claude Code, or put them in ~/.claude/settings.json (see the guide). No /v1 in the address: Claude Code adds it. The last line stops Claude Code sending fields only Anthropic models accept. Full guide →
In Cursor Settings → Models: paste the key under OpenAI, turn on the base URL override and keep the /v1. Then pick the model in the chat panel. Full guide →
Add this to ~/.codex/config.toml and set YUNSHU_API_KEY to your key. Codex sends the whole conversation each turn; we don't store responses. Full guide →
Set API Provider to OpenAI Compatible. Then set the context window and prices from the model page, so Cline's cost estimate matches your bill. Full guide →
Questions
Can I use the Qwen API without an Alibaba Cloud account?
Yes. A Yunshu Router key calls Qwen models through the OpenAI or Anthropic API format. You pay from a prepaid balance in USD, CNY or SGD, topped up by card.
Is Qwen3.8 Max good for coding?
We have not yet run our own coding-agent tests on it.
What is the difference between Qwen Max, Plus and Flash?
Max is the top tier, Plus the middle and Flash the cheapest. All three support tool calling.
How do I use prompt caching with Qwen?
Add cache_control breakpoints to the parts of your prompt that repeat, as you would with
Claude. Without breakpoints, nothing is cached on the Qwen side.
Does Alibaba train on my prompts?
See Data handling.