Z.ai (GLM) logo

Z.ai: GLM 5.2

z-ai/glm-5.2

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Modalities

TextText

In / out price

$0.41 / $3.99 per 1M

Context

1.05M

Released

Jun 16, 2026

Why use GLM 5.2

  • Step-by-step reasoning mode
  • Tool and function calling (agent-ready)
  • Structured (JSON) outputs
  • Very long context: whole books or codebases in one prompt

Pricing

Input$0.41 / 1M tokens
Output$3.99 / 1M tokens
Cached input (read)$0.26 / 1M tokens

List prices via OpenRouter, checked daily. Real cost depends on the provider and on reasoning tokens.

How it ranks

Intelligence index33.7
Coding index68.8
Agentic index38.4

Source: Artificial Analysis (artificialanalysis.ai) via OpenRouter (openrouter.ai/rankings).

Cost calculator

Pick a task, set how often you run it, and compare what it costs on each model.

ModelPer runPer monthPer 1,000 runs
Z.ai: GLM 5.2$0.0083$8.31$8.31

Estimates from list prices via OpenRouter; real bills vary by provider and reasoning tokens.

Will it fit? Context window simulator

Each square is about one page (500 words). Colored squares are your content; grey squares are free space in the model's context window.

Your content

  • Novel (90,000 words)

Total: about 120,000 tokens (≈ 90,226 words). Token counts are estimates.

Models

Z.ai: GLM 5.2

1,048,576 tokens ≈ 1,577 pages

Fits: uses 11% of the window (room for 8× this much).

Write with the best model for the job

WordGPT picks and switches models for you: drafting, editing and files in one place. Free plan, no credit card.

Try it free

More from Z.ai (GLM)