Qwen is Alibaba's family of AI models, and you can use all of them through one API. The same request can cost ten times more on a bigger model than the job needs, and up to 20% more for Qwen4-Max depending on where you buy it.
This guide compares prices for the main Qwen models and shows which one fits which job. It then shows where the Qwen API costs less and when a subscription beats paying per token. The last sections cover the free tier and API keys. Prices were checked on November 25, 2026.
Qwen API pricing by model
Alibaba sells the Qwen API on QwenCloud, its API platform, and on Alibaba Cloud Model Studio at the same prices. Both run in several regions with different prices. This guide uses Singapore prices: it's Alibaba's main region for international users and the only one with a free quota. The table shows the official rates there, in US dollars per million tokens.
| Model | Input | Output | Context | Use it for |
|---|---|---|---|---|
| Qwen4-Max | $1.50 | $4.50 | 1M | Agents, long documents, hard reasoning |
| Qwen3.8-Max | $2.00 | $6.00 | 1M | Older apps built on Max |
| Qwen3.7-Plus (up to 256K input) | $0.40 | $1.60 | 1M | Chat, writing, summaries |
| Qwen3.8-27B (open weights) | $0.50 | $3.00 | 262K | Projects that need open weights |
| Qwen3.8-Flash | $0.15 | $0.47 | 1M | High-volume, low-latency tasks |
| Qwen3.7-Flash (up to 32K input) | $0.03 | $0.13 | 1M | Classification, routing, extraction |
The gap between the models is wide: the Max models cost several times more than the rest, and output costs more than input on every model. So the model you pick decides most of your bill.
Which Qwen model to choose to pay less
The cheapest way to use Qwen is to match the model to the job. Here's what each group is good for and how much it saves.
Qwen4-Max for hard tasks
Use Qwen4-Max for agents, long documents and multi-step reasoning. If you still run Qwen3.8-Max, switch: Qwen4-Max costs 25% less per token and writes fewer tokens per answer. The chart from our Qwen4-Max benchmarks and price story shows what that means on the Artificial Analysis index: one task costs $3.27 on Qwen4-Max and $10.02 on Qwen3.8-Max.

Qwen3.7-Plus for everyday text
For chat, writing and summaries, Qwen3.7-Plus is enough. It costs almost four times less than Qwen4-Max on input and almost three times less on output, and QwenCloud currently lists a limited-time 20% discount, bringing it to $0.32 input and $1.28 output. Keep prompts under 256K tokens, because above that the price triples. If you need open weights, Qwen3.8-27B is the option, but its output costs almost twice as much as Qwen3.7-Plus.
Flash models for high volume
For tagging, routing and extraction, use a Flash model. Qwen3.8-Flash costs ten times less than Qwen4-Max on input and keeps one price across 1M tokens. Qwen3.7-Flash is cheaper still, but only for prompts up to 32K tokens.
Qwen vs DeepSeek API pricing
DeepSeek also sells low-cost models through its API. It has two, and both have two prices: a peak price on weekdays from 01:00 to 04:00 and from 06:00 to 10:00 UTC, and half that price at all other times, including weekends.
| Model | Input | Output | Cached input |
|---|---|---|---|
| Qwen4-Max | $1.50 | $4.50 | $0.075 |
| DeepSeek V4 Pro, peak | $1.32 | $3.96 | $0.044 |
| DeepSeek V4 Pro, off-peak | $0.66 | $1.98 | $0.022 |
| Qwen3.8-Flash | $0.15 | $0.47 | – |
| DeepSeek V4.1 Flash, peak | $0.30 | $1.20 | $0.006 |
| DeepSeek V4.1 Flash, off-peak | $0.15 | $0.60 | $0.003 |
DeepSeek V4 Pro costs about 12% less than Qwen4-Max at peak hours and less than half off-peak. Among the small models, Qwen3.8-Flash wins: its input price matches DeepSeek's off-peak price, its output is cheaper, and the price doesn't change by time of day. If price matters most and your traffic runs mostly outside DeepSeek's peak hours, check DeepSeek first for large-model work. For steady traffic around the clock, Qwen's flat prices are easier to plan.
How Qwen API billing works
Beyond the model, a few billing rules decide what you pay, and most of them are also ways to pay less:
- Output costs more. On every model in the table, output costs three to six times more than input. Asking for shorter answers is the easiest way to cut the bill.
- Cache. Repeated input, such as a long system prompt, is cheap when it comes from the cache: $0.075 on Qwen4-Max, 95% less than normal input. If you save a prompt to the cache yourself, that write costs more: $1.875 to keep it for five minutes and $3 for an hour.
- Batch. Requests that don't need an instant answer cost half price as batch calls in Singapore and Beijing.
- Long prompts. Some models charge more for long prompts, and then the whole request moves to the higher rate. On Qwen3.7-Flash, a 30K-token prompt costs $0.0009, but a 40K-token prompt costs $0.004: a third more tokens, more than four times the price.
- Thinking. Reasoning tokens count as output, so turning thinking off for simple tasks saves money. Qwen4-Max charges the same rate in both modes.
- Region. With the Global setting, which runs models in Frankfurt, Hong Kong, Tokyo and Virginia, Qwen4-Max costs $1.413 input and $4.24 output. That's cheaper than Singapore, but Global has no free quota.
These billing rules make model choice, prompt length and region worth checking before you commit.
Where to buy the Qwen API for less
You don't have to buy Qwen from Alibaba. API providers resell access to the same models, and developers use them for practical reasons. One key and one bill cover Qwen together with models from OpenAI, Anthropic, Google and DeepSeek, there's no region to set up, and any OpenAI client works with them. Some of them also charge less than Alibaba itself.
| Provider | Qwen4-Max in / out | Qwen4-Max cached | Qwen3.8-Max in / out | Qwen3.8-Flash in / out |
|---|---|---|---|---|
| QwenCloud, Singapore | $1.50 / $4.50 | $0.075 | $2.00 / $6.00 | $0.15 / $0.47 |
| QwenCloud, Global | $1.413 / $4.24 | $0.071 | $1.65 / $4.951 | $0.113 / $0.382 |
| OpenRouter | $1.425 / $4.275 | $0.071 | $2.00 / $6.00 | $0.15 / $0.47 |
| Vercel AI Gateway | $1.50 / $4.50 | $0.075 | $2.00 / $6.00 | $0.15 / $0.47 |
| AI/ML API | $1.20 / $3.60 | $0.06 | $1.70 / $5.10 | $0.16 / $0.47 |
AI/ML API lists the lowest Qwen4-Max price among these providers: 20% below Alibaba's Singapore rate. Its Qwen3.8 Max price is 15% below Alibaba's. OpenRouter charges about 5% less than Alibaba for Qwen4-Max, while Vercel AI Gateway matches Alibaba's Singapore price. Alibaba's Global setting is cheaper for Qwen3.8-Flash. QwenCloud also offers the free quota and Token Plan.
The chart shows how much less each option charges for Qwen4-Max than Alibaba's standard price.

Qwen Token Plan vs pay-as-you-go
If you mostly code with an AI agent, Alibaba offers a monthly subscription instead of per-token billing. The Token Plan works with Claude Code, Cursor, Qwen Code, Codex, Qoder and OpenClaw, and these are the plans for individual developers:
| Plan | Price per month | Credits per month | Concurrent agents |
|---|---|---|---|
| Lite | $6 ($3 for new users) | 20,000 | 1 to 2 |
| Essential | $10 ($5 for new users) | 45,000 | 2 to 3 |
| Standard | $18 | 80,000 | 3 to 4 |
| Pro | $43 | 200,000 | 6 to 8 |
New-user prices last until 23:59 on November 30, 2026 (UTC+8).
Compare the plan with paying per token. The $6 of the Lite plan buys about 4 million Qwen4-Max input tokens on QwenCloud and about 5 million on AI/ML API. If your monthly usage at these prices comes to less than $6, paying per token is cheaper. For someone who spends most of the day inside a coding agent and wants a fixed bill, the plan makes more sense. Usage is counted in Credits, and Alibaba's pages don't list how many tokens a Credit buys, so run a typical session before you pick a tier. Token Plan keys start with sk-sp- and can't use the free quota.
Is there a Qwen API free tier?
Yes. New QwenCloud accounts get a free quota, with a few conditions:
- Region. It works only in Singapore, with a key created there. In other regions, billing starts from the first token.
- Size. You usually get 1 million tokens per model, and input and output tokens come out of the same total. Since the quota is per model, you can test several models for free before you pick one.
- Snapshots. Dated versions such as qwen3.7-plus-2026-05-26 count as separate models with their own quotas.
- Expiry. The quota lasts 90 days from the day you activate your account. For models released after you sign up, the 90 days start on the release date.
- What it covers. It covers real-time calls. Batch calls and built-in tools such as web search are billed from the start.
- When it ends. If you've added payment details, calls switch to pay-as-you-go. If you haven't, they stop with an error until you do. Turn on the "Free quota only" option if you'd rather have calls blocked than billed.
The Qwen Chat app is free to use, but it doesn't come with API access. So for a free Qwen API, this quota is the official route.
How to get a Qwen API key
You create a key in the QwenCloud console, and it works only in the region where you create it.
- Sign up or sign in at home.qwencloud.com.
- Pick Singapore in the top right corner if you want the free quota.
- Open API Keys, click Create API key, add a description and click Generate Key.
- Copy the key right away, because it's shown just once.
- To keep using the API after the free quota, click Set up payment on the Free Tier page.
The API is OpenAI-compatible, so any OpenAI client works. This first request sets the Singapore base URL and sends a message to Qwen4-Max:
QWEN_BASE_URL=https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1
curl "$QWEN_BASE_URL/chat/completions" \
-H "Authorization: Bearer $QWEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen4-max",
"messages": [{"role": "user", "content": "Say hello in one sentence."}]}' A 401 error means the key doesn't match the base URL: it comes from another region, or it's a Token Plan key.
FAQ
These answers use the prices and limits listed above as of November 25, 2026.
What is the cheapest Qwen model and provider?
Qwen3.7-Flash starts at $0.03 input and $0.13 output per million tokens on QwenCloud. Among the providers compared here, AI/ML API lists the lowest prices for Qwen4-Max and Qwen3.8-Max.
Can I get a Qwen API key for free?
Yes. The key is free, and new accounts get about 1 million free tokens per model.
What are the Qwen API rate limits?
On the Global setting, Qwen4-Max allows 30,000 requests and 5 million tokens per minute. Above that you get a 429 error, and the limit resets within a minute.
How do I work out what a Qwen API request costs?
Multiply input and output tokens by their prices. On Qwen4-Max, 2,000 input and 500 output tokens cost about half a cent.
Does web search cost extra?
Yes, $10 per 1,000 calls on top of the tokens.
Sources
- QwenCloud: Model pricing
- QwenCloud: Free quota for new users
- QwenCloud: Token Plan for individuals
- AI/ML API: Model pricing
- DeepSeek: Models and pricing
- OpenRouter: Qwen4 Max pricing