Curated dataset78 models

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.

AxisGLM 5.3MAI Code 2
Price, 1M in plus 1M out1.9x cheaper on MAI Code 2$5.80$3.00
InputsVision input on MAI Code 2Text, CodeText, Vision, Code
ReleasedMAI Code 2 is newer by 13 weeks2026-08-182026-11-17

Specification

FieldGLM 5.3MAI Code 2
Context window1,000,000 tokens1,050,000 tokens
Max output128 tokens128,000 tokens
Input price / 1M$1.40$0.50
Output price / 1M$4.40$2.50
1M in + 1M out$5.80$3.00
WeightsClosed (API only)Closed (API only)
LicenceZ.ai APIMicrosoft Foundry / Enterprise AI Services Code of Conduct
Released2026-08-182026-11-17
InputsText, CodeText, 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