Qwen3.8-Max costs $2.00 per million input tokens and $6.00 per million output tokens through Alibaba's API (YottaLabs), a flat rate covering the model's full 1M-token context window. That's the number most Qwen API pricing roundups lead with, and it's a fine number, but it skips two things that actually change the decision. First, Alibaba runs pricing across at least six distinct regions, including a China-domestic endpoint and an international one with its own legal entity and compliance posture, so "the Qwen API" isn't one uniform product. Second, and this is the part that trips people up: the open-weight checkpoint you'd actually self-host, Qwen3.8-2.4T-A95B, dropped its vision input and its native 1M context on the way to Hugging Face. Self-hosting Qwen3.8-Max isn't a like-for-like swap the way it is with DeepSeek V4 or Kimi K2. This runs the real numbers: what every current Qwen tier costs through the API, what it takes to self-host the pieces you actually can, where the break-even falls, and what Alibaba's own privacy notice commits to.
Qwen API Pricing by Model, International vs China Endpoint
Direct answer: Qwen API pricing spans two orders of magnitude depending on tier. Qwen3.7 Flash starts at $0.03/M input under a 32K-token prompt, and Qwen3.8-Max tops out at $6.00/M output. Every rate below is quoted in USD from Alibaba Cloud Model Studio, the international endpoint; Alibaba's own documentation states pricing can differ by region, so a China-domestic account isn't guaranteed the identical number.
Qwen3.8-Max, Qwen3.7 Flash, and the Rest of the Family (Full Rate Table)
| Model | Input | Cached input | Output | Context |
|---|---|---|---|---|
| Qwen3.8-Max | $2.00/M | $0.25/M | $6.00/M | 1M tokens |
| Qwen3.5 397B | $0.60/M | not published | $3.60/M | 128K tokens |
| Qwen3.5 Plus | $0.40/M ($0.50 above 256K) | not published | $2.40/M ($3.00 above 256K) | 1M tokens |
| Qwen3.5 Flash | $0.10/M | not published | $0.40/M | 1M tokens |
| Qwen3.7 Flash (under 32K) | $0.03/M | - | $0.13/M | tiered, 1M max |
| Qwen3.7 Flash (32K-256K) | $0.10/M | - | $0.40/M | tiered, 1M max |
| Qwen3.7 Flash (256K-1M) | $0.20/M | - | $0.80/M | tiered, 1M max |
Sources: YottaLabs, benchlm.ai/alibaba/api-pricing, eesel AI.
Qwen3.8-Max's $0.25/M cached-input rate is an 8x discount off its $2.00/M cache-miss rate, and it applies to the entire 1M-token window at one flat rate, no long-prompt surcharge tier the way Flash has. That's a real advantage for agentic workloads that reuse a large system prompt or tool schema across calls: once the cache is warm, Max's effective input cost drops well below its headline number.
Flash's sticker price under 32K context is aggressive on paper: $0.03/M input is roughly 66x cheaper than Max's $2.00/M, and $0.13/M output is roughly 46x cheaper than Max's $6.00/M. But that's the cheapest bracket only. Push past 256K tokens of context and Flash's own rate climbs to $0.20/$0.80, a 6.7x jump from its headline number (eesel AI). If your prompts regularly run long, price against the bracket you'll actually land in, not the one on the landing page.
Notably absent from any pricing tracker: published API rates for Qwen3.7 Plus or Qwen3.7 Max. Both ship through the same QwenCloud API as Flash, but neither has a widely indexed per-token rate as of this post. If you're evaluating either one, confirm current pricing directly in the console before budgeting.
Two Endpoints, Same Sticker Price: DashScope China vs Alibaba Cloud Model Studio International
Alibaba's own Model Studio documentation lists six operating regions: China (Beijing), China (Hong Kong), Singapore, Japan (Tokyo), Germany (Frankfurt), and US (Virginia), and states plainly that "regions differ in endpoints and base URLs, API keys (not interchangeable across regions), supported models, platform features, and pricing" (Alibaba Cloud). DashScope, the brand name most third-party trackers use for Alibaba's model API, spans the same international footprint: Singapore, US, and Frankfurt regions sit alongside the China-domestic endpoint under that name (TheRouter.ai). The international pay-as-you-go rates in the table above run through the Singapore-anchored ap-southeast-1 endpoint, billed in USD; Alibaba Cloud added Hong Kong and Frankfurt regions to that international footprint in March 2026, and Virginia carries no free-trial quota the way Singapore does (eesel AI).
The practical takeaway: every dollar figure quoted across Qwen pricing trackers, including this post, comes from that international console, not a guaranteed universal number. If your account provisions through the China-domestic side of DashScope, don't assume the international rate transfers automatically. Confirm the number directly against your own console before budgeting at scale, and read the next section before assuming the two endpoints are interchangeable on anything besides price.
Self-Hosted Qwen Cost Per Token: What It Takes to Run It Yourself
Direct answer: Two open-weight Qwen releases matter here, and neither is a full substitute for the hosted API. Qwen3.8-2.4T-A95B is the flagship's open checkpoint, but it's text-only with no native 1M context. Qwen3.8-27B is a smaller, genuinely capable dense model that fits on a single GPU and keeps the vision encoder. Pick based on which capability gap you can live without.
The Open-Weight Catch: Qwen3.8-2.4T-A95B Is Text-Only, the API Isn't
Alibaba's Qwen team called Qwen3.8-Max the first time it's open-sourcing the weights of a Qwen-Max-class model (DataCamp), a real departure from keeping its flagship tier API-only. The checkpoint, named Qwen3.8-2.4T-A95B, landed on Hugging Face August 12, 2026. But it shipped with real capability cuts: no vision input and no native 1M-token context, the two things that make the hosted Qwen3.8-Max a genuinely different product from a text-only chat model (ExplainX). It also ships under a custom qwen3.8-max license with reported revenue-sharing terms for large commercial users, a departure from the Apache 2.0 terms most recent Qwen releases have used.
That gap is the core reason "self-host Qwen3.8-Max" isn't the clean apples-to-apples swap it is for DeepSeek V4 or Kimi K2, where the open checkpoint and the hosted model are the same weights. If your workload sends images or needs the full 1M-token window, the open weights don't cover it yet, no matter how big a cluster you provision. On sheer scale, the same 2.4 trillion total parameters that make it capable also make it a genuinely large infrastructure commitment: a full FP8 deployment needs a 24x H200 SXM5 cluster or two 8-GPU B300 nodes, the exact sizing math the Qwen3.8-Max GPU requirements guide works through in detail. Total parameter count decides the cluster, not the roughly 95B active per token; the router can send any token to any expert, so every expert's weights sit resident in VRAM whether or not they fire on a given forward pass.
The Practical Self-Host Pick: Qwen3.8-27B on a Single GPU
If the flagship's cluster requirement or its text-only open weights rule it out, Qwen3.8-27B is the model actually worth deploying yourself. It's a dense 27.78B-parameter model released on Hugging Face August 14, 2026 under Apache 2.0, and unlike the 2.4T-A95B checkpoint, it kept its vision encoder: native text and image input, a 262,144-token context window, and no revenue-sharing clause (Yotta Labs).
| Precision | Weight size | Fits |
|---|---|---|
| BF16 | ~55.6GB | Single A100 80GB or H100 80GB, comfortable KV cache headroom |
| FP8 | ~28GB | Single L40S 48GB |
| 4-bit GGUF | ~17-19GB | Single RTX 4090 24GB |
Source: ofox.ai.
Live Spheron GPU pricing, fetched 19 Aug 2026:
| GPU | On-demand $/hr | Spot $/hr |
|---|---|---|
| RTX 4090 | $0.53 | not currently listed |
| L40S | $0.96 | $1.07 |
| A100 80G SXM4 | $1.43 | $1.15 |
L40S spot running above its own on-demand rate is a real snapshot, not a typo: Spheron aggregates pricing across 5+ providers, so the cheapest on-demand listing and the cheapest spot listing don't always come from the same provider at the same moment. Pull current rates before committing to a tier. For BF16 with real headroom, A100 GPU rental is the safer single-GPU pick at $1.43/hr on-demand; the RTX 4090 at $0.53/hr is the cheapest entry point once a 4-bit quantized checkpoint is available. Neither Alibaba's official GGUF nor a widely adopted community quantization had settled as the default as of this post, so budget for BF16 or FP8 first and treat the 4-bit path as a cost-reduction step once you've validated quality on the full-precision checkpoint.
We don't have a measured throughput number for Qwen3.8-27B's hybrid attention architecture yet, so resist the urge to back into a cost-per-token figure from an assumed tokens/sec rate. Benchmark your actual prompt shapes on the GPU you provision; the GPU cost-per-token benchmark covers the methodology for turning a load test into a real $/M number, and the best open-source LLMs to self-host VRAM guide covers how to size hardware for models below the flagship tier generally.
The Break-Even Point Where Self-Hosting Qwen Beats the API
Because the open-weight flagship isn't a full substitute for the API, the break-even math below tells you what a comparable cluster costs to run, not whether it delivers the same product. Treat it as a cost ceiling for the text-only, non-1M-context version of Qwen3.8-Max, not a guarantee you're replacing everything the API does.
Flagship Math: Qwen3.8-Max API vs a Multi-Node H200/B200 Cluster
At an 80/20 input/output split, the shape most RAG and agentic workloads land closest to:
Qwen3.8-Max blended (80/20) = (0.8 x $2.00) + (0.2 x $6.00) = $1.60 + $1.20 = $2.80/M tokensAt a more output-heavy 60/40 split, that climbs to $3.60/M. Both ignore the $0.25/M cached-input rate; a workload with meaningful cache-hit traffic pushes the real blended rate lower and every crossover below moves out further in the API's favor.
Cluster costs, using live Spheron single-GPU rates fetched 19 Aug 2026 (H100 SXM5 $2.65/$2.20, H200 SXM5 $4.22/$3.31, B200 SXM6 spot $3.89, B300 SXM6 $9.16/$5.81 on-demand/spot) multiplied by cluster size, an approximation since bundle offers vary by region and availability:
| Cluster | Quantization | On-demand $/day | Spot $/day |
|---|---|---|---|
| 8x B200 SXM6 (1 node) | Quantized | not currently listed | $746.88 |
| 16x H100 SXM5 (2 nodes) | Quantized | $1,017.60 | $844.80 |
| 8x B300 SXM6 (1 node) | FP8, tight margin | $1,758.72 | $1,115.52 |
| 24x H200 SXM5 (3 nodes) | Full FP8 | $2,430.72 | $1,906.56 |
Against the $2.80/M blended rate, here's where each cluster crosses over on pure infrastructure cost:
| Cluster | Crossover volume | API cost at crossover |
|---|---|---|
| 8x B200 spot | ~267M tokens/day | $746.76 |
| 16x H100 spot | ~302M tokens/day | $844.76 |
| 16x H100 on-demand | ~363M tokens/day | $1,017.52 |
| 24x H200 spot | ~681M tokens/day | $1,906.52 |
| 24x H200 on-demand | ~868M tokens/day | $2,430.68 |
The quantized budget path crosses over first, somewhere in the 267M-363M tokens-a-day range depending on spot availability. Full FP8 on the production 24-GPU H200 cluster doesn't clear the API until you're pushing 681M-868M tokens a day. Below those volumes, paying Alibaba per token is cheaper on infrastructure cost alone, and that's before factoring in that the cluster is running a text-only, 262K-to-standard-context checkpoint instead of the multimodal, 1M-context model the API actually serves.
Pricing fluctuates based on GPU availability. The prices above are based on 19 Aug 2026 and may have changed. Check current GPU pricing → for live rates.
Budget Math: Qwen3.7 Flash API vs a Single-GPU Self-Host
Flash itself has no downloadable weights: the entire Qwen3.7 line, Flash, Plus, and Max, shipped closed, with no Hugging Face repo, GGUF, or AWQ checkpoint for any of them, a real break from earlier Qwen generations that opened weights on day one (eesel AI). So the honest budget comparison isn't Flash against itself, it's Flash against the closest open-weight analog, Qwen3.6-35B-A3B.
Our Qwen3.7 Flash GPU requirements deep-dive already ran that math using OpenRouter's real blended customer rates for Flash: normalized to cost per total token, Flash beats a self-hosted Qwen3.6-35B-A3B cluster at every input:output ratio tested, from $0.097/M at a 1:1 ratio down to $0.062/M at a 5:1, input-heavy ratio. Self-hosted spot H100 at realistic 65% utilization floors around $0.16/M, and on-demand around $0.37/M. Read that post for the full table and methodology; the short version here is that for input-heavy vision and agentic workloads, Flash's tiered API pricing is genuinely hard to beat on infrastructure cost alone, even before counting the engineering time of running your own cluster.
Data Residency: Why Self-Hosting Matters More for Qwen Specifically
No token volume changes this part of the decision, and for Qwen specifically it's a more nuanced call than for some other Chinese labs, because Alibaba genuinely operates two separate compliance postures depending on which endpoint you use.
What Alibaba's Own Privacy Notice Commits To
Alibaba Cloud Model Studio's privacy notice states directly: "Alibaba Cloud strictly protects your data privacy and will never use your data for model training" (Alibaba Cloud). It also commits to AES-256 encryption for data in transit and has achieved SOC 2 compliance with an unqualified opinion covering Security, Availability, and Confidentiality. That's a meaningfully stronger public compliance posture than DeepSeek's API, which stores prompt data on servers in China, where Article 7 of China's National Intelligence Law compels cooperation with state intelligence work, and trains on API data by default.
The gap Alibaba's notice leaves open is data residency itself. Model Studio spans six regions, including China (Beijing), and the notice doesn't specify which region a given account's data is pinned to by default. If your account was provisioned through the China-domestic side of DashScope rather than the international Model Studio console, the SOC 2 report and the "never trains on your data" commitment may not travel with it in the same form; Alibaba's own documentation only confirms that regions differ in "endpoints and base URLs, API keys, supported models, platform features, and pricing," not that compliance posture is uniform across all six. Before sending regulated or IP-sensitive data through any Qwen endpoint, confirm which specific region your account routes through, not just which brand name is on the console.
For teams that need a hard guarantee regardless of which Alibaba entity ends up handling a request, that's a self-hosting decision independent of the token-volume math above. Self-hosted instances on Spheron run with SSH root access and no shared GPU tenancy, the baseline for treating self-hosting as a genuine compliance lever rather than just a cost one.
Qwen API Pricing vs Self-Hosted: Decision Framework
| Use the Qwen API when | Self-host on GPU cloud when |
|---|---|
| Your workload needs vision input or the full 1M-token context (only the API has both today) | You've confirmed a text-only, 262K-context self-host covers your actual use case |
| Daily volume is under roughly 270M-870M tokens, depending on your quantization tier | Volume genuinely clears that range for the cluster tier you'd run |
| You're on the international Model Studio endpoint and its SOC 2 posture meets your compliance bar | Any data-residency, BAA, or IP-sensitivity requirement applies regardless of endpoint |
| You want the lowest engineering overhead and Alibaba's tiered pricing already fits your budget | You already operate GPU capacity and want full control over prompt and completion data |
If you're weighing this same tradeoff against a different lab, the DeepSeek API pricing vs self-hosted breakdown covers the closest analog on the China-residency question, the Kimi API pricing vs self-hosted post runs the same framework against Moonshot's Singapore-only storage, and Mistral API pricing vs self-hosted covers a lab with no China-residency question at all. For a broader look at where Qwen 3 sits against other open models on cost per token, see DeepSeek V3.2 vs Llama 4 vs Qwen 3, and for a lighter-weight open Qwen coding model than the 2.4T flagship, Qwen3-Coder-Next runs on a single node at 80B total parameters. If you're pricing out a Blackwell cluster specifically, NVIDIA B200 cloud pricing compares rates across providers. Spheron's docs cover instance provisioning in more depth if you're standing up your first cluster.
If you're evaluating Qwen3.8-Max for a workload that doesn't need vision or the full 1M context, benchmark Qwen3.8-27B or the open Qwen3.8-2.4T-A95B checkpoint against your own eval set on a rented GPU before committing to either the API or a multi-node cluster.
Spheron H200 instances → | Check B300 availability → | View all GPU pricing →
Frequently Asked Questions
It depends on the tier. Qwen3.8-Max, Alibaba's flagship, costs $2.00 per million input tokens and $6.00/M output, plus a discounted $0.25/M for cached input, on a full 1M-token context window (source: YottaLabs). Qwen3.7 Flash prices in three brackets by prompt length: $0.03/$0.13 per 1M input/output tokens under 32K context, $0.10/$0.40 from 32K-256K, and $0.20/$0.80 from 256K-1M (source: eesel AI). Qwen3.5 397B runs $0.60/M input and $3.60/M output on 128K context, Qwen3.5 Plus runs $0.40/M input and $2.40/M output on 1M context, and Qwen3.5 Flash runs $0.10/M input and $0.40/M output on 1M context (source: benchlm.ai).
Blended at an 80/20 input/output split, Qwen3.8-Max's API runs $2.80/M tokens uncached. Against a budget 8x B200 SXM6 quantized node on spot, the crossover lands around 267M tokens a day. Against a 16x H100 SXM5 quantized cluster, it's roughly 302M tokens a day on spot and 363M on-demand. Against a full-precision 24x H200 SXM5 cluster, it's roughly 681M tokens a day on spot and 868M on-demand. But the open-weight checkpoint you'd actually deploy at that scale, Qwen3.8-2.4T-A95B, is text-only with no native 1M context, so this isn't the same product as the API.
It depends heavily on which endpoint your account actually runs through. Alibaba Cloud Model Studio's privacy notice states it will 'never use your data for model training,' encrypts data in transit with AES-256, and has SOC 2 compliance with an unqualified opinion covering Security, Availability, and Confidentiality. That's a stronger public compliance posture than DeepSeek's API, which stores data in China under National Intelligence Law exposure and trains on submitted content by default. But Model Studio spans six regions, including China (Beijing), and its own documentation doesn't specify which region a given account's data is pinned to by default, so residency isn't automatic just because you signed up on the international console.
No. The open-weight release, Qwen3.8-2.4T-A95B, landed on Hugging Face August 12, 2026, but it's text-only and lacks the native 1M-token context window the hosted API serves. The full multimodal, long-context Qwen3.8-Max remains API-only. If your workload needs vision input or the full 1M context, self-hosting today means running a reduced-capability version of the model, not a drop-in replacement for the API.






