Qwen4 Max API pricing and specs
Qwen4 Max is an Alibaba model released in November 2026. It takes text, images and video and returns text, with a context window of 1M tokens and up to 131K output tokens per response. The model ID is qwen4-max. It is available through the relay.fast API with one relay.fast key and pay-as-you-go billing.
Qwen4 Max API pricing
Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.
| Official input price | $1.5 per 1M tokens |
|---|---|
| Official output price | $4.5 per 1M tokens |
| relay.fast input from | $0.3 per 1M tokens |
| relay.fast output from | $0.9 per 1M tokens |
| Cache read from | $0.015 per 1M tokens |
| Lower than the official price by | up to 80% |
Qwen4 Max specifications
| Model ID | qwen4-max |
|---|---|
| Developer | Alibaba |
| Released | November 2026 |
| Context window | 1M tokens |
| Maximum output | 131K tokens |
| Input | text, images, video |
| Output | text |
| Features | tool calling, reasoning, structured output, image input, prompt caching |
| Endpoints | /v1/chat/completions |
Release month, limits and features are as published by Alibaba.
What a request to Qwen4 Max costs
Cost of one request at the prices above, without cached input. Multiply by your number of requests to estimate a budget.
| Request | Tokens, input + output | At the official price | On relay.fast, from |
|---|---|---|---|
| A short chat reply | 1,000 + 300 | $0.0029 | $0.00057 |
| One step of a coding agent | 30,000 + 1,500 | $0.0517 | $0.0104 |
| A long document summary | 150,000 + 2,000 | $0.234 | $0.0468 |
Example request
Keep the key in the RELAY_FAST_API_KEY environment variable.
curl https://relay.fast/v1/chat/completions \
-H "Authorization: Bearer $RELAY_FAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen4-max","messages":[{"role":"user","content":"Hello"}]}'Use Qwen4 Max in coding tools
Setup guides: Claude Code, Codex, Cursor, Cline, Kilo Code, OpenCode, Aider. The API docs have one-command installers.
Frequently asked questions
How much does the Qwen4 Max API cost?
On 2026-11-26, relay.fast charges from $0.3 per 1M input tokens and $0.9 per 1M output tokens for Qwen4 Max, against the official $1.5 and $4.5. The price depends on the source your request uses and can change; https://relay.fast/pricing/qwen4-max shows the current value.
What is the context window of Qwen4 Max?
Qwen4 Max accepts up to 1M tokens of context in the relay.fast catalog.
What is the maximum output of Qwen4 Max?
Qwen4 Max returns up to 131K tokens in one response, according to the specification published by Alibaba. A client can set a lower limit.
Does Qwen4 Max accept images?
Yes. Qwen4 Max takes text, images and video as input and returns text.
Does Qwen4 Max support tool calling?
Yes. Qwen4 Max supports tool calling (function calling) and structured output, so it works in coding agents and other clients that call tools.
When was Qwen4 Max released?
Qwen4 Max was released in November 2026.
Which API endpoint does Qwen4 Max use?
Call /v1/chat/completions with a relay.fast API key. OpenAI-compatible SDKs use the base URL https://relay.fast/v1.
Do I need a Alibaba account to use Qwen4 Max?
No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with Alibaba.