Qwen/Qwen4 Max
Alibaba Qwen4 Max, the first Qwen4 model, is a flagship for coding, office work, frontend design and complex agents: a sparse Mixture-of-Experts with 2.4T total and 71B active parameters. It reads text, images and video, with a 1M-token context, 256K output, deep thinking, function calling and web search.
Output
Send a message on the left. The reply appears here.
Availability 24 hours
Hourly success rate of all completed requests to this site.
Pricing
This model is priced by the usage dimensions listed here. Compare all pricing.
Prices are shown in USD. Charges depend on the model and your actual usage.
| Billing item | Our priceCurrent price |
|---|---|
| Input | $1.5/1M tokens |
| Cache read | $0.075/1M tokens |
| Cache write | $1.875/1M tokens |
| Output | $4.5/1M tokens |
Reference prices checked on 2026-12-02: Official pricing
README
Qwen4 Max
qwen4-max is the Qwen4 flagship, with deep thinking on by default at low, high or xhigh, a 1M-token context and up to 256K output tokens. It reads text, images up to 16MP and video up to 2 hours, for multi-file refactoring, bug localization, full-stack delivery and long-running agents.
Why Choose This?
- Connect media with written rules
- Alibaba Cloud documents text, image, and video input with text output. Let imagery show the observed situation and put the decision rules in the request so the answer can distinguish visual evidence and business requirements.
- Work with related material
- Alibaba Cloud lists a one-million-token context window. Index the documents, timestamps, and image regions in a large input before asking for specific findings, then make clear which elements belong in the output.
- Organize deliverables by field
- Business input often mixes prose, charts, and notes. Ask for reviewable records in a fixed set of columns, with field types and missing-value rules specified so a reviewer can check whether the output fits the next workflow.
Parameters
| Parameter | Required | Description |
|---|---|---|
modelstring | Required | Model ID to call. Use qwen4-max. |
messagesarray | Required | Conversation history as a list of role and content messages. |
temperaturenumber | Optional | Sampling temperature. Lower is more focused, higher is more varied. Default: 1. |
top_pnumber | Optional | Nucleus sampling threshold. Default: 0.95. |
max_tokensinteger | Optional | Maximum number of tokens to generate. |
streamboolean | Optional | Stream the reply as server-sent events. Default: false. |
presence_penaltynumber | Optional | Presence Penalty Default: 0. |
frequency_penaltynumber | Optional | Frequency Penalty Default: 0. |
nnumber | Optional | Number of outputs to generate. Default: 1. |
thinkingobject | Optional | Thinking Mode |
How to Use
- Try it here first — Sign in and run the model in the playground above to check the output before you write code.
- Create an API key — Open Console → API Keys and create a key. The same key works for every model.
- Write your messages — Put the task and its context in the messages array; add a system prompt to set the assistant behavior.
- Set optional parameters — Adjust the optional parameters listed above to control the output.
- Send the request — Call POST /v1/chat/completions with the model ID qwen4-max.
- Read the reply — The reply and its token usage come back in the response and are logged in the console.
Writing Effective Prompts
Clear instructions get better answers. Tell the model who it is, what you need and how the answer should look.
1. Set the role and goal
Open with who the model should act as and what the task is. Put rules that never change in the system prompt.
You are a senior Python reviewer. Review the function below for bugs and readability.
2. Give the context
Paste what the answer depends on: documents, code, data or earlier decisions. Separate each part with a heading or tag.
3. Specify the output
Name the format, length and tone: a table, JSON with given keys, five bullet points, a 200-word summary.
4. Show an example
One or two input and output examples fix the style faster than a long description.
5. Iterate
When an answer misses, add the missing constraint to the prompt instead of starting over.
| Prompt | |
|---|---|
| Weak | Write about our product. |
| Strong | You are a B2B copywriter. Write three 40-word LinkedIn posts announcing our invoicing API for small accounting firms. Tone: confident, plain English, no emojis. End each post with a question. |
Pricing
| Billing item | Price |
|---|---|
| Input | $1.50 per 1M tokens |
| Cache read | $0.075 per 1M tokens |
| Cache write | $1.875 per 1M tokens |
| Output | $4.50 per 1M tokens |
Example: a request with 10,000 input tokens and 1,000 output tokens costs about $0.02.
Prices are shown in USD. Charges depend on the model and your actual usage. Compare all pricing
Best Use Cases
- Check prototype acceptance criteriaProvide page requirements, a recorded interaction, and form rules. Ask Qwen4 Max to report the visible evidence, where it occurs, and anything that remains unconfirmed against each acceptance criterion, ready for a reviewer to reproduce.
- Extract steps from a walkthroughSupply a short demonstration and a description of the target user. Ask for steps, interface states, and open questions, with timestamps for important actions so a reviewer can quickly find them in the video.
- Compare screens with specificationsGive the model a sketch, current screenshot, and approved field rules. Ask for labels, order, and missing states by section, with visual differences and rule violations separated for the people who own them.
- Extract from mixed attachmentsNumber the forms, screenshots, and notes, then specify allowed values and types for each field. Have the output include the source location for each entry and identify fields that need manual review.
Pro Tips
- Use image IDs and timestamps — Give every image and video a unique identifier and require a region or timestamp for important observations. This lets reviewers verify a visible detail without reconstructing the context of every attachment.
- Verify a small set first — Use one routine example and one with missing data to test the output format and exception handling. Review both before sending the rest of the batch so a mistaken interpretation does not repeat across many similar records.
- Preserve room for the outcome — Order a large request by goal and include only the versions that matter to the review. Ask for an index of findings before expanding the highest-value items, leaving space for the actual deliverable.
FAQ
What is Qwen4 Max?
qwen4-max is the Qwen4 flagship, with deep thinking on by default at low, high or xhigh, a 1M-token context and up to 256K output tokens. It reads text, images up to 16MP and video up to 2 hours, for multi-file refactoring, bug localization, full-stack delivery and long-running agents.
How do I call the Qwen4 Max API?
Send POST /v1/chat/completions with the model ID qwen4-max and your API key. Ready-to-run samples are in the API section above.
How is billing calculated?
Charges are based on the selected model, its billing method, and your actual usage.
Where do I get an API key?
Create one in Console → API Keys. The same key works for every model on the gateway.
Can I use the output commercially?
Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.
About Qwen4 Max on DreamTo
qwen4-max is the Qwen4 flagship, with deep thinking on by default at low, high or xhigh, a 1M-token context and up to 256K output tokens. It reads text, images up to 16MP and video up to 2 hours, for multi-file refactoring, bug localization, full-stack delivery and long-running agents.


