Qwen4-Max is the first model of the Qwen4 generation and Alibaba's most capable model so far. It's a 2.4-trillion-parameter mixture-of-experts model that only uses about 71 billion parameters per token, reads text, images and video, handles a million tokens of context and is built for long, multi-step work.
qwen4-maxQwenCloud is OpenAI-compatible, so the standard OpenAI SDK works. Create an
API key in the QwenCloud console, set DASHSCOPE_API_KEY, then run:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("DASHSCOPE_API_KEY"),
# Singapore region; keys only work in the region they were created in
base_url="https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1",
)
resp = client.chat.completions.create(
model="qwen4-max",
messages=[{"role": "user", "content": "Plan a 3-stage website launch."}],
extra_body={"enable_thinking": True}, # optional: thinking mode
)
print(resp.choices[0].message.content)
Benchmarks and efficiency figures are Alibaba-reported unless noted. See the announcement and QwenCloud docs.
Alibaba's launch demos focus on long jobs that end in real deliverables. These are Alibaba's own showcases, not independent tests.
Analysed stocks, bonds, funds and futures across China, Hong Kong and US markets, then produced an Excel workbook and a slide deck.
Sorted 198 working papers into 14 folders and wrote a report covering 12 review areas and 14 legal issues.
Reviewed medical images to build a six-day timeline and propose four next steps for clinicians to consider.
Ran for 48 hours with a chemistry tool to screen coolant candidates, leading to one lab-validated molecule.
Pay per token through the QwenCloud API, or use it inside a Token Plan subscription. New accounts get free tokens to try it.
| Per 1M tokens | International | Global |
|---|---|---|
| Input | $1.50 | $1.413 |
| Input from cache (implicit hit) | $0.075 | โ |
| Output (incl. thinking) | $4.50 | $4.24 |
| Token Plan | Per month | Credits | Agents |
|---|---|---|---|
| Lite | $6 | 20,000 | 1โ2 |
| Essential | $10 | 45,000 | 2โ3 |
| Standard | $18 | 80,000 | 3โ4 |
| Pro | $43 | 200,000 | 6โ8 |
๐ Free quota: new QwenCloud accounts get about 1M free tokens for Qwen4-Max, valid 90 days, in the Singapore region. Token Plan prices as listed mid-November 2026; new-user offers from $3/month have run. Check QwenCloud pricing before you buy.
Model ID qwen4-max. Works with OpenAI and Anthropic SDKs.
Monthly credits for coding tools like Qwen Code and Claude Code.
Alibaba's workplace agent, on web and desktop.
Qwen's free assistant for everyone.
Alibaba's AI coding tool, co-designed with Qwen4-Max.
The code sample in the section above shows a complete first API call. For a step-by-step setup, see the API guide and guides.
| Qwen3.8-Max | Qwen4-Max | |
|---|---|---|
| Released | 3 Aug 2026 | 16 Nov 2026 |
| Parameters | 2.4T total ยท 95B active | 2.4T total ยท 71B active (โ25%) |
| API price (in / out, per 1M) | $2.00 / $6.00 | $1.50 / $4.50 (โ25%) |
| Work360 score | 47.74 | 52.69 |
| Avg. cost per Work360 task | $4.43 | $1.67 (โ62%) |
| DeepSWE v1.1 | 69.3 | 75.7 |
| Agents' Last Exam v1.1 | 27.9 | 46.7 |
| Context | 1M (hosted) | 1M |
| Downloadable weights | Yes (text-only, Max licence) | No |
Scores and task costs are Alibaba-reported.
Alibaba says smaller Qwen4 models with downloadable weights will be released to developers. The open Qwen3.8-Flash-Next preview already uses the Qwen4 architecture.
Alibaba plans to scale its next generation to 5โ10 trillion parameters, trained on its own T-Head chips.
No. Its weights aren't downloadable; you use it through QwenCloud and Alibaba's apps. Smaller open-weight Qwen4 models are promised.
Yes. New QwenCloud accounts get about 1M free tokens for Qwen4-Max for 90 days (Singapore region), and QwenStudio is free to use.
Up to about 1 million tokens of context, with up to 393K output tokens (shared between thinking and the answer).
Yes. QwenCloud offers OpenAI-compatible (Chat Completions and Responses) and Anthropic-compatible (Messages) endpoints. Change the base URL, API key and model name.
Yes. Vision is built in: it accepts images and video alongside text.
It ranked 6th on Code Arena's web-development board at launch and leads some agent benchmarks in Alibaba's charts, but trails top rivals on others such as ProgramBench and Terminal-Bench. Its main advantage is price.