Qwen API pricing for every model, newest first

By TechCompare · Updated · How we check

A 100,000 token prompt with a 5,000 token answer and half the input cached costs $0.285 on Qwen3.8 Max Prime, the newest model. Qwen3.5-Flash, the lowest cost model Alibaba sells itself, runs it for $0.0078.

Every Qwen model and its API price

Newest first. Prices are per 1M tokens. One request is 100K tokens in and 5K out, with 50% of the input cached.

ModelInputOutputCachedContextOne requestListed
Qwen3.8 Max PrimeAlibaba$4$12$0.501M$0.285Sep 23, 2026
Qwen3.8 Omni FlashAlibaba$0.15$0.47$0.0161M$0.0106Sep 21, 2026
Qwen3.8 Max (0902)Alibaba$2$6$0.251M$0.1425Sep 3, 2026
Qwen3.8 FlashAlibaba$0.15$0.47$0.0161M$0.0106Aug 26, 2026
Qwen3.8 27BAlibaba$0.425$2.55$0.0851.02M$0.0382Aug 14, 2026
Qwen3.8 2.4T A95BAlibaba$2$6$0.251.05M$0.1425Aug 12, 2026
Qwen3.7 FlashAlibaba$0.03$0.13$0.0061M$0.008Jul 27, 2026
Qwen3.7 PlusAlibaba$0.32$1.28$0.0641M$0.0256Jun 3, 2026
Qwen3.7 MaxAlibaba$1.475$4.425$0.2951M$0.1106May 21, 2026
Qwen3.5 Plus 2026-04-20Alibaba$0.30$1.80$0.301M$0.039Apr 27, 2026
Qwen3.6 27BAlibaba$0.45$2.70$0.45262K$0.0585Apr 27, 2026
Qwen3.6 35B A3BCheapest host: PrimeIntellect$0.014$0.124$0.012262K$0.0019Apr 27, 2026

Listed is the day OpenRouter added the model. Prices checked Nov 14, 2026.

Qwen is Alibaba's model family, sold through Alibaba Cloud Model Studio. It's also one of the biggest open weight lines, so plenty of hosts sell Qwen models too. This page lists all 40 Qwen models OpenRouter carries, newest first, at Alibaba's own price where Alibaba sells the model and the host that charges least where it doesn't.

The top of the range is Qwen3.8 Max (0902), a 2.4 trillion parameter mixture of experts model, at $2 input and $6 output per million tokens. Qwen3.8 Max Prime is a high throughput version of that tier, sold as its own model, at $4 and $12. Qwen3.8 Flash handles multimodal reasoning at $0.15 and $0.47, and Qwen3.7 Plus lists $0.32 and $1.28.

Newest
Qwen3.8 Max Prime
$4 in, $12 out per 1M
Lowest cost per request
Qwen3.5-Flash
$0.0078 for the request in the table
Largest context
Qwen3.8 2.4T A95B
1.05M tokens

Calculator

Cost Comparison

Based on 100,000 input tokens (50% cached), 5,000 output tokens, and 100 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.

Loading model prices

How to read the Qwen prices

Alibaba sets prices per deployment region in Model Studio, so the rate where you deploy can differ from the table. Rows are per million tokens.

Some Qwen models charge by prompt size. Qwen3.7 Plus bills a prompt past 256,000 tokens at $0.96 input and $3.84 output per million, so a long document and a short chat don't cost the same per token. Cached input on Qwen3.8 Max Prime costs $0.50 per million, 88% off the normal rate.

Work that can wait goes through the Batch API. On Qwen3.8 Max (0902) that's $1.15 input and $3.45 output per million, 43% off input.

Alibaba also publishes open weights for many Qwen models, usually the ones named by size, like 27B or 35B-A3B. That's why so many rows show a host, and why you can run those yourself. The largest window belongs to Qwen3.8 2.4T A95B, at 1.05M tokens, against 1M on Qwen3.8 Max Prime.

Verdict

Start with Qwen3.8 Max Prime and run Qwen3.5-Flash, the lowest cost model Alibaba sells for the example request, on the same prompts. Use it wherever it passes your checks. Save Qwen3.8 Max (0902) for the jobs that need its size.

Check the rate in your deployment region before you set a budget, and keep long prompts under the long prompt line where you can.

More LLM pricing scenarios

Frequently asked questions

How much does the Qwen API cost?
Qwen3.8 Max Prime, the newest, costs $4 input and $12 output per million tokens. Qwen3.8 Max (0902) is $2 and $6, and Qwen3.8 Flash is $0.15 and $0.47. Alibaba's rates can differ by region, and the table lists every model.
What's the difference between Qwen3.8 Max and Max Prime?
Same tier, different serving. Qwen3.8 Max Prime is a high throughput version Alibaba sells as its own model, at $4 input and $12 output per million. You pay more per output token for faster answers, so it only makes sense where speed matters to your users.
Does Qwen charge more for long prompts?
Some models do. Qwen3.7 Plus bills a prompt past 256,000 tokens at $0.96 input and $3.84 output per million. Check each model in Model Studio before you send long documents.
Can I run Qwen models myself?
Many of them. Alibaba publishes open weights for a lot of Qwen models, mostly the ones named by size, like 27B or 35B-A3B. Check the license on each one before you ship it.
Which Qwen model has the largest context window?
Qwen3.8 2.4T A95B has the largest window at 1.05M tokens. Qwen3.8 Max Prime, the newest, reads up to 1M. Qwen3.8 2.4T A95B has no separate long prompt rate listed right now.
Where do these prices come from?
From OpenRouter's model list, which we check on a regular schedule. A row shows Alibaba's own rate where Alibaba sells the model, and the host that charges least where it doesn't. Model Studio prices vary by region, so check yours.