alibaba/qwen-4-max/chatQwen4-Max chat endpoint by Alibaba: 1,000,000-token input window, up to 384,000 output tokens, image_url vision input, four reasoning levels, tool calling, and structured JSON output.
Workbench
These examples were written for this endpoint. Replace the prompt and sample media URLs with your own accessible inputs, then check the current quote and model availability before submitting.
- Input types
- Text
- Output types
- Text
- Input
- $1.275 / 1 million tokens
- Cached input
- $0.0638 / 1 million tokens
- Output
- $3.825 / 1 million tokens
- Context
- 1M
- Max output
- 384K
$1.27/3.83per 1 million tokens · input / output
basic Use this exampleExample single-turn request for Qwen4-Max showing the standard chat messages payload and max_tokens setting.
- 1024
- Input types
- Text
- Output types
- Text
- Input
- $1.275 / 1 million tokens
- Cached input
- $0.0638 / 1 million tokens
- Output
- $3.825 / 1 million tokens
- Context
- 1M
- Max output
- 384K
$1.27/3.83per 1 million tokens · input / output
tool-step Use this exampleExample tool-calling request for Qwen4-Max with a JSON-schema function definition and tool_choice set to auto.
- 1024
- auto
This example starts at Input $1.275 / Output $3.825 per 1 million tokens. The Playground updates the estimate when you change the settings.
