# Qwen4-Max

> Qwen4-Max is Alibaba's next-generation flagship multimodal sparse MoE model (2.4T total parameters, ~71B active per token, plus 328B N-gram embedding parameters). It natively supports a 1M-token context window with text, image, and video inputs, configurable deep thinking (reasoning_effort: none/low/medium/high/xhigh and enable_thinking), parallel tool calling, structured outputs, and both implicit and explicit (5m/1h) context caching—delivering major advances in agentic workflows, complex coding, and long-horizon reasoning at 25% lower pricing than Qwen3.8-Max.

- Model ID: `qwen/qwen4-max`
- Manufacturer: Qwen
- Context length: 1M tokens
- Max output: 262K tokens
- Input: text, image, video
- Output: text
- Capabilities: tools, reasoning, structuredOutput, streaming, vision, caching
- Released: 2026-11-16
- Page: https://amux.ai/models/qwen/qwen4-max

## Providers and prices

Prices in USD, base tier. Route to a specific provider with `model: "<model id>:<provider slug>"`; without a suffix Amux AI picks among healthy providers (weighted random by default; a price-first strategy can be set per API key) and fails over to the next one on errors. Long-context and time-of-day tiers, where they apply, are listed on the page.

- **Alibaba Cloud** (`alibaba-cloud`) (promotion): input_text $1.05/1M tokens · output_text $3.15/1M tokens · cache_read $0.0525/1M tokens

## Example request

`POST https://gateway.amux.ai/v1/responses`

```bash
curl https://gateway.amux.ai/v1/responses \
  -H "Authorization: Bearer $AMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen4-max",
    "input": "Hello!"
  }'
```
