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

ItemQwen4-MaxNotes
Input price$1.50 per 1M tokensQwenCloud Singapore list price
Output price$4.50 per 1M tokensThinking tokens bill at this rate
Cached input read$0.075 per 1M tokensCache write pricing is listed separately
Context window1,000,000 tokensText, image, and video input
Max output393,216 tokensShared 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.

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

ModelInput / output per 1MCache read per 1MContextCost per call (10K in, 1K out)Main limitation
Qwen4-Max$1.50 / $4.50$0.0751,000,000$0.0195On GA for one day; benchmark claims come from the vendor
Claude Sonnet 5.5$2 / $10$0.101,000,000$0.03Highest per-token cost of the three
GPT-6.1 Terra$1 / $5$0.051,050,000$0.015Tool 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

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

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 Free

FAQ

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.