GLM 5.3 vs MAI Code 2
Z.ai vs MicrosoftDataset revised
Answer
MAI Code 2 costs less per token: $0.50 in and $2.50 out per 1M, against $1.40 in and $4.40 out. MAI Code 2 allows 128,000 output tokens in one response, 1000x larger than the ceiling of GLM 5.3 at 128 tokens. MAI Code 2 accepts Vision input; GLM 5.3 does not. MAI Code 2 carries the larger context window at 1,050,000 tokens against 1,000,000 tokens.
Within 5% or equal: Context window (1,000,000 tokens and 1,050,000 tokens) · Max output (128 tokens and 128,000 tokens) · Closed weights
Where they differ
3 axes with a real gap. The size of each gap is printed under the axis, because a five cent difference and a three times larger ceiling are not the same kind of fact.
| Axis | GLM 5.3 | MAI Code 2 |
|---|---|---|
| Price, 1M in plus 1M out1.9x cheaper on MAI Code 2 | $5.80 | $3.00 |
| InputsVision input on MAI Code 2 | Text, Code | Text, Vision, Code |
| ReleasedMAI Code 2 is newer by 13 weeks | 2026-08-18 | 2026-11-17 |
Released Aug 18, 2026; Z.ai's flagship, built on the same base model as GLM-5.2 with post-training gains in coding and agent work. Text-only input, a 1M-token context, 128K maximum output, and $1.40/$4.40 per 1M tokens. Z.ai reports Terminal-Bench 3.0 28.3 and DeepSWE v1.1 66.9, up from 4.6 and 46.2 for GLM-5.2.
Released Nov 17, 2026; Microsoft's frontier agentic coding model with a 1M-token context window, reaching 98% of GPT-6.1 Sol coding quality at 40% of the price and 96% of Claude Opus 5.5 at 5% of the cost; 84.6% on Terminal-Bench 2.1 and 73.2% on DeepSWE 1.1 (max reasoning effort, GitHub Copilot CLI harness, self-reported). The $0.50/$2.50 price is a promotional rate through May 17, 2027; the later rate is $1/$5.
Specification
| Field | GLM 5.3 | MAI Code 2 |
|---|---|---|
| Context window | 1,000,000 tokens | 1,050,000 tokens |
| Max output | 128 tokens | 128,000 tokens |
| Input price / 1M | $1.40 | $0.50 |
| Output price / 1M | $4.40 | $2.50 |
| 1M in + 1M out | $5.80 | $3.00 |
| Weights | Closed (API only) | Closed (API only) |
| Licence | Z.ai API | Microsoft Foundry / Enterprise AI Services Code of Conduct |
| Released | 2026-08-18 | 2026-11-17 |
| Inputs | Text, Code | Text, Vision, Code |
Benchmarks both laboratories published
Shown side by side only when both records name the same test and the same version.
No benchmark is reported by both laboratories at the same test and version, so no row is shown.
1 benchmarks withheldreported at different tests or versions
- Terminal-Bench, Different tests or versions (Terminal-Bench 3.0, self-reported vs Terminal-Bench 2.1, max effort).GLM 5.3: 28.3 (Terminal-Bench 3.0, self-reported) · MAI Code 2: 84.6% (Terminal-Bench 2.1, max effort)
Where GLM 5.3 leads
- Nothing measured separates it from MAI Code 2: price, context, output, modalities, weights and published benchmarks are equal or within 5%.
Where MAI Code 2 leads
- Cheaper input: $0.50 vs $1.40 per 1M tokens.
- Larger context: 1,050,000 tokens vs 1,000,000 tokens on GLM 5.3.
- Longer single response: 128,000 output tokens vs 128 tokens on GLM 5.3.
Common questions
Is GLM 5.3 cheaper than MAI Code 2?
Yes for MAI Code 2. GLM 5.3 lists $1.40 in / $4.40 out per 1M tokens; MAI Code 2 lists $0.50 in / $2.50 out. Both are official list prices recorded with a source link.
Which has the larger context window, GLM 5.3 or MAI Code 2?
MAI Code 2 accepts 1,050,000 tokens; GLM 5.3 accepts 1,000,000 tokens.
Is GLM 5.3 or MAI Code 2 open weights?
Neither publishes weights; both are closed API models (Z.ai API; Microsoft Foundry / Enterprise AI Services Code of Conduct).
When were GLM 5.3 and MAI Code 2 released?
GLM 5.3 was released on 2026-08-18 and MAI Code 2 on 2026-11-17. MAI Code 2 is the more recent release.
Do GLM 5.3 and MAI Code 2 report the same benchmarks?
No. Both laboratories publish a score for Terminal-Bench, but not on the same test or version, so ModelRegistry does not place them side by side. Comparing different evaluations would produce a ranking the evidence cannot support.
Related comparisons
Every figure above comes from the primary source on each model page (3 for GLM 5.3, 3 for MAI Code 2). Prices are official list prices per 1M tokens and change without notice. Methodology