Qwen4 Max API
Call Qwen4 Max from Alibaba through Deftrouter's OpenAI-compatible endpoint: one key, the OpenAI SDK you already use, and usage tracked per key. Access is by request.
Flagship multimodal model for coding, office productivity, frontend design, and complex agentic tasks.
Specifications
| Provider | Alibaba |
|---|---|
| Model ID | qwen4-max |
| Context window | 1,000,000 tokens |
| Maximum output | 262,144 tokens |
| Input types | text, image, video, PDF |
| Reasoning | Yes |
| Tool calling | Yes |
| Structured output | Yes |
| Open weights | No |
| Released | November 16, 2026 |
Qwen4 Max API pricing
These are Alibaba's list prices as of November 30, 2026, in US dollars per 1 million tokens. Deftrouter confirms its own price by email when you request access.
For example, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0195 at list price.
Call Qwen4 Max with the OpenAI SDK
Point the OpenAI SDK at Deftrouter and set the model ID. The rest of your code stays the same.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deftrouter.com/v1",
api_key="YOUR_DEFTROUTER_KEY",
)
# Your Deftrouter key, sent to one endpoint for every model.
reply = client.chat.completions.create(
model="qwen4-max",
messages=[{"role": "user", "content": "Hello"}],
) Request Qwen4 Max API access
Access is by request for now. Leave your email and the models you need, and we will email you when your key is ready.
Qwen4 Max API questions
How do I get Qwen4 Max API access?
Request it through Deftrouter: send the form on this page with your email, and we will email you when your key is ready. You then call Qwen4 Max with the OpenAI SDK by changing the base URL and the model ID.
How much does the Qwen4 Max API cost?
Alibaba lists Qwen4 Max at $1.50 per 1 million input tokens and $4.50 per 1 million output tokens as of November 30, 2026. Deftrouter confirms its own price by email when you request access.
What is the context window of Qwen4 Max?
Qwen4 Max accepts up to 1,000,000 tokens of context and can return up to 262,144 tokens in a single response.
Does Qwen4 Max support tool calling and image input?
Qwen4 Max supports tool calling. It accepts images as input.
More Alibaba models
| Model | Context window | Input | Output |
|---|---|---|---|
| Qwen3.8 Omni Flash | 1,000,000 | $0.15 | $0.47 |
| Qwen3.8 Flash | 1,000,000 | $0.15 | $0.47 |
| Qwen3.8 Max | 1,000,000 | $2.00 | $6.00 |
| Qwen3.7 Flash | 1,000,000 | $0.03 | $0.13 |
| Qwen3.7 Plus | 1,000,000 | $0.40 | $1.60 |
| Qwen3.7 Max | 1,000,000 | $2.50 | $7.50 |
Model data from models.dev, retrieved November 30, 2026. Limits and prices are set by the provider and can change. models.dev · Alibaba