Models
Qwen Models: Qwen3.8 Sizes, Licences and Prices
Checked 2026-10-31
Loading poll...
Qwen is Alibaba's model family, and Qwen3.8 is the current open generation as of 31 October 2026. The one most people should try is Qwen3.8-27B: Apache-2.0, dense, 262,144 tokens of native context and image and video input. The flagship, Qwen3.8-2.4T-A95B, has 2.4 trillion parameters and a custom licence. The hosted versions are Qwen3.8-Max, 27B and Flash.
The Qwen3.8 lineup
All facts below come from the Hugging Face cards and API metadata, plus Alibaba Cloud's pricing page, read on 31 October 2026.
Qwen3.8-27B | Qwen3.8-Flash-Next | Qwen3.8-2.4T-A95B | |
|---|---|---|---|
Released | 5 Aug 2026 | 24 Aug 2026 | 8 Aug 2026 |
Architecture | Dense, 64 layers | MoE, 125B total with 6B active, plus 51B n-gram embedding and 4B MTP | MoE, 92 layers, 512 experts, 10 routed plus 1 shared, 95B active |
Total parameters | 27B | About 180B in safetensors | 2.4T |
Licence | Apache-2.0 | qwen-community-1.0 | qwen3.8-max (custom) |
Context | 262,144 native, to 1M | 262,144 native, to 1M | 262,144 native, to 1,010,000 |
Input | Text, image, video | Text and image (vision encoder) | Text only |
Thinking | On by default, can be switched off | Per card | Always on, cannot be turned off |
Hosted version | Qwen3.8-27B ("coming soon" on the card) | Qwen3.8-Flash | Qwen3.8-Max |
There are also FP8 builds of the 27B and Flash-Next models on Hugging Face, which roughly halve memory against BF16.
What the names mean
Qwen publishes weights and a hosted product that share a family but differ in features. The 2.4T card says Qwen3.8-Max is the official version based on those weights, with extras such as vision input, non-thinking support, a default 1M context and built-in tools. The 27B card says a hosted version with 1M default context and built-in tools is coming. So the downloadable model is the base, and the hosted one is the product. If you self-host the 2.4T model you do not get Max's vision input.
Licences
Qwen3.8-27B is Apache-2.0. Nothing to report, nothing to renegotiate.
Qwen3.8-2.4T-A95B carries the Qwen3.8-Max License, which we read. It starts as a broad permission grant and then adds two conditions.
- Products with more than 100 million monthly active users built on the model or derivatives have a display condition (the file's text is cut in our extraction after that clause).
- A licensee that runs a Model-as-a-Service or "AI Work Assistant" business, with group revenue above 50 million US dollars over twelve months, has an additional obligation. The licence names coding and office-productivity assistants such as Qoder and QwenWork as examples of an AI Work Assistant.
What the licensee must do once those lines are crossed is not in the text we captured:. The AI Work Assistant wording is unusual. A company that sells a coding agent powered by the weights should read it with a lawyer.
Qwen3.8-Flash-Next is tagged qwen-community-1.0. We did not read it:.
Hosted prices
Alibaba Cloud Model Studio lists per-million-token prices. The figures below are the international rates on its pricing page, checked 31 October 2026. Alibaba says the page shows standard prices only and that promotions appear in the console.
API model | Input | Output | Context tier |
|---|---|---|---|
qwen3.8-max | $2.00 | $6.00 | Up to 1M tokens per request |
qwen3.8-27b | $0.50 | $3.00 | Up to 1M |
qwen3.8-flash | $0.15 | $0.47 | Up to 1M |
qwen3.7-max (previous) | $2.50 | $7.50 | Up to 1M |
qwen3.7-flash (previous), first tier | $0.03 | $0.13 | Up to 32K, with higher tiers above |
Model Studio also lists a Beijing region with separate lower rates, for example qwen3.8-2.4t-a95b at $1.65 input and $4.951 output. Billing details we saw: batch calls at 50 percent for supported models, cache hits at 10 percent of input price, and explicit cache creation at 125 percent. Which of these apply to which 3.8 model is not clear from the page:. One more caution: the page is a long table and our fetch flattened it, so confirm the price on the console before you commit a budget.
Set these beside the closed models. On our LLM API price comparison, Sonnet 5.5 is $2 and $10 and Opus 5.5 is $4 and $20. Qwen3.8-Max at $2 and $6 undercuts Sonnet on output, and 27B at $0.50 and $3 undercuts it much more.
Published scores
The following are vendor-reported on Qwen's own cards. Qwen ran its own models and, as the card notes explain, reported the best published score across harnesses for others.
Qwen3.8-Max (the 2.4T weights, hosted)
Benchmark | Qwen3.8-Max | Opus 4.8 | GPT 5.6 Sol (max) | Qwen3.7-Max |
|---|---|---|---|---|
Terminal Bench 2.1 | 86.6 | 84.6 | 88.8 | 74.5 |
SWE-bench Pro | 67.7 | 69.2 | 64.6 | 60.6 |
DeepSWE 1.1 | 56.6 | 59.0 | 73.0 | 21.6 |
NL2Repo-Bench | 55.9 | 69.4 | not reported | 47.2 |
Toolathlon Verified | 72.5 | 76.2 | 74.9 | 49.7 |
GPQA Diamond | 92.6 | 92.0 | 94.1 | 92.4 |
HLE with tools | 56.2 | 57.9 | 58.0 | 53.5 |
Source: Qwen3.8-2.4T-A95B model card. Terminal Bench 2.1 for Qwen was run with Claude Code (average of 10 runs, 5-hour timeout); the other models' scores are the best published across harnesses. A note on the card also says Fable 5 results may involve fallbacks.
Qwen3.8-27B
Benchmark | Qwen3.8-27B | Qwen3.6-27B | Qwen3.7-Plus |
|---|---|---|---|
Terminal Bench 2.1 (Terminus) | 73.0 | 63.4 | 64.0 |
SWE-bench Pro | 61.7 | 53.5 | 57.6 |
DeepSWE 1.1 | 42.2 | 13.3 | 14.2 |
LiveCodeBench v6 | 90.3 | 83.9 | 89.6 |
OSWorld-Verified (computer use) | 84.3 | 63.9 | 73.3 |
GPQA Diamond | 89.2 | 87.8 | 90.3 |
Source: Qwen3.8-27B model card, vendor-reported. On that card Claude Opus 4.6 Max is shown at 78.2 on Terminal Bench 2.1 and 53.4 on SWE-bench Pro. The 27B model beating an older Opus on SWE-bench Pro is Qwen's claim, with problem tasks "corrected" by Qwen, which is a different benchmark than the public version. Treat it as a pointer.
What Z.ai's card says about Qwen3.8-Max
Z.ai's GLM-5.3 card lists Qwen3.8-Max at 86.6 on Terminal Bench 2.1, 56.6 on DeepSWE and 55.9 on NL2Repo, matching Qwen's own table, and 78.5 on CyberGym. It is a useful cross-check because a rival repeated the numbers. See our best open source LLM for coding page for the cross-lab table.
Running Qwen3.8-27B yourself
The card recommends SGLang, vLLM or TokenSpeed for production, and works with Hugging Face Transformers. Our arithmetic puts the weights at about 56 GB in BF16, so the realistic options are:
Setup | Fits? |
|---|---|
One 80 GB GPU, BF16 | Yes, with limited room for long-context cache |
One 48 GB GPU, FP8 or 4-bit | Yes, with a shorter context |
One 24 GB GPU, 4-bit | Tight; short context only |
Apple silicon Mac with 64 GB or more unified memory, quantised | Plausible; we did not test |
The card's guidance matters in practice:
- Thinking is on by default. Turn it off per request for fast answers. With thinking on, use temperature 1.0, topp 0.95 and topk 20. For non-thinking, the card recommends temperature 0.7, top_p 0.80 and a presence penalty of 1.5.
- Preserved thinking is on by default, which keeps reasoning from earlier turns. That helps agents stay consistent but uses more context.
- For anything past 262,144 tokens, set YaRN rope scaling in the model configuration. The card shows the exact override for vLLM, SGLang and TokenSpeed, and advises changing it only when you need long inputs, because a fixed scaling factor can slightly hurt short-text quality.
For a serving-tool comparison read Ollama vs vLLM. Ollama's catalogue names for Qwen3.8 were not confirmed:.
The 2.4T model is a different class of job. At about 2.4 trillion parameters the repository's weight files total roughly 4.9 TB according to the Hugging Face API, so it needs a multi-node GPU deployment. Rent GPUs from Runpod, Modal or Lambda only if you have a strong reason not to use the API.
First run: serve the 27B with vLLM
The card gives full recipes; the shape of a first run is short. Install a recent vLLM, point it at the Hugging Face repository and set the context you actually need rather than the maximum.
vllm serve Qwen/Qwen3.8-27B --max-model-len 262144Treat that line as a sketch, not the card's exact command:. Once the server is up, any OpenAI-compatible client can call it. Send a thinking request first and a non-thinking one second, and compare latency. With thinking on, the model writes reasoning inside think tags before the answer, so budget a few thousand extra output tokens per request for hard prompts. For an agent loop, leave preserved thinking on, since the card says it helps decisions stay consistent between turns.
Cost arithmetic at agent scale
Hosted price only means something against a workload. Take an agent run that reads 3 million input tokens and writes 300,000 output tokens, which is plausible for a multi-hour repository task. At Alibaba's international rates that is $6.00 for input plus $1.80 for output on qwen3.8-max ($7.80), $1.50 plus $0.90 on qwen3.8-27b ($2.40), and $0.45 plus about $0.14 on qwen3.8-flash (about $0.59). Cache hits and batch discounts would lower those, and long thinking traces would raise the output side. The point is the ratio: the same run is about three times cheaper on 27B than on Max and about thirteen times cheaper on Flash, before accounting for how many runs fail. Failures matter more than list price, so measure cost per merged change on your own repositories.
Choosing between 27B and Flash-Next
Both are open, both accept images, and both extend to 1M tokens. They differ in what they trade.
Question | Qwen3.8-27B | Qwen3.8-Flash-Next |
|---|---|---|
Licence | Apache-2.0 | qwen-community-1.0 (unread) |
Compute per token | All 27B parameters every token | About 6B active parameters |
Memory to hold the weights | About 56 GB BF16 | About 360 GB BF16 for 180B, by our arithmetic |
Best for | A single big GPU | Throughput on a node that can hold it |
A mixture-of-experts model like Flash-Next is quick per token but still needs every expert in memory. That makes the dense 27B the better fit for one GPU despite its higher per-token compute. Flash-Next suits a server with several GPUs where you want high throughput. Its card describes a hybrid attention design aimed at cutting long-context latency, which Qwen says is a design goal; we have no measured speed figures to report:.
Where Qwen is served
Alibaba Cloud Model Studio is the maker's own API, with international and Beijing regions. Qwen3.8-27B's card links Qwen Cloud (qwencloud.com) as the official managed service. Third-party hosts such as Hugging Face Inference, Replicate and Cloudflare Workers AI serve various Qwen models, but we did not confirm which Qwen3.8 builds each carries:.
Which coding agents can use Qwen
Any agent with a custom OpenAI-compatible endpoint can call a Qwen model served by vLLM or SGLang, or Alibaba's API. Qwen's own benchmark notes say Qwen3.8-Max scored best inside the Claude Code harness, and Z.ai ran Qwen3.8-Max in Claude Code for its ExploitGym tests, so Claude Code is a workable front end. Alibaba's licence text mentions Qoder as its own AI Work Assistant product. For third-party options see Claude Code, OpenCode and Cline. Anthropic-format endpoint support on Alibaba Cloud was not confirmed:.
Who should pick Qwen
You are | Pick |
|---|---|
Wanting a single-GPU model with image and video input | Qwen3.8-27B |
Building a product on open weights with no licence conditions | Qwen3.8-27B (Apache-2.0) |
Wanting the most capable Qwen without running hardware | Qwen3.8-Max through the API |
Optimising API cost per request | Qwen3.8-Flash at $0.15 and $0.47 |
Selling an AI coding assistant | Read the Qwen3.8-Max AI Work Assistant clause, or use the 27B |
Comparing with Meta | See Qwen vs Llama |
Limits to know about
- Text-only flagship. The downloadable 2.4T model has no vision input. For images at scale use 27B or Flash-Next.
- Thinking cannot be disabled on the flagship. Every reply starts with reasoning, so latency and token use are higher than a non-thinking model.
- Native 256K, extended 1M. The long-context mode relies on YaRN and costs memory.
- Licence differences inside one family. Three models, three licences. Do not assume the 27B terms cover the flagship.
Our take
Qwen3.8-27B is the easiest recommendation on this page: permissive, mid-sized, multimodal and well documented. For a hosted flagship, Qwen3.8-Max is priced below Claude Sonnet 5.5 on output, though we have no independent comparison of quality. The part to watch is the licence on the largest weights, which includes a clause aimed at coding and productivity assistants. See open source LLM for the full licence table and DeepSeek models for the closest MIT-licensed rival.
Product names are used descriptively. We are not affiliated with Alibaba.
Questions
Is Qwen3.8 open source?
Qwen3.8-27B is Apache-2.0 on Hugging Face. The 2.4T-A95B flagship uses the custom Qwen3.8-Max licence and Qwen3.8-Flash-Next uses qwen-community-1.0.
What is the context window of Qwen3.8?
Qwen3.8-27B is 262,144 tokens natively and extensible to 1,000,000 with YaRN. The 2.4T-A95B model is 262,144 natively and up to 1,010,000.
How much does the Qwen API cost?
On Alibaba Cloud Model Studio's international pricing, qwen3.8-max is $2 input and $6 output per million tokens, qwen3.8-27b is $0.50 and $3, and qwen3.8-flash is $0.15 and $0.47.
Can Qwen3.8-27B run locally?
Yes on a large single GPU or Apple silicon with enough memory when quantised. By our arithmetic the weights are about 56 GB in BF16.
Loading poll...