DeepSeek V4.1 Flash vs Qwen3.8-Max: Which AI Wins in 2026?
A head-to-head look at DeepSeek V4.1-Flash-1017 and Alibaba Qwen3.8-Max, comparing official pricing, context windows, licensing and benchmark scores.

DeepSeek's V4.1-Flash-1017 and Alibaba's Qwen3.8-Max are both open-weight-friendly, agent-focused large language models released in 2026, but they land in different spots: V4.1-Flash-1017 is a leaner, cheaper 763-billion-parameter model built for high-volume coding and agent workloads at a fraction of the cost, while Qwen3.8-Max is a much larger 2.4-trillion-parameter "Max-class" model that trades a higher API price for stronger scores on reasoning and software-engineering benchmarks. If cost per token and self-hosting matter most, DeepSeek V4.1-Flash-1017 is the easier pick; if you need the strongest agentic coding scores and can pay Alibaba Cloud's per-token rate, Qwen3.8-Max is currently ahead on the official numbers.
Quick answer
- Best value / cheapest to run: DeepSeek V4.1-Flash-1017 — MIT-licensed open weights, $0.15/$0.60 per million input/output tokens (off-peak) on DeepSeek's own API.
- Best raw benchmark scores: Qwen3.8-Max — tops DeepSeek's published numbers on agentic coding and reasoning evals, but only via a paid, non-open-weight managed API.
- Best for fully local/offline deployment: DeepSeek V4.1-Flash-1017, whose full 763B weights are downloadable under MIT; Qwen3.8-Max itself is closed, though its 2.4T base and a smaller 27B model are open under a separate Qwen license.
- Caveat: The two companies test on different benchmark suite versions (DeepSeek uses Terminal-Bench 4.0, Qwen reports Terminal Bench 2.1), so scores below are not a strict apples-to-apples comparison — treat them as directional.
What is DeepSeek V4.1-Flash-1017?
DeepSeek V4.1-Flash-1017 is the current production model behind the deepseek-flash API endpoint, described on Hugging Face as "a minor update to DeepSeek-V4.1-Flash." Pandromeda covered the V4.1-Flash-1017 launch when it shipped, and the model remains DeepSeek's newest shipping release as of this writing. According to its Hugging Face model card, it has 763 billion total parameters, a 1-million-token context window, and ships under the permissive MIT license, with weights available in BF16, FP8 and INT8 formats. DeepSeek's own transparency page situates V4.1-Flash-1017 downstream of the base DeepSeek-V4 release from April 2026, with V4-Pro-0813 as the larger, pricier sibling in the same family.
What is Qwen3.8-Max?
Qwen3.8-Max is Alibaba's flagship managed model, described in its own documentation as "the official managed version" built on top of the open-weight Qwen3.8-2.4T-A95B checkpoint. Per the Qwen3.8-2.4T-A95B model card, the underlying model is a mixture-of-experts network with 2.4 trillion total parameters and 95 billion activated per token, 512 total experts, a native 262,144-token context window extensible to roughly 1.01 million tokens, and thinking mode permanently enabled. The managed Qwen3.8-Max adds vision input, a non-thinking mode, and a 1-million-token default context on top of that base. Alibaba's own QwenLM GitHub repository calls Qwen3.8-Max the first time the Qwen line has brought "a Qwen-Max-class model to open release," referring to the smaller companion weights (Qwen3.8-2.4T-A95B and Qwen3.8-27B) that the team published alongside the closed Max API. Pandromeda has previously written about Alibaba's pricing moves on the audio side in its coverage of the Qwen Audio 3.1 price cuts, part of the same broader Qwen push.
DeepSeek V4.1-Flash-1017 vs Qwen3.8-Max: spec comparison
| Spec | DeepSeek V4.1-Flash-1017 | Qwen3.8-Max |
|---|---|---|
| Parameters | 763B total (MoE) | 2.4T total / 95B active (MoE) |
| Context window | 1,000,000 tokens | 262,144 tokens native (open weights); 1,000,000 tokens default on the managed Max API |
| License | MIT (fully open weights) | Custom "Qwen3.8-Max License" — commercial use allowed with revenue-based conditions; the managed Max API itself is closed |
| Open weights available | Yes — full model on Hugging Face | Partial — the 2.4T-A95B base and a 27B model are open; the tuned "Max" managed service is not |
| Input price (official, per 1M tokens) | $0.15 off-peak / $0.30 peak (cache miss) | ¥12 (China) / ¥14.988 (Singapore, international) |
| Output price (official, per 1M tokens) | $0.60 off-peak / $1.20 peak | ¥36 (China) / ¥44.965 (Singapore, international) |
| Cached-input price | $0.003 off-peak / $0.006 peak | Discounted via Alibaba's separate context-cache pricing; no flat per-token figure published for Qwen3.8-Max specifically |
| Availability | DeepSeek API, Hugging Face, third-party inference hosts (e.g. Novita) | Alibaba Cloud Model Studio API, Qwen Chat; open weights via Hugging Face/ModelScope for the non-Max checkpoints |
Note on currency: Alibaba's Model Studio pricing page lists Qwen3.8-Max exclusively in Chinese yuan, even for its "International" Singapore endpoint, where it charges ¥14.988 per million input tokens and ¥44.965 per million output tokens — roughly $2 and $6 at typical exchange rates, though Alibaba does not publish a USD list price directly.
To put that in concrete terms: processing 10 million input tokens and 2 million output tokens off-peak would cost roughly $1.50 plus $1.20 on DeepSeek's deepseek-flash endpoint (about $2.70 total before any cache discount), versus on the order of ¥150 plus ¥72 (about $31 at a rough CNY-to-USD conversion) on Qwen3.8-Max's Singapore endpoint for the same volume. That gap narrows if a large share of your input is served from cache, since both vendors discount repeated context, but it's large enough that workload volume should be part of any decision, not just raw benchmark scores.
Benchmark performance: what the official numbers show
Both companies publish benchmark tables on their respective model cards, but — as flagged above — they're run on different suite versions, so treat any head-to-head gap as a rough signal rather than a verified tie-breaker.
| Benchmark | DeepSeek V4.1-Flash-1017 | Qwen3.8-Max |
|---|---|---|
| Agentic coding | Terminal-Bench 4.0: 42.3 | Terminal Bench 2.1: 86.6 (different suite version) |
| Software engineering | DeepSWE v1.1: 77.0 | SWE-bench Pro: 67.7 |
| General reasoning (Humanity's Last Exam, no tools) | 42.6 | 43.6 |
| Reasoning with tools | Not separately reported | HLE w/ tools: 56.2 |
| Graduate-level science (GPQA Diamond) | Not published on this card | 92.6 |
| Long-context recall (MRCR v2, 256K, 8-needle) | Not published on this card | 92.9 |
| Agent planning (Agents' Last Exam) | 35.4 | Not published on this card |
On the figures each company chose to publish, Qwen3.8-Max reports higher raw scores on the benchmarks it shares with DeepSeek, and it reports several additional strong results (GPQA Diamond, long-context recall) that DeepSeek's card doesn't cover at all. DeepSeek's own card instead emphasizes improvement over its predecessor, DeepSeek-V4.1-Flash, where V4.1-Flash-1017 gains roughly 5–11 points across most listed evals — the comparison DeepSeek is making is generational, not against Qwen. Readers who want independent, same-harness numbers should check a neutral benchmark aggregator rather than relying on either vendor's self-reported table alone.
DeepSeek vs Qwen for coding specifically
Coding is the most common reason people compare these two models, and it's also where the benchmark-suite mismatch matters most. DeepSeek's model card highlights DeepSWE v1.1 (77.0) and a new "ProgramBench" score of 29.1, aimed at repository-scale software tasks, plus NL2Repo-Bench (68.2) for natural-language-to-codebase generation. Qwen3.8-Max's card leans on SWE-bench Pro (67.7) and a Qwen-specific "QwenSWEBench" (80.7), and Alibaba's own announcement material (cited secondhand, not independently verified by Pandromeda) describes a multi-day autonomous coding run as its headline coding demo. Because neither company runs the other's exact suite, developers choosing between the two for day-to-day coding work should pilot both against their own repositories and CI rather than ranking them purely on the vendors' published charts.
Pricing and licensing: open weights vs managed API
The two models sit on opposite ends of the open-vs-managed spectrum. DeepSeek V4.1-Flash-1017 ships its full weights under the MIT license — about as permissive as it gets, allowing commercial use, modification and redistribution with no revenue-based strings attached — and DeepSeek's own API pricing page charges $0.15 per million input tokens and $0.60 per million output tokens off-peak (doubling during UTC peak hours), with a steep discount to $0.003 per million tokens on cached input hits.
Qwen3.8-Max is more layered. The underlying Qwen3.8-2.4T-A95B weights carry a custom "Qwen3.8-Max License" that permits commercial use but adds obligations: companies with products over 100 million monthly active users or $20 million in monthly revenue must visibly credit the model in their UI, and any "Model as a Service" or AI-assistant business clearing $50 million in revenue over 12 months needs a separate commercial license from Qwen before using the software. The tuned, vision-enabled "Max" managed service itself isn't downloadable at all — it's accessed only through Alibaba Cloud Model Studio or Qwen Chat, at the yuan-denominated per-token rates in the table above. That split matters for procurement: teams that need to self-host for data-residency or offline reasons get a full model from DeepSeek, but only a smaller open sibling (not the flagship Max tuning) from Qwen.
Which should you actually use?
There's no single correct answer here, because "DeepSeek vs Qwen" isn't really one question — it's at least three (cost, raw capability, and deployment model), and the two models don't win all three. The breakdown below separates those threads out so you can weight the one that matters most for your use case.
- High-volume API workloads on a budget: DeepSeek V4.1-Flash-1017's published rates are a fraction of Qwen3.8-Max's, and its cached-token discount is steep enough to matter for repetitive agent loops.
- Self-hosting or air-gapped deployment: DeepSeek, because the full flagship model is MIT-licensed and downloadable; Qwen's equivalent-tier open weights (2.4T-A95B, 27B) exist but aren't the same tuned model as the hosted Max.
- Chasing the top reported benchmark numbers, cost aside: Qwen3.8-Max, based on the vendor-published tables above — assuming you validate those numbers against your own workload rather than trusting self-reported scores outright.
- Enterprises with revenue thresholds or large user bases: read Qwen's licensing terms carefully before shipping — DeepSeek's MIT terms carry no equivalent revenue triggers.
- Looking beyond these two: Chinese open-weight competition is crowded in 2026, and queries that compare DeepSeek and Qwen often also pull in Moonshot's Kimi K3 and Zhipu's GLM line as alternatives; this piece focuses specifically on the DeepSeek-vs-Qwen matchup rather than a four-way shootout.
Deployment and security considerations
Choosing between a fully open, self-hostable model and a vendor-managed API isn't just a cost question — it's also a supply-chain and data-governance one. Self-hosting DeepSeek's open weights means your security team inherits responsibility for vetting the checkpoint, patching the serving stack, and monitoring for the kind of long-horizon, multi-stage intrusion techniques described in Pandromeda's explainer on the advanced persistent threat lifecycle — a useful mental model even outside nation-state contexts, since any internet-facing inference endpoint becomes a target. Routing requests through Qwen3.8-Max's managed API instead shifts that operational burden to Alibaba Cloud, but introduces its own considerations around where data transits and which jurisdiction's rules apply, something regulated industries should confirm against Alibaba's own compliance documentation before committing.
How we checked these numbers
Every spec, price and benchmark figure in this piece was pulled directly from each company's own published materials: DeepSeek's Hugging Face model card and transparency page, DeepSeek's API pricing documentation, Qwen's Hugging Face model card, the QwenLM GitHub repository, and Alibaba Cloud's Model Studio pricing documentation. None of the numbers above come from either vendor's marketing claims about beating the other, and none of the benchmark scores were independently reproduced — they're reported exactly as each company published them, with the benchmark-suite caveat noted throughout. Where third-party coverage disagreed with a company's own page (as happened with some pricing trackers quoting different Qwen rates than Alibaba's own documentation), this piece defers to the primary source.
Frequently asked questions
See the structured FAQ below for quick answers on pricing, context windows and licensing differences between the two models.
Bottom line
Neither model is a universal winner. DeepSeek V4.1-Flash-1017 is the more open, more affordable option — a 763B-parameter, MIT-licensed model with aggressive per-token pricing and a straightforward path to self-hosting. Qwen3.8-Max is the larger, pricier, benchmark-leading option on the figures Alibaba has published, but it's gated behind a managed API and a licensing structure with revenue-based obligations, and its true open-weight sibling isn't the same tuned model you'd get from the Max endpoint. If your decision hinges on cost control, licensing simplicity or the ability to run the model yourself, start with DeepSeek V4.1-Flash-1017. If it hinges on squeezing out the top reasoning and agentic-coding scores and you're comfortable paying Alibaba Cloud's rates, pilot Qwen3.8-Max against your own tasks before committing — and verify both vendors' benchmark claims against your own workload rather than taking either company's chart at face value.
Frequently asked questions
Which is cheaper: DeepSeek V4.1-Flash-1017 or Qwen3.8-Max?
DeepSeek V4.1-Flash-1017 is significantly cheaper on official list pricing: $0.15 per million input tokens and $0.60 per million output tokens off-peak via DeepSeek's API, versus roughly ¥14.988 and ¥44.965 per million tokens (about $2 and $6) on Qwen3.8-Max's Singapore/international Model Studio endpoint.
Can I self-host Qwen3.8-Max the way I can self-host DeepSeek V4.1-Flash-1017?
Not exactly. DeepSeek publishes the full V4.1-Flash-1017 weights under the MIT license for self-hosting. Qwen's tuned, vision-enabled "Max" model is only available through Alibaba's managed API; the open weights Alibaba publishes (Qwen3.8-2.4T-A95B and Qwen3.8-27B) are the base checkpoints the Max service is built on, not the identical tuned model.
Which model has the bigger context window?
Both can reach 1 million tokens in practice. DeepSeek V4.1-Flash-1017 lists a 1,000,000-token context window natively. Qwen3.8-2.4T-A95B's open weights have a native 262,144-token window extensible to about 1.01 million tokens, while the managed Qwen3.8-Max API defaults to a 1-million-token context.
Is DeepSeek V4.1-Flash-1017 free to use commercially?
The weights are MIT-licensed, which permits commercial use, modification and redistribution without revenue-based restrictions. Using DeepSeek's own hosted API still incurs the published per-token charges.
What license does Qwen3.8-Max use?
The underlying Qwen3.8-2.4T-A95B weights are released under a custom 'Qwen3.8-Max License.' It allows commercial use but requires visible model attribution for products with over 100 million monthly active users or $20 million in monthly revenue, and requires a separate license for Model-as-a-Service or AI-assistant businesses clearing $50 million in revenue over 12 months.
Which model scores higher on coding benchmarks?
On each company's own published numbers, Qwen3.8-Max reports higher scores on benchmarks it shares with DeepSeek, such as software-engineering evals. However, DeepSeek and Qwen test on different benchmark suite versions (for example Terminal-Bench 4.0 versus Terminal Bench 2.1), so the scores are not a strict apples-to-apples comparison.
Sources
- DeepSeek V4.1-Flash-1017 model card — Hugging Facehuggingface.co
- DeepSeek Transparency pagedeepseek.com
- DeepSeek API pricing documentationapi-docs.deepseek.com
- Qwen3.8-2.4T-A95B model card — Hugging Facehuggingface.co
- QwenLM/Qwen3.8 GitHub repositorygithub.com
- Alibaba Cloud Model Studio pricing — help.aliyun.comhelp.aliyun.com
Theo Park runs the AI desk at Pandromeda. He follows model launches from the frontier labs and the open-weight community, tracks the assistants and developer tools built on them, and explains what each release changes on pricing, capability and safety. His reporting leans on primary sources: model cards, technical reports, API documentation and the companies' own announcements.

