The Qwen API, sold through Alibaba Cloud Model Studio, is billed per token. Prices range from $0.03 per 1M input tokens on Qwen3.7-Flash to $7.50 per 1M output tokens on Qwen3.7-Max. The current flagship Qwen3.8-Max costs $2.00 per 1M input tokens and $6.00 per 1M output tokens. The Batch API cuts standard rates in half, and cached input tokens cost 90% less than a fresh input token.

Our team at Cabina.AI tracks pricing for Alibaba Cloud directly, since we give developers access to Qwen3.8-Max alongside 55+ other models through one subscription – when a rate changes, we see it firsthand. By our observation, Qwen pricing updates track almost every new dated model snapshot Alibaba ships, closer to a running changelog than the quarterly review cycle most labs run on.

Qwen API Pricing Table – All Models

Qwen models api pricing splits across three main families. Max targets frontier reasoning, and Plus is the balanced mid-tier pick for everyday traffic. Flash is built for high-volume, latency-sensitive work, alongside a coder-focused model and a handful of open-weight releases billed on the same pay-as-you-go card. All prices below are the international (Singapore) rate in US dollars per 1 million tokens, at each model base context tier. Cached input reflects the standard 10% cache-hit multiplier Alibaba documents for models that support context caching; a dash means that model does not currently list the discount.

ModelInputCached inputOutputBase context tier
Qwen3.8-Max$2.00$0.20$6.00Flat to 1M
Qwen3.7-Max$2.50$0.25$7.50Flat to 1M
Qwen-Max (classic)$1.60–$6.40No tiers
Qwen3.7-Plus$0.40$0.04$1.60Up to 256K
Qwen3.8-Flash$0.15$0.015$0.47Flat to 1M
Qwen3.7-Flash$0.03$0.003$0.13Up to 32K
Qwen-Flash (classic)$0.05$0.005$0.40Up to 256K
Qwen3-Coder-Flash$0.30$0.03$1.50Up to 32K
Qwen3.8-2.4T-A95B (open-weight)$2.00$0.20$6.00Flat to 1M
Qwen3.8-27B (open-weight)$0.50$0.05$3.00Flat to 1M

We noticed the legacy Qwen-Max alias is priced oddly against the newer flagship. At $1.60 input it looks cheaper than Qwen3.8-Max $2.00, but its $6.40 output rate is actually higher than Qwen3.8-Max $6.00. It is also restricted to non-thinking mode only, so the lower input number alone does not make it the cheaper choice for most reasoning-heavy workloads.

Several models price differently depending on how much context a request carries. Qwen3.7-Plus costs $0.40 input and $1.60 output per 1M tokens up to 256K tokens of context, then jumps to $1.20 input and $4.80 output beyond that. Qwen3.7-Flash is tiered in three steps, from $0.03 input and $0.13 output under 32K tokens up to $0.20 input and $0.80 output between 256K and 1M tokens. Qwen3-Coder-Flash follows the same four-step pattern, rising from $0.30 input and $1.50 output under 32K tokens to $1.60 input and $9.60 output between 256K and 1M. A request that crosses one of these thresholds bills its entire token count at the higher tier, not just the tokens past the threshold.

Model Studio also prices the same model differently by region. The Singapore (international) dollar rates used throughout this guide differ from the mainland Beijing yuan pricing and from the separate Virginia, US endpoint, so it is worth confirming which region an API key actually belongs to before estimating a bill. Some Qwen models are also distributed through third-party inference marketplaces such as Fireworks AI and OpenRouter, which set their own per-token rates independent of the Alibaba Cloud prices in this guide.

Qwen also prices a few non-chat endpoints on their own unit, separate from the chat-model table above:

ModelTypePrice
text-embedding-v4Embeddings$0.07 per 1M tokens
qwen3-rerankReranking$0.10 per 1M tokens

Both come with their own 1 million-token free trial quota on top of the free quota each chat model gets separately, so testing embeddings does not eat into a chat model trial allowance.

Qwen API Cost Calculator

Pick a model and enter expected monthly input and output token volume to estimate a monthly bill, with or without the Batch API discount.

The Batch API discount covers most current Qwen models, but does not stack with context caching on the Max and Flash families.

$76.00 / month
Qwen3.8-Max – $2.00 input / $6.00 output per 1M tokens

Estimate only. Standard first-party Qwen API rates at each model’s base context tier, excluding context-length tiering beyond that tier, prompt caching, the Coding Plan subscription, and embeddings or reranking pricing.

Qwen API Request Example

The example below sends one authenticated request to Qwen3.8-Max through the OpenAI-compatible chat completions endpoint Alibaba Cloud documents for the Singapore (international) region.

curl --location 'https://{your-workspace-id}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1/chat/completions' \
  --header "Authorization: Bearer your-api-key-here" \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "qwen3.8-max",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant."
      },
      {
        "role": "user",
        "content": "Summarize this in one sentence."
      }
    ]
  }'

The same request using the official OpenAI Python client, which Alibaba Cloud documents as a drop-in replacement for first-party OpenAI calls:

from openai import OpenAI

client = OpenAI(
    api_key="your-api-key-here",
    base_url="https://{your-workspace-id}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
)

completion = client.chat.completions.create(
    model="qwen3.8-max",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Summarize this in one sentence."}
    ]
)

print(completion.choices[0].message.content)

Replace {your-workspace-id} with the workspace ID shown next to your API key in the Model Studio console. Alibaba Cloud routes the Singapore endpoint through a workspace-specific subdomain rather than one fixed base URL, unlike most other providers. Model aliases such as qwen3.8-max and qwen3.7-flash always point to the most recent dated snapshot Alibaba publishes for that tier, so the same code keeps working through future model updates without an edit. Qwen api cost shifts automatically the moment a new snapshot rolls in, sometimes before the published price changes anywhere else you would think to check.

Pricing Tiers for Alibaba Cloud, Explained

Qwen api pricing breaks down into more than the base per-token rate in the table above. Two further mechanics matter: an async batch discount, and a separate coding-agent subscription that sits outside token billing entirely.

Batch API (-50%)

Batch processing runs qwen-max, qwen-plus, qwen-flash, and most of the Flash-family models asynchronously at 50% of the real-time rate, covering both input and output tokens. Alibaba documents one restriction worth knowing: batch and context-cache discounts cannot both apply to the same request on the Max and Flash model families, so a cached batch call still bills at the batch rate alone, not a stacked discount. Turnaround runs on a background queue rather than a guaranteed SLA, so it fits workloads that are not waiting on a live user, the same trade-off every provider batch tier makes.

Alibaba Cloud Coding Plan (Qwen Code subscription)

Alibaba Cloud also sells a flat-rate Coding Plan for Qwen Code, the open-source CLI coding agent, separate from pay-as-you-go API pricing. The Pro tier costs $50 a month. It caps usage at 6,000 requests within any rolling 5-hour window. Weekly usage tops out at 45,000 requests, and the monthly ceiling sits at 90,000, whichever limit is reached first. A simple task typically uses 5 to 10 requests, and a complex one can run 10 to 30 or more, so the cap behaves more like a usage ceiling than a token budget. This is a separate bill from the per-token rates in the table above, worth knowing if you are searching for qwen code pricing specifically rather than the base API.

Prompt Caching and Volume Discounts

Context caching (reusing a previous prompt so the model does not reprocess it from scratch) cuts input cost sharply on repeated prefixes. Alibaba documents a flat 10% cache-hit price against the standard input rate, and a separate 125% charge for explicitly writing a new entry into the cache. How much is a token in Qwen once it is cached rather than fresh? On Qwen3.8-Max, a cached input token costs $0.20 against $2.00 for a new one, worth building into any application that resends the same system prompt or reference document across repeated calls.

Qwen uses its own tokenizer rather than OpenAI tiktoken or the SentencePiece variant Anthropic uses for Claude. Like most models trained heavily on Chinese-language data, it tends to need fewer tokens than GPT or Claude for the same stretch of Chinese text, while English token counts land close to other mainstream models. We noticed context-length tiering catches teams off guard more often than the cache discount does, since crossing the 256K boundary mid-project quietly moves an entire request to a higher per-token rate, not just the tokens past the threshold.

Alibaba Cloud does not publish a self-serve volume discount beyond batch and context caching. Heavier usage moves to a negotiated enterprise agreement through your account team, the pattern most providers follow once traffic outgrows the published rate card. Function calling works the same way it does on other providers, adding the tool definitions and tool results to the billable input count. Qwen-Agent, an open-source framework Alibaba built for creating agents on top of Qwen, connects to external tools over the Model Context Protocol (MCP) without a separate billing line of its own. Fine-tuning is its own bill too: Model Studio charges a per-hour training fee plus a dedicated hourly rate for the deployed custom model, entirely apart from the pay-as-you-go prices in this guide. Each model also carries its own queries-per-minute and tokens-per-minute cap in the console, which limits how much of the published rate you can actually spend in a given minute.

Qwen3.8-Max vs Qwen3.7-Plus vs Qwen3.7-Flash: Which Should You Use?

Qwen3.8-Max is the default pick for anything that needs the strongest reasoning Alibaba currently ships: complex coding and multi-step agent workflows, plus any task where a wrong answer costs more than the extra tokens. At $2.00 input and $6.00 output per 1M tokens, it also happens to be cheaper than the previous-generation Qwen3.7-Max it replaced, not pricier, which is not the usual direction a flagship upgrade moves in.

Qwen3.7-Plus fits teams that need a middle ground: noticeably cheaper than Max, with a 256K-token tier before the rate steps up. Output pricing lands between Max and Flash on most tasks we have tried, which makes it a reasonable default for production chat and document work that does not need frontier-level reasoning on every turn.

Qwen3.7-Flash is the right call for high-volume, latency-sensitive work such as classification or short-form extraction, where its $0.03 per 1M input tokens at the short-context tier matters more than frontier reasoning. In our experience running Qwen at Cabina.AI, most teams default to Qwen3.8-Max for anything user-facing and move only their highest-volume endpoint down to a Flash-tier model once traffic makes the per-token gap impossible to ignore.

Is the Qwen API Free?

Partly. New Model Studio accounts in the Singapore region get a free trial quota, typically 1 million tokens per eligible model, including qwen-plus and qwen-max among others, each counted separately. The quota runs for 90 days. The clock starts at account activation, unless a newer model release or an approved quota request lands later, in which case the 90 days count from that later date instead. The quota only covers real-time inference. Batch calls do not count against it, and neither does fine-tuning or model deployment. How much do qwen tokens cost once that trial quota runs out? From that point on, every token bills at the standard rate in the table above, with no ongoing consumer free tier the way a chat app sometimes offers.

If you want a lower-commitment way to try Qwen output before setting up a Model Studio account, Qwen3.8-Max is also available on Cabina.AI alongside ChatGPT, Llama, and 50+ other models under one subscription. Cabina.AI even runs some Qwen models in unlimited free mode on its own free plan, a different kind of free access than the trial quota above since it does not expire after 90 days. See how Qwen pricing compares against DeepSeek at a side-by-side comparison of DeepSeek and Qwen.

Qwen API vs DeepSeek API Pricing

Qwen api costs per model land close to DeepSeek at the high-volume end and further apart at the flagship tier, which makes sense given both labs compete directly on being the lower-cost alternative to the big Western frontier labs. We cover the full DeepSeek rate card, including the off-peak discount and both current models, in a separate DeepSeek API Pricing guide.

Qwen APIDeepSeek API
Flagship modelQwen3.8-MaxDeepSeek-V4-Pro
Flagship input / output (per 1M, peak)$2.00 / $6.00$1.32 / $3.96
Cheapest modelQwen3.7-Flash (short tier)DeepSeek-Flash
Cheapest input / output (per 1M, peak)$0.03 / $0.13$0.30 / $1.20
Cache discount90% (cache hit vs fresh input)~98% (cache hit vs cache miss)
Batch / time-based discount50% batch, most modelsNo batch tier; ~50% off-peak

From comparing Qwen and DeepSeek side by side, the bigger practical difference is not the headline rate but the billing mechanic itself. DeepSeek discounts by time of day, with rates dropping roughly in half during off-peak hours regardless of volume. Qwen discounts by context length and by opting into batch processing, a schedule a team controls directly instead of one set by the clock in Hangzhou. Use the calculator above to price a specific Qwen model against your own token volume before picking a lab to standardize on.

Qwen API Pricing FAQ

Is the Qwen API free?

Not for production use. New Model Studio accounts get a free trial quota, typically 1 million tokens per eligible model, valid for 90 days. Once that quota is used or expires, every token bills at the standard per-model rate.

How much does the Qwen API cost per 1M tokens?

Qwen api pricing per million tokens ranges from $0.03 input on Qwen3.7-Flash at its shortest context tier to $7.50 output on Qwen3.7-Max. The current flagship Qwen3.8-Max costs $2.00 input and $6.00 output per 1 million tokens.

What is the cheapest and most expensive Qwen model?

Qwen3.7-Flash is the cheapest at $0.03 per 1 million input tokens under its 32K-token tier. Qwen3.7-Max is the most expensive in the core lineup by output rate, at $7.50 per 1 million output tokens, pricier than the newer Qwen3.8-Max it was replaced by. Qwen3-Coder-Flash and a couple of legacy Qwen-Plus snapshots cost more still at their longest-context tiers.

Does Alibaba offer a caching or batch discount for Qwen?

Yes to both, though not combined on the same request for the Max and Flash families. Cached input tokens cost 10% of the standard input rate, and the Batch API cuts both input and output by 50% on most current models.

What is the newest Qwen model and how much does it cost?<

Qwen3.8-Max is the newest flagship, priced at $2.00 per 1 million input tokens and $6.00 per 1 million output tokens, flat up to 1 million tokens of context. Alibaba also ships Qwen3.8-Flash, a faster, cheaper sibling at $0.15 input and $0.47 output per 1 million tokens.

How much is a token in Qwen, and does pricing differ by region?

Qwen uses its own tokenizer, so a given piece of text does not translate to the same token count it would on GPT or Claude. Pricing also differs by Model Studio region: the Singapore (international) US dollar rates in this guide are not the same as the mainland Beijing yuan pricing or the separate Virginia, US endpoint.

Does Alibaba charge extra for the Qwen Coding Plan?

Yes. The Coding Plan for Qwen Code, the CLI coding agent, is a separate $50-a-month Pro subscription capped at 90,000 requests a month, not a token-based bill against the API prices in the table above.

Categorized in:

Compare, Guide,

Last Update: October 19, 2026