# Qwen 4 Max

Qwen 4 Max brings deeper knowledge, richer world understanding, and stronger coding and agentic capabilities. It is built for real-world tasks, from complex coding and knowledge work to front-end builds and professional software workflows.

- **Model ID:** `alibaba/qwen4-max`
- **Type:** chat
- **Providers:** alibaba
- **Context window:** 1,000,000
- **Maximum output tokens:** 384,000
- **Pricing:** $1.5/1M input tokens, $4.5/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/qwen4-max

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'alibaba/qwen4-max',
  prompt: 'Why is the sky blue?'
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/qwen4-max)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider pricing](https://www.alibabacloud.com/help/en/model-studio/models)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
