# Qwen API cost calculator

[Calculate my cost →](https://apicostcheck.com/calculator/?model=qwen-flash&daily=10000&input=6000&output=500&cache=0&write=0&batch=0)[Compare Alibaba (Qwen) models side by side](https://apicostcheck.com/compare/?m=qwen-flash,qwen3.8-flash,qwen3.7-plus,qwen4-max)

At 10,000 requests a day (6,000 input and 500 output tokens each), the models below cost $150/mo to $4,500/mo without caching.

Alibaba Model Studio prices Qwen per token with separate input, output and cached-input rates. The prices here are the international (Singapore) list; the China region has its own list and model lineup. The context cache is implicit: a repeated prompt prefix is matched automatically and a hit is billed at 5%–20% of the input price. In our data Qwen3.8 Max, Qwen Max, Qwen3.7 Plus list no cache-write fee, so a miss costs normal input, while Qwen4 Max, Qwen3.8 Flash charge 1.25×–1.33× the input price to write.

Some Qwen models have a Batch API at 50% off input and 50% off output for asynchronous jobs; models without a batch price are flagged in the table. Long inputs cost more on tiered models: long-context rates apply above 256K for Qwen3.7 Plus, Qwen3.5 Plus, Qwen Flash (input 1.25×–5×, output 1.25×–5×), to the whole request. 

The table prices one workload on each model: 10,000 requests a day with 6,000 input and 500 output tokens per request. Columns: no caching; 70% of input read from the cache and 5% written to it; every request sent through the Batch API. For the same traffic [Qwen3.8 Max](https://apicostcheck.com/models/qwen3.8-max/) costs 30× as much as [Qwen Flash](https://apicostcheck.com/models/qwen-flash/) retiring 2027-03-01.

| Model | Standard 10,000 req/day · 6,000 in · 500 out [Calculate with your numbers → (Standard)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=0) | With prompt caching 10,000 req/day · 6,000 in · 500 out · cache 70% [Calculate with your numbers → (With prompt caching)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=70&write=5&batch=0) | Batch API 10,000 req/day · 6,000 in · 500 out · Batch [Calculate with your numbers → (Batch API)](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=100) |
| --- | --- | --- | --- |
| [Qwen Flash](https://apicostcheck.com/models/qwen-flash/) retiring 2027-03-01 | $150/mo | $150/mo no cache price in data | $150/mo no batch price in data |
| [Qwen3.8 Flash](https://apicostcheck.com/models/qwen3.8-flash/) | $340/mo | $176/mo | $340/mo no batch price in data |
| [Qwen3.7 Plus](https://apicostcheck.com/models/qwen3.7-plus/) | $960/mo | $557/mo | $960/mo no batch price in data |
| [Qwen4 Max](https://apicostcheck.com/models/qwen4-max/) | $3,375/mo | $1,613/mo | $3,375/mo no batch price in data |
| [Qwen Max](https://apicostcheck.com/models/qwen-max/) retiring 2027-03-01 | $3,840/mo | $2,227/mo | $1,920/mo |
| [Qwen3.8 Max](https://apicostcheck.com/models/qwen3.8-max/) | $4,500/mo | $2,295/mo | $4,500/mo no batch price in data |

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-12-05 13:00 UTC. 

[All Alibaba (Qwen) API prices →](https://apicostcheck.com/providers/dashscope/) 

## Cost per 1,000 requests

For 1,000 requests of 6,000 input and 500 output tokens, [Qwen Flash](https://apicostcheck.com/models/qwen-flash/) retiring 2027-03-01 costs $0.50 at standard rates, $0.50 with caching and $0.50 through the Batch API; [Qwen3.8 Max](https://apicostcheck.com/models/qwen3.8-max/) costs $15.00, $7.65 and $15.00. Multiply by your own request count, or put your traffic into the calculator. 

## How to cut the bill, in order
- Put the system prompt, tools and documents first so the implicit cache hits on every request; only the user turn should change.
- Use Flash for routing and classification, Plus for chat and RAG, Max only for hard questions.
- Turn thinking mode off where it is not needed: on models with a separate thinking price the output tokens cost more, and reasoning tokens are billed as output.
- Keep requests under the tiered models' long-context threshold with retrieval; count prompts with the [token counter](https://apicostcheck.com/token-counter/).
- Send offline work through the Batch API where the model has one, and check the [caching calculator](https://apicostcheck.com/prompt-caching-calculator/) for your hit rate before budgeting in the [calculator](https://apicostcheck.com/calculator/). 

[When does caching pay off for your traffic? Use the prompt caching calculator →](https://apicostcheck.com/prompt-caching-calculator/)

## FAQ

### Pricing

### Does the Qwen context cache need code changes?

No. Prefix matching is automatic on supported models: keep the system prompt and documents at the start, and a hit is charged at the cached-input price. Model Studio also offers an explicit cache that you create yourself, with its own per-token creation and hit prices on the official model page; those prices are not in our data.

### Are China and international prices the same?

No. Model Studio keeps a separate price list and model lineup per region. This site shows the international list; an account on the China region should read the China price page.

### Which Qwen models charge more for long inputs?

Only the models named in the long-context sentence above; once a request passes the threshold the whole request is billed at the higher rate. The other models keep one price at any length in our data.

### Flash, Plus or Max?

Flash for high-volume classification, extraction and routing; Plus for most chat and RAG work; Max for hard reasoning and agents. The price gap between tiers is large, so route requests by difficulty and test two tiers on your own prompts.

### Billing, credits and limits

### Is there a free quota for the Qwen API?

Yes, for new users in the Singapore region. As of 2026-11-29, [Alibaba Cloud Model Studio's free quota page](https://docs.modelstudio.console.alibabacloud.com/en/model-studio/new-free-quota) says that when you first activate Model Studio (Singapore region) you automatically get a free quota for various models; other regions have no free quota. It is valid for 90 days from the date you activate Model Studio, the model is released, or your model request is approved (whichever is later), expires unused quota without extension, and is not granted again to a new account. It only covers real-time inference, not batch calls, fine-tuning, model deployment, custom models (fine-tuned or deployed models), PAI-DSW, or OSS storage and request fees. Once it runs out, billing switches to pay-as-you-go automatically unless you turn on Free Quota Only, which is off by default.

---
Source: https://apicostcheck.com/qwen-api-cost-calculator/ · prices in USD per 1M tokens, synced 2026-12-05 13:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
