Qwen4-Max API Access Guide (2026): $1.50 Input Pricing, 1M Context, and How to Call It
Alibaba made Qwen4-Max generally available on November 16, 2026. Until then, the model ran as a preview tied to a subscription plan, and early users called it as qwen4-max-preview. The stable model ID is now qwen4-max, and it bills pay-as-you-go. If you already use Claude Sonnet 5.5 or GPT-6.1 Terra, the useful question is whether a 1M-token model with image and video input, priced at $1.50 per million input tokens, belongs in your stack.
Key takeaways
- Alibaba released Qwen4-Max for general API access on November 16, 2026, under the model ID
qwen4-max. - Qwen4-Max costs $1.50 per 1M input tokens and $4.50 per 1M output tokens on the QwenCloud Singapore price list.
- Cached input reads cost $0.075 per 1M tokens, which is 95% below the uncached input price.
- Qwen4-Max has a 1,000,000-token context window and accepts text, image, and video input.
- Reasoning is on by default, and reasoning tokens count against the same output budget as the answer.
What Changed on November 16
The preview gave subscribers access through a plan, which meant you could not put it behind a normal API key for a production service. The GA release removes that limit. Developers can now send requests with the qwen4-max ID and pay per token.
The model is multimodal. It accepts text, image, and video, and returns text. Tool calling and structured outputs work, and you can set reasoning effort to low, high, or xhigh, or turn reasoning off. The OpenRouter listing shows the same options, so the feature set is consistent across providers.
Pricing and Limits
| Item | Qwen4-Max | Notes |
|---|---|---|
| Input price | $1.50 per 1M tokens | QwenCloud Singapore list price |
| Output price | $4.50 per 1M tokens | Thinking tokens bill at this rate |
| Cached input read | $0.075 per 1M tokens | Cache write pricing is listed separately |
| Context window | 1,000,000 tokens | Text, image, and video input |
| Max output | 393,216 tokens | Shared between thinking and the final answer, per Alibaba's preview docs |
Third-party routers list slightly different prices. OpenRouter showed an effective rate of $1.425 input and $4.275 output per 1M tokens at the time of writing. Check the provider you call before you build your cost model.
What a Typical Call Costs
Take a code review request with a 10,000-token prompt and a 1,000-token answer.
- Qwen4-Max: 10,000 × $1.50 / 1M plus 1,000 × $4.50 / 1M = $0.0195 per call.
- If 9,000 of those input tokens hit the cache: $0.00068 + $0.0015 + $0.0045 = $0.0067 per call.
The cached number assumes the prefix is already in cache. The first request that writes the cache costs more, so check the write rate before you plan around the discount.
Comparison: Qwen4-Max, Claude Sonnet 5.5, and GPT-6.1 Terra
| Model | Input / output per 1M | Cache read per 1M | Context | Cost per call (10K in, 1K out) | Main limitation |
|---|---|---|---|---|---|
| Qwen4-Max | $1.50 / $4.50 | $0.075 | 1,000,000 | $0.0195 | On GA for one day; benchmark claims come from the vendor |
| Claude Sonnet 5.5 | $2 / $10 | $0.10 | 1,000,000 | $0.03 | Highest per-token cost of the three |
| GPT-6.1 Terra | $1 / $5 | $0.05 | 1,050,000 | $0.015 | Tool calling requires the Responses API; input above 272,000 tokens bills at higher rates |
On token price alone, GPT-6.1 Terra is the cheapest of the three. Qwen4-Max makes sense when your requests include video, or when you want a second model family behind the same client. For text-only workloads, price should drive the decision.
Call It With curl
Get the base URL and API key from your provider console. Regional endpoints differ, so do not copy a URL from an old tutorial.
curl "$QWEN_BASE_URL/chat/completions" \
-H "Authorization: Bearer $QWEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"max_tokens": 4096,
"messages": [
{"role": "user", "content": "Summarize this changelog in three bullets: ..."}
]
}'
Call It With Python
The OpenAI SDK works if the endpoint is OpenAI-compatible. Change the base URL and model name, and the rest of your code stays the same.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["QWEN_API_KEY"],
base_url=os.environ["QWEN_BASE_URL"],
)
def review_diff(diff_text: str) -> str:
resp = client.chat.completions.create(
model="qwen4-max",
max_tokens=4096,
messages=[
{"role": "system", "content": "You review pull requests. Name the file and line for each issue."},
{"role": "user", "content": "Review this diff for SQL injection risks:\n\n" + diff_text},
],
)
print("prompt tokens:", resp.usage.prompt_tokens)
print("completion tokens:", resp.usage.completion_tokens)
return resp.choices[0].message.content
Print the usage fields on every call during the first week. You need real token counts to check your cost model, and the usage numbers show how much thinking the model does on your prompts.
Set max_tokens With Thinking in Mind
Reasoning is on by default. The thinking tokens and the answer share one output budget. A max_tokens of 512 can leave little or no room for the answer. Start at 4,096 for anything longer than a one-line reply. If your workload is simple classification, set reasoning effort lower or turn it off, and the output cost drops with it.
When to Pick Qwen4-Max
- Video or image input in the same request. Terra accepts text and image, so video work needs another model. Qwen4-Max accepts both.
- Long documents. A 1M-token window handles whole repositories or long reports in one call. At $1.50 per 1M input tokens, a 500,000-token prompt costs $0.75 before output.
- A second model family behind your client. If your fallback chain needs a non-Anthropic, non-OpenAI option, Qwen4-Max is a reasonable candidate.
For plain text generation with the lowest bill, GPT-6.1 Terra is still the better default. Benchmark a few hundred of your own prompts before you switch anything, because vendor-reported scores do not show how a model handles your data.
One client, several model IDs makes that testing easier. KissAPI exposes an OpenAI-compatible interface for multiple model families, so you can change the model field and compare outputs and token counts on the same prompts. Check the models page for the current list of available IDs.
Sources
- Alibaba Cloud Model Studio, qwen4-max-preview documentation (context length 1M tokens, maximum output 393,216 tokens).
- OpenRouter, Qwen4 Max model page (1M-token context, reasoning options, released November 16, 2026).
- FreakyJolly, Qwen4-Max launch guide (QwenCloud Singapore price of $1.50 input and $4.50 output per 1M, cache read $0.075).
Compare Models on One Endpoint
Create a free account at api.kissapi.ai/register and test your prompts against several models before you commit to one.
Start FreeFAQ
What is the API model ID for Qwen4-Max?
The stable model ID is qwen4-max. The Token Plan preview used qwen4-max-preview.
How much does Qwen4-Max cost per million tokens?
On the QwenCloud Singapore price list, it costs $1.50 per 1M input tokens, $4.50 per 1M output tokens, and $0.075 per 1M cached input tokens read from cache.
Does Qwen4-Max support tool calling and a 1M-token context?
Yes. The model has a 1,000,000-token context window and supports tool calling and structured outputs, according to the OpenRouter listing.