Alibaba
Qwen4-Max
Alibaba's new flagship for coding and knowledge work, with room for long source material and adjustable reasoning.
Replaces Qwen 3.8 Max: input $2.1 → $1.575 per 1M (-25%), output $6.3 → $4.725 per 1M (-25%), same context window, max output 128K → 384K.
Run this model
alibaba/qwen4-max
Use an endpoint supported by this model.
Get a key for this setup →const response = await fetch('https://api.minirouter.sh/v1/chat/completions', { method: 'POST', headers: { Authorization: `Bearer ${process.env.MINIROUTER_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ model: 'alibaba/qwen4-max', messages: [{ role: 'user', content: 'Why is the sky blue?' }], max_tokens: 1024, }),}) const data = await response.json()console.log(data.choices[0].message.content)MiniRouter supports text input. Start with a small text task; reasoning can reserve the model's full output allowance even when you request a short answer.
Model overview
- Input / 1M
- $1.575
- All-in MiniRouter rate
- Output / 1M
- $4.725
- All-in MiniRouter rate
- Context
- 1M
- 1,000,000 tokens
- Max output
- 384K
- tokens
- Reasoning
- low · high · xhigh
- Choose the effort for the task
- Workflows
- Code · documents · tools
- Your application runs and checks tools
- Announced
- 15 Nov 2026
- publisher release
Compare text-model alternatives or estimate token costs for your workload.
Bring the evidence, then ask for a decision.
- [ 01 ]
Review a change
Supply the relevant code, requirements and test output. Ask for concrete failure cases and a proposed fix.
- [ 02 ]
Reconcile documents
Label each text source and ask for conflicts, supporting passages and unresolved questions.
- [ 03 ]
Build a tool loop
Provide narrowly scoped tools, return their results to the model, and check the result before allowing consequential actions.
Compare effort on your own acceptance cases.
- [ 01 ]
Start with a bounded task
Try a single review or extraction before handing over a whole workflow. Record correctness, elapsed time and billed usage.
- [ 02 ]
Change one control
Compare effort settings using the same input and acceptance criteria. Avoid combining an effort setting with a separate thinking budget.
- [ 03 ]
Keep limits explicit
Context and maximum output are ceilings, not target request sizes. Reasoning and the visible answer both contribute to cost.
Retest the workflow, not just the model name.
- [ 01 ]
Use the exact model ID
Select alibaba/qwen4-max. A saved alias or router may still select a different model.
- [ 02 ]
Keep inputs textual
Convert source documents to text before sending them. Image and video inputs are not available on this MiniRouter route.
- [ 03 ]
Validate outputs in your application
Do not rely on schema-enforced JSON for this route. Parse and validate any machine-readable answer before using it.
One route, standard clients.
https://api.minirouter.sh/v1alibaba/qwen4-max/v1/chat/completions/v1/messages/v1/responsesConfigured providers. Priority follows the live catalog order.
| Provider | Priority | Input / 1M | Output / 1M | Parameters | Access |
|---|---|---|---|---|---|
vercel | 1 | $1.575 | $4.725 | max_tokens, temperature, stop, tools, tool_choice, reasoning, include_reasoning | MiniRouter balance |