KernelFox
Home / Models / Alibaba (Qwen) / Qwen4 Max

Qwen4 Max

42.9 / 100
Intelligence indexArtificial Analysis, an independent source: Epoch AI has not scored this model yet, updated 24 Nov 2026
Released
16 Nov 2026
Type
Proprietary
API only, closed weights
Context
1,000,000 tokens
Up to 131,072 output tokens
Price per million
$1.425 in
$4.275 out

Qwen4 Max is the flagship model in Alibaba's Qwen4 series.

Will it run on my PC?

No. Qwen4 Max has closed weights, so it only runs on Alibaba (Qwen)’s servers or through a provider.

What it costs

Through an API, per million tokens.

$1.425 in / $4.275 out

Cached input: $0.071 per million.

about $432for a heavy coding-agent month (13,000 calls, 4 billion tokens, mostly cached context). Measured on one heavy Claude Code user (September 2026), priced at list.

Flat-rate subscriptions can cost far less than API list prices for heavy use. Treat this as a reference, not a bill.

Where to run it through an API

Alibaba (Qwen) and its cloud partners sell this model through an API. Cheapest first.

Provider
Input $/M
Output $/M
Precision
Context
Uptime
Alibaba
1.425
4.275
not stated
1,000,000
100%

Prices from OpenRouter’s public provider list. Uptime over the last 30 minutes.

Call Qwen4 Max through the API

OpenRouter exposes this model through an OpenAI-compatible API. Create a key on OpenRouter, then use the model identifier qwen/qwen4-max.

Python
OpenRouter API
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key=os.environ["OPENROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen/qwen4-max",
    messages=[{"role": "user", "content": "Explain 4-bit quantization in two sentences."}],
)
print(response.choices[0].message.content)
JavaScript
OpenRouter API
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: process.env.OPENROUTER_API_KEY,
});

const response = await client.chat.completions.create({
  model: "qwen/qwen4-max",
  messages: [{ role: "user", content: "Explain 4-bit quantization in two sentences." }],
});
console.log(response.choices[0].message.content);
cURL
OpenRouter API
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen4-max",
    "messages": [{"role": "user", "content": "Explain 4-bit quantization in two sentences."}]
  }'

Prices and providers are in the sections above. Check the exact identifier on the OpenRouter model page.

Specifications

Released
16 Nov 2026
Type
Proprietary, closed weights
Context window
1,000,000 tokens, up to 131,072 output tokens
Reads
text, image and video
Writes
text

Frozen facts (name, specifications, links) are fixed when the page is created. Scores, prices and download numbers: refreshed daily; last update 24 Nov 2026. Scores: Epoch AI (Capabilities & benchmarking, CC BY 4.0), adapted by KernelFox.