Alibaba
Operational· checked every few minutes

Qwen4 Max API

The Qwen4 Max API, Alibaba's newest flagship Qwen model for coding, agents and visual reasoning, 60% below Alibaba's list price

Price per 1M tokens60%off
Input
$0.60$1.50
Output
$1.80$4.50
Cached input
$0.03$0.075
Model IDqwen4-maxUpdated
chat.py
from openai import OpenAI
client = OpenAI(
base_url="https://api.zurelay.com/v1",
api_key="YOUR_ZURELAY_KEY",
)
stream = client.chat.completions.create(
model="qwen4-max",
messages=[
{"role": "user", "content": "Explain quicksort briefly."},
],
stream=True,
)
for chunk in stream:
if chunk.choices:
print(chunk.choices[0].delta.content or "", end="")

Base URL https://api.zurelay.com/v1. Works with any OpenAI SDK. Chat API docs

Context window
1M tokens
Max output
128K tokens
Reasoning
none · low · high · xhigh
Input
Text, Image, Video
Released
Nov 16, 2026
Status
Operational

Capabilities

Output
  • Text
  • Image gen (not supported)
  • Video gen (not supported)
  • Speech (not supported)
  • Music (not supported)
  • Embeddings (not supported)
  • Decisions (not supported)
Input
  • Image input
  • PDF input (not supported)
  • Audio input (not supported)
  • Video input
Features
  • Reasoning
  • Tool use
  • Structured output
  • Automatic caching
  • Explicit caching (not supported)

Pricing

Qwen4 Max API pricing. A fraction of the list price.

Pay as you go from prepaid credit, with no subscription. Top up from $10. Requests that fail are never billed.

RateZurelayAlibaba list
Input
per 1M tokens
$0.60$1.50
Output
per 1M tokens
$1.80$4.50
Cached input
per 1M tokens
$0.03$0.075

One rate at every prompt length, up to the full 1M context window. Streaming, tool calls and structured outputs cost nothing extra.

Every Qwen model and price
Savings calculator

Move the sliders to your monthly usage.

Input tokens per month50M
Output tokens per month10M
Zurelay
$48.00
Alibaba list price
$120.00
You save every month$72.00

$864.00 a year

Cost

Qwen4 Max API cost, worked out.

Typical workloads at Zurelay's live prices, next to the list price.

  • Chatbot

    50,000 requests a month, 1,500 tokens in and 300 out, 30% of the input cached. $0.00118 a request.

    $59.18a month$147.94 at list
  • Documents

    20,000 requests a month, 8,000 tokens in and 500 out, 20% of the input cached. $0.00479 a request.

    $95.76a month$239.40 at list
  • Coding agent

    5,000 requests a month, 40,000 tokens in and 1,500 out, 85% of the input cached. $0.00732 a request.

    $36.60a month$91.50 at list
  • Classification

    1,000,000 requests a month, 400 tokens in and 5 out. $0.000249 a request.

    $249.00a month$622.50 at list

Overview

What is Qwen4 Max?

Qwen4 Max is Alibaba's newest flagship Qwen model, released on November 16, 2026, for coding, agent work and visual reasoning. The Zurelay Qwen4 Max API serves it through one OpenAI-compatible endpoint with a 1M-token context window, at 60% below Alibaba's international list price.

Alibaba released Qwen4 Max on November 16, 2026, after a short preview, and calls it its most capable Qwen model to date. It is a sparse mixture-of-experts model with 2.4 trillion total parameters and 71 billion active per token, 25% fewer active parameters than Qwen 3.8 Max at the same total size. On Zurelay the model ID is qwen4-max, and it costs $0.60 per 1M input tokens and $1.80 per 1M output tokens.

Alibaba says Qwen4 Max beats Qwen 3.8 Max on Work360, its benchmark of professional tasks across 721 fields, while using about 35% fewer tokens at high effort and costing about 60% less per task. Independent tests place it at 43 on the Artificial Analysis Intelligence Index and 63.2% on the Vals Index, and it scored 1,751 on Arena's Code Arena for web development on November 20, 2026.

The context window is 1,000,000 tokens, with up to 131,072 output tokens per response. The model reads text, images and video and writes text. Thinking is on by default: on Zurelay you set reasoning_effort to low, high or xhigh, or to none to switch thinking off, and high is used when you don't. It supports function calling, including parallel tool calls, and structured outputs that follow a JSON schema. Cached input bills at $0.03 per 1M tokens.

Alibaba's international list price is $1.50 input and $4.50 output per 1M tokens, 25% below Qwen 3.8 Max, and the same in thinking and non-thinking mode at every prompt length. In Zurelay's tests the model wrote about 60 tokens a second. A short question usually came back in 3 to 8 seconds, though some took 30 seconds or more, so stream long requests and set reasoning_effort to none where speed matters.

Strengths

Where Qwen4 Max shines. And what teams build with it.

01

Professional work

Alibaba says it beats Qwen 3.8 Max on Work360, its benchmark of professional tasks across 721 fields, at about 60% lower cost per task.

02

Coding and web development

1,751 on Arena's Code Arena for web development on November 20, 2026, and 86.7% on Vals AI's Vibe Code Bench.

03

Fewer tokens per task

About 35% fewer tokens than Qwen 3.8 Max at high effort on Work360, with 25% fewer active parameters per token.

04

Vision built in

Reads images and video in the same request as your text, so screenshots, charts and recordings need no separate model.

Use cases

  • Coding agents

    Feature builds, refactors and debug loops where the model plans, calls tools in parallel and checks its own work.

  • Office and professional tasks

    Reports, analysis and document work in fields such as finance and law, with the full source material in the 1M-token window.

  • Front-end and design work

    Turn a screenshot or a brief into a working page, then revise it on feedback.

  • Visual analysis

    Ask questions over charts, slides, screenshots and video, and get answers back as text or structured JSON.

Get started

Call Qwen4 Max in three steps.

No waitlist and no new SDK. If your code already talks to OpenAI, it already talks to Zurelay.

  1. 1

    Create a key

    Sign up, add credit and create an API key. Set a monthly budget or a rate limit per key if you like.

  2. 2

    Point your SDK at Zurelay

    Change the base URL. Everything else in your code stays the same.

    https://api.zurelay.com/v1
  3. 3

    Use qwen4-max

    Send chat completions as usual. Streaming, tool calls and usage reporting work as you expect.

    qwen4-max

FAQ

Qwen4 Max API questions.

Anything else? Ask our team and we’ll answer by email.

How much does the Qwen4 Max API cost?

On Zurelay, qwen4-max costs $0.60 per 1M input tokens and $1.80 per 1M output tokens, with cached input at $0.03. Alibaba's international list price is $1.50 input and $4.50 output, so you save 60%. Thinking tokens bill as output, and the rate is the same at every prompt length.

What is Qwen4 Max best at?

Coding, agent work, professional office tasks and visual reasoning. Alibaba says it beats Qwen 3.8 Max on its Work360 benchmark while using about 35% fewer tokens at high effort. It scores 43 on the Artificial Analysis Intelligence Index and 63.2% on the Vals Index.

How do I call the Qwen4 Max API with the OpenAI SDK?

Install the official openai package, set base_url to https://api.zurelay.com/v1 and use your Zurelay API key. Then send a Chat Completions request with model set to "qwen4-max". Zurelay also accepts qwen/qwen4-max. Images and video go in the message as data or links.

What is the Qwen4 Max context window?

Qwen4 Max has a 1,000,000-token context window and writes up to 131,072 output tokens per response. Alibaba caps a single input at 991,808 tokens, or 983,616 with thinking on, which leaves room for the reply. In Zurelay's tests the model declined to write single answers of tens of thousands of tokens, so ask for long documents in sections.

How do Qwen4 Max thinking levels work?

The model thinks before it answers unless you switch that off. On Zurelay you set reasoning_effort to low, high or xhigh, and high is used when you don't. Set it to none for no thinking, which answers fastest. Thinking tokens bill as output.

How fast is Qwen4 Max?

It wrote about 60 tokens a second in Zurelay's tests, which matches the 61 tokens a second Artificial Analysis measured. A short question usually came back in 3 to 8 seconds, though some took 30 seconds or more. At xhigh a hard problem can think for much longer, so stream long requests.

Can Qwen4 Max read images and video?

Yes. It takes images and video alongside text in the same request and returns text. It does not understand the audio track of a video, and it does not generate images or video.

Should I use Qwen4 Max or Qwen 3.8 Max?

Use Qwen4 Max for new work: Alibaba reports better results on professional tasks for fewer tokens, and it costs less. Keep Qwen 3.8 Max where your prompts are tuned to it. Both work with the same Zurelay key, so test them side by side on your own prompts.

Is it the same model as Alibaba's Qwen4 Max?

Yes, it is Alibaba's Qwen4 Max. Zurelay doesn't swap in a smaller or substitute model. Only smart routing, which you turn on yourself, can answer with a close alternative when the model is down, and the x-zurelay-model header names the model that answered. Responses are sampled, so wording varies between runs. Zurelay is independent and is not affiliated with or endorsed by Alibaba Cloud.

More models on Zurelay

All models

Stop paying list price.
Start saving today.

Create a key in seconds, point the SDK you already use at Zurelay, and every request costs up to 90% less from the first token.

  • No subscription
  • Start with $10
  • Failed requests aren’t billed