GLM 5.3 Flash vs MAI Code 2
Z.ai vs MicrosoftDataset revised
Answer
GLM 5.3 Flash costs less per token: $0.15 in and $0.50 out per 1M, against $0.50 in and $2.50 out. MAI Code 2 allows 128,000 output tokens in one response, 1000x larger than the ceiling of GLM 5.3 Flash at 128 tokens. GLM 5.3 Flash accepts Video input; MAI Code 2 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) · Price ($0.65 and $3.00 per 1M in plus 1M out) · Closed weights
Where they differ
2 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 Flash | MAI Code 2 |
|---|---|---|
| InputsVideo input on GLM 5.3 Flash | Text, Vision, Video, Code | Text, Vision, Code |
| ReleasedMAI Code 2 is newer by 12 weeks | 2026-08-26 | 2026-11-17 |
Released Aug 26, 2026; Z.ai's fast tier, a 320B-parameter model with 18B active, a 1M-token context and 128K maximum output, accepting text, image, video and file input with text output, at $0.15/$0.50 per 1M tokens (cached input $0.03).
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 Flash | MAI Code 2 |
|---|---|---|
| Context window | 1,000,000 tokens | 1,050,000 tokens |
| Max output | 128 tokens | 128,000 tokens |
| Input price / 1M | $0.15 | $0.50 |
| Output price / 1M | $0.50 | $2.50 |
| 1M in + 1M out | $0.65 | $3.00 |
| Weights | Closed (API only) | Closed (API only) |
| Licence | Z.ai API | Microsoft Foundry / Enterprise AI Services Code of Conduct |
| Released | 2026-08-26 | 2026-11-17 |
| Inputs | Text, Vision, Video, 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.
Where GLM 5.3 Flash leads
- Cheaper input: $0.15 vs $0.50 per 1M tokens.
Where MAI Code 2 leads
- Larger context: 1,050,000 tokens vs 1,000,000 tokens on GLM 5.3 Flash.
- Longer single response: 128,000 output tokens vs 128 tokens on GLM 5.3 Flash.
Common questions
Is GLM 5.3 Flash cheaper than MAI Code 2?
Yes for GLM 5.3 Flash. GLM 5.3 Flash lists $0.15 in / $0.50 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 Flash or MAI Code 2?
MAI Code 2 accepts 1,050,000 tokens; GLM 5.3 Flash accepts 1,000,000 tokens.
Is GLM 5.3 Flash 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 Flash and MAI Code 2 released?
GLM 5.3 Flash was released on 2026-08-26 and MAI Code 2 on 2026-11-17. MAI Code 2 is the more recent release.
Do GLM 5.3 Flash and MAI Code 2 report the same benchmarks?
No. The two records do not publish a score for the same benchmark. 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 Flash, 3 for MAI Code 2). Prices are official list prices per 1M tokens and change without notice. Methodology