# GLM 5.2 vs Qwen4 Max

As of December 6, 2026, Qwen4 Max costs 7% more per input token than GLM 5.2 ($1.50 vs $1.40 per 1M) and has a 992K-token context window versus 1M.

- Page: https://models.litellm.ai/compare/glm-5.2-vs-qwen4-max
- GLM 5.2: https://models.litellm.ai/models/glm-5.2
- Qwen4 Max: https://models.litellm.ai/models/qwen4-max

## Side by side

| | GLM 5.2 | Qwen4 Max |
|---|---|---|
| Input, per 1M tokens | $1.40 | $1.50 |
| Output, per 1M tokens | $4.40 | $4.50 |
| Cache read, per 1M tokens | $0.26 | $0.075 |
| Cache write, per 1M tokens | $0 | $1.875 |
| Context window | 1,000,000 tokens | 991,808 tokens |
| Max output | 128,000 tokens | 131,072 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 28 | 3 |
| Price shown is from | Z.ai | Alibaba Cloud Model Studio |
| Added to LiteLLM | June 2026 | November 16, 2026 |

Headline prices in USD per 1M tokens, from LiteLLM's model price file.

## Cheapest provider for each

- GLM 5.2: CLF AI Gateway at $0.56 input per 1M tokens (`clf_ai_gateway/glm-5.2`)
- Qwen4 Max: Alibaba Cloud Model Studio at $1.50 input per 1M tokens (`dashscope/qwen4-max`)

## Benchmark scores

| Benchmark | GLM 5.2 | Qwen4 Max |
|---|---|---|
| APEX-Agents (Coding and agents) | 45.2% | 67.4% |
| GPQA Diamond (Reasoning and knowledge) | 91.9% (max) | 94.0% (xhigh) |
| SimpleQA Verified (Reasoning and knowledge) | 34.2% (max) | 54.1% (xhigh) |
| FrontierMath (tiers 1-3) (Math) | 59.2% (max) | 78.6% (xhigh) |
| FrontierMath (tier 4) (Math) | 29.3% (max) | 53.7% (xhigh) |
| OTIS Mock AIME 2024-2025 (Math) | 86.4% (max) | 100.0% (xhigh) |

From the Epoch AI Benchmarking Hub (https://epoch.ai/benchmarks), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), data as of November 20, 2026: Epoch's own runs and results it collects from each benchmark's leaderboard. Higher is better.

## When to pick which

- GLM 5.2: Costs 7% less per input token: $1.40 vs $1.50 per 1M.
- GLM 5.2: Available from 28 providers through LiteLLM, vs 3.

## FAQ

### Which is cheaper, GLM 5.2 or Qwen4 Max?

GLM 5.2 is cheaper at 3 input tokens per output token: $2.15 per 1M tokens blended ($1.40 input, $4.40 output), versus $2.25 ($1.50 and $4.50) for Qwen4 Max, as of December 6, 2026.

### Which has the larger context window, GLM 5.2 or Qwen4 Max?

GLM 5.2 has the larger context window: 1,000,000 tokens, versus 991,808 for Qwen4 Max.

### Can I switch from GLM 5.2 to Qwen4 Max without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "zai/glm-5.2" to "dashscope/qwen4-max", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.
