What Is Qwen4-Max? Alibaba's New Flagship Model

Qwen4-Max is Alibaba's new flagship, now generally available with a public API at $1.50 input and $4.50 output per 1M tokens and a 1M-token context. Here is what changed, what it costs, where to use it and what's still unknown.

Medy Evrard

16 November 2026

What Is Qwen4-Max? Alibaba's New Flagship Model

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

Qwen4-Max is the first model of Alibaba’s Qwen4 generation and its new flagship. It went into preview on November 11, 2026, and is now generally available with a public pay-per-token API: model ID qwen4-max, $1.50 per million input tokens, $4.50 per million output tokens, and a 1M-token context window. It reads text, images and video.

Below: what Qwen4-Max is, what changed from Qwen3.8-Max, the price and limits, where to use it, what’s still unknown, and a practical way to test it on a real API with your coding agent. Every number comes from Alibaba’s own pages, checked November 16, 2026.

What is Qwen4-Max?

Qwen4-Max is Alibaba’s flagship large language model and the top tier of the Qwen4 family. It’s a reasoning model with text generation plus image and video understanding, aimed at coding, office work, front-end design and long agentic tasks. The Qwen team calls it “your new AI teammate for work, creativity, and discovery” in the launch post.

It sits where Qwen3.8-Max sat: the largest and most capable model in the lineup, served through Alibaba’s cloud, not as downloadable weights. For background on the previous generation, see what Qwen 3.8 is and the roundup of the best Qwen models.

The release came in two steps. On November 11, the official Qwen account on X announced a preview, qwen4-max-preview, reachable only through the Token Plan subscription and Alibaba’s apps. The general release followed with a model page, an API, prices and benchmarks.

Qwen4-Max specs at a glance

The Qwen4-Max model page on QwenCloud lists these for the Singapore region:

Spec Qwen4-Max
Model ID qwen4-max
Input Text, image, video
Output Text
Context window 1M tokens
Max input 991K tokens (983K with thinking)
Max output 393K tokens
Max reasoning 262K tokens
Rate limit 5,000,000 tokens per minute
Input price $1.50 per 1M tokens
Output price $4.50 per 1M tokens
Cached input $0.075 per 1M tokens
API protocols OpenAI-compatible, Anthropic-compatible, DashScope

The model also supports function calling, structured outputs, context caching, batch requests, web search, fine-tuning and prefix completion. Built-in tools include a code interpreter, web search and a web extractor.

What changed in Qwen4-Max

The launch post describes a new architecture and reports gains over Qwen3.8-Max. Read the numbers as Alibaba’s own results; independent tests will follow.

A new architecture. Qwen4-Max has a 2.4-trillion-parameter backbone, with 71 billion parameters activated per token, plus 328 billion N-gram Embedding parameters. It’s a sparse Mixture-of-Experts model with three changes: Gated DeltaNet layers paired with Qwen Sparse Attention for long sequences, a Gated Residual design for training stability, and N-gram Embedding for extra capacity at low compute cost. Alibaba says it activates 25% fewer parameters than Qwen3.8-Max’s base model while scoring better in every domain it measured.

Better at professional work. On Work360, Alibaba’s own benchmark of industry tasks across 26 domains, Qwen4-Max scores 52.69, up from 47.74 for Qwen3.8-Max.

Fewer tokens for the same job. On Work360, token use drops about 24% at Xhigh effort and 35% at High effort. On Terminal-Bench 4.0, it drops about 48% to 49%. Combined with lower prices, the average cost per Work360 task falls from $4.43 to $1.67, a 62% cut.

Safer code by default. On Last Secure Code Bench, the function-level pass rate for code that is both working and secure rose from 22.0% to 31.8%.

Long-running agents. Alibaba pitches Qwen4-Max for agents that run for hours or days. A feature called Live Delivery has the agent ship a usable first version early, then improve it release by release while you steer. The team open-sourced it as the Qwen-Live-Delivery-Plugin, which supports Codex CLI at launch.

The post also shows the model working in Blender, Unity, Unreal Engine and Godot, running financial research with 90 MCP tools, and driving a 48-hour autonomous lab run that designed and synthesized a new coolant molecule.

How much does Qwen4-Max cost?

Pay-per-token pricing on QwenCloud, per million tokens:

Item Price
Input $1.50
Output $4.50
Implicit cache input $0.075
Explicit cache read $0.075
Explicit cache creation, 5 minutes $1.875
Explicit cache creation, 1 hour $3.00

That’s lower than Qwen3.8-Max, which costs $2 input and $6 output. The largest cut is on cached input: $0.075 against $0.25. Agents resend the same context on every turn, so the cache rate matters more than the headline price for long sessions.

Where you can use Qwen4-Max

Alibaba lists five routes:

Where What it is Best for
QwenCloud API Pay-per-token API, model ID qwen4-max App backends, scripts, CI and anything automated
Token Plan QwenCloud subscription with monthly Credits Using Qwen4-Max inside Claude Code, Qwen Code, Cursor, Codex, OpenCode, Cline and similar tools
QwenWork Alibaba’s AI productivity app for desktop and browser Turning a goal into reports, slides or web pages
Qoder Alibaba’s agentic coding platform (IDE, CLI, JetBrains plugin) Coding inside an editor or terminal
QwenStudio The Qwen chat interface Trying prompts without setup
Diagram showing the ways to reach Qwen4-Max: the Token Plan subscription feeding coding agents, plus QwenWork, Qoder, the Qwen app and QwenStudio

The QwenCloud API

The API is the new route, and the one for production. It works with any OpenAI SDK:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.getenv("DASHSCOPE_API_KEY"),
    base_url="https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1",
)
completion = client.chat.completions.create(
    model="qwen4-max",
    messages=[{"role": "user", "content": "Explain idempotency keys in two sentences."}],
)
print(completion.choices[0].message.content)

That base URL is for Singapore. Each region has its own base URL and its own API keys, per the QwenCloud API docs. To see the model’s reasoning, pass extra_body={"enable_thinking": True} and stream the response.

The Token Plan

Token Plan is QwenCloud’s subscription for AI coding tools. You pay monthly, get a pool of Credits, and spend them through OpenAI-compatible and Anthropic-compatible endpoints. On November 16, 2026, the Token Plan page listed both qwen4-max and qwen4-max-preview, with the preview still tagged “Limited-Time 80% Off.”

One rule matters more than the price. The Token Plan FAQ says the service is “for interactive use in compatible AI programming and agent tools only” and “cannot be used for automated scripts or application backends.” Use a Token Plan key in your coding agent and a pay-per-token key in your app.

For plan-by-plan detail, read our Qwen4-Max Token Plan guide. For setup steps on every route, see how to use Qwen4-Max.

What’s still unknown about Qwen4-Max

The general release answered most of the open questions from the preview. Here’s what remains, checked November 16, 2026:

Question Status
Public pay-per-token API Live, model ID qwen4-max
Per-token price Published: $1.50 input, $4.50 output
Context window Published: 1M tokens
Architecture Published: 2.4T backbone, 71B activated per token
Official benchmarks Published by Alibaba; most are vendor-run
Independent benchmarks Still arriving
Open weights for Qwen4-Max Not announced
Smaller Qwen4 models Alibaba says they are “coming to open source”; no names or dates

Treat the benchmark charts with the usual care. Work360 is Alibaba’s own benchmark, and a vendor chooses which results to show. The launch post does cite outside leaderboards for some scores, including Artificial Analysis, LM Arena and the Vals Index, so check those pages for the current standings. For a side-by-side with the previous generation, see Qwen4-Max vs Qwen 3.8 and our Qwen 3.8 benchmarks.

Put Qwen4-Max to the test on your own API with Apidog CLI

The preview announcement asked developers to test Qwen4-Max “on a real problem.” Building or fixing an API endpoint is a good one, because you can check the result objectively. The model writes the code, and a test run tells you whether it works.

You don’t need to write those tests by hand. Your coding agent, running on Qwen4-Max, can drive Apidog CLI to create test cases for the endpoint it built and run them. The tests hit your own API, not Qwen’s endpoint.

Workflow diagram: a coding agent running Qwen4-Max writes an API endpoint, Apidog CLI creates and runs test cases against it, and the test report feeds back to the agent for fixes

Set up Apidog CLI once:

npm install -g apidog-cli@latest
apidog login --with-token <YOUR_APIDOG_TOKEN>
apidog skill install

The skill teaches your agent the CLI’s commands. Then give your agent one prompt:

You just built POST /orders in this repo. Export its OpenAPI spec, import it into
Apidog project <projectId>, then create test cases that check a 201 on a valid order,
a 400 on a missing customerId, and a 401 without a token. Run them against the
local environment <envId>, fix any failures in the code, and run them again.

The agent turns that into a short sequence of apidog commands. Every flag below comes from apidog <command> --help on Apidog CLI 2.2.12:

apidog import --project <projectId> --format openapi --file ./openapi.json
apidog cli-schema get test-case-create
apidog cli-schema validate test-case-create --file ./case-201.json
apidog test-case create --project <projectId> --file ./case-201.json
apidog run --test-case <caseId> --project <projectId> -e <envId> -r cli,json

cli-schema get gives the agent the exact JSON shape for a test case, and cli-schema validate checks its file before anything is written. apidog run prints a pass/fail summary in the terminal and saves a JSON report the agent reads to decide what to fix. Add --upload-report to view the same run in the Apidog app.

This loop is also a fair way to judge the model. Count how many fix-and-rerun rounds Qwen4-Max needs before every case passes, then try the same prompt on the model you use today. For more on the pattern, see the Apidog CLI agent workflow and Apidog CLI in Claude Code. Apidog’s Free plan covers up to 4 users.

Should you use Qwen4-Max now?

It depends on what you need:

Keep the model ID in one config value. If you set up qwen4-max-preview during the preview, switch to qwen4-max before the preview ID is retired.

FAQ

Is Qwen4-Max available through an API? Yes. Since the general release, QwenCloud serves it on a pay-per-token API with the model ID qwen4-max, through OpenAI-compatible and Anthropic-compatible endpoints.

What is the Qwen4-Max model ID? qwen4-max. The preview ID qwen4-max-preview is still listed on the Token Plan for the rest of the preview window.

How much does Qwen4-Max cost? $1.50 per million input tokens and $4.50 per million output tokens, with cached input at $0.075. Through the Token Plan you pay a monthly subscription and spend Credits.

Does Qwen4-Max have a 1M-token context window? Yes. The model page lists a 1M context, a 991K max input and a 393K max output.

Is Qwen4-Max open source? No open weights have been announced for Qwen4-Max. Alibaba says smaller models in the Qwen4 family are coming to open source, without names or dates.

Can Qwen4-Max read images? Yes. It accepts text, image and video input and returns text.

Explore more

What Is Amazon Ergo? The Open-Weights Model Explained

What Is Amazon Ergo? The Open-Weights Model Explained

Amazon Ergo is Amazon's first open-weights model: a 1.1T mixture-of-experts coding model with a 1M-token context, on Bedrock at $1/$3 per million tokens. Here's what it is and how to call it.

2 December 2026

What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages

What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages

Soma-1X Lite is Amini's 2B open OCR model: located block output, strong African-language diacritics, self-hosted on one GPU. What it does, what its benchmarks mean, and how to serve and test it.

1 December 2026

Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?

Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?

Anthropic's quantum algorithm targets the module lattices behind ML-KEM, but reviewers put its cost far beyond 2^1000 operations. Here's what it means for your API's post-quantum TLS.

1 December 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

🔴 Live TV: blog/what is qwen max - Jadwal Siaran Langsung