# Qwen3 Max

Qwen3 Max is a closed-weight, API-served model exceeding one trillion parameters, a large-scale language model from Alibaba Cloud, optimized for structured outputs, function calling, and long-document reasoning at scale.

- **Model ID:** `alibaba/qwen3-max`
- **Type:** chat
- **Providers:** alibaba, novita
- **Context window:** 262,144
- **Maximum output tokens:** 65,536
- **Pricing:** $1.2/1M input tokens, $6.0/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/qwen3-max

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

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

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

## About

Qwen3 Max is the largest model in Alibaba Cloud's Qwen3 line, built on a mixture-of-experts (MoE) architecture with over one trillion total parameters. The MoE design allocates computation selectively, enabling performance without activating the full parameter count on every token.

The context window of 262.1K tokens makes it practical for tasks that earlier-generation models had to split across multiple calls: ingesting entire codebases, indexing long legal or financial documents, or tracking dependencies across extended multi-turn conversations. Context caching further reduces the cost of repeatedly processing the same long prefix.

Qwen3 Max performs strongly on structured-output and tool-use benchmarks, recording 74.8 on Tau2-Bench and 79.3% accuracy on LiveBench. On software engineering tasks measured by SWE-bench Verified, Qwen3 Max scored 69.6. These results reflect a consistent emphasis on reliability for enterprise tasks: JSON generation, HTML/CSS formatting, API function calling, and multi-step agentic workflows where predictable output structure matters.

Alibaba Cloud positions Qwen3 Max with native bilingual strength in Chinese and English, alongside broad multilingual support. The model is available via API only. Weights aren't publicly released.

## What to consider

For regulated industries requiring data-residency guarantees, cross-reference the geographic deployment region of your chosen provider against applicable compliance frameworks before routing production traffic.

## When to use

### Best For

- Enterprise automation that requires reliable structured output (JSON, XML, formatted reports) at high volume
- Long-document analysis (contracts, scientific papers, codebases) where the full context must remain in-window
- Complex multi-step function calling and agentic workflows that chain multiple tool invocations
- Mathematical reasoning and quantitative problem-solving at professional-grade difficulty
- Bilingual Chinese-English applications where both languages need equal-quality handling

### Consider Alternatives When

- You need extended chain-of-thought reasoning with visible step traces. Consider Qwen3-Max-Thinking instead
- Creative writing, open-ended storytelling, or conversational warmth are primary requirements
- Cost per token is a hard constraint and a smaller open-weight model meets your quality bar
- Response latency is more critical than depth of reasoning

## Best for

- **Structured enterprise automation:** High-volume workloads that require reliable JSON, XML, or formatted report output
- **Long-document analysis:** Contracts, scientific papers, and codebases where the full context must remain in-window
- **Multi-step function calling:** Complex agentic workflows that chain multiple tool invocations
- **Professional-grade quantitative work:** Mathematical reasoning and quantitative problem-solving at expert difficulty
- **Bilingual Chinese-English applications:** Products where both languages need equal-quality handling

## Consider alternatives

- **Visible chain-of-thought needed:** Consider Qwen3-Max-Thinking when you need extended reasoning with visible step traces
- **Creative and conversational writing:** Open-ended storytelling or conversational warmth is the primary requirement
- **Strict token budgets:** A smaller open-weight model may meet your quality bar at lower cost per token
- **Latency-critical workloads:** Response latency is more important than depth of reasoning

## Frequently asked questions

### How many parameters does Qwen3 Max have?

The model exceeds one trillion total parameters. It's served as a closed-weight API, and model weights aren't available for download.

### What is the context window for Qwen3 Max?

The context window is 262.1K tokens. This supports long document analysis and extended multi-turn sessions.

### How does Qwen3 Max handle context caching?

The model supports context caching, allowing repeated long prompts, such as a large system prompt or document, to be processed once and reused across many requests, reducing latency and cost.

### What is the difference between Qwen3 Max and Qwen3-Max-Thinking?

Qwen3 Max is optimized for fast, high-quality responses without extended internal reasoning traces. Qwen3-Max-Thinking adds a dedicated thinking mode where the model works through complex problems step by step, making it better suited to hard math, competitive coding, and scientific reasoning at the cost of higher token usage.

### Does Qwen3 Max support function calling?

Yes. Qwen3 Max was specifically evaluated on tool-use benchmarks (Tau2-Bench: 74.8) and is designed for multi-step agentic workflows involving structured API calls.

### Can Qwen3 Max generate outputs in both Chinese and English?

Yes. Alibaba Cloud positions Qwen3 Max with strong native support for both Chinese and English, alongside broad multilingual capability.

### How does Qwen3 Max score on coding benchmarks?

On SWE-bench Verified, Qwen3 Max recorded a score of 69.6, placing it competitively among other models evaluated on software engineering tasks.

## Links

- [Model page](https://vercel.com/ai-gateway/models/qwen3-max)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://modelstudio.console.alibabacloud.com/?tab=doc#/doc/?type=model&url=2840914_2&modelId=qwen3-max)
- [Provider pricing](https://www.alibabacloud.com/help/en/model-studio/models#161e7d77cfv1n)


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.
