Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for z-ai

Z.ai: GLM 5.2

z-ai/glm-5.2

Model weights
Compare

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, and complex multi-step automation.

Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.

Modalities

In / Out Price

35% off

$0.4875 / $1.56per 1M

Context

1.0M

Released

Jun 16, 2026

Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityFAQExplore

Providers

Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick — Balanced (price + speed), Nitro (fastest), or Exacto (highest tool-calling accuracy).

Pricing

The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).

Uptime

Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.

Benchmark score summary for Z.ai: GLM 5.2 (Artificial Analysis and Design Arena)
SourceBenchmarkScore
Artificial AnalysisGLM-5.2 (Non-reasoning) Coding Index46.5
Artificial AnalysisGLM-5.2 (Non-reasoning) GPQA Diamond68.6%
Artificial AnalysisGLM-5.2 (Non-reasoning) HLE9.8%
Artificial AnalysisGLM-5.2 (Non-reasoning) AA-LCR42.3%
Artificial AnalysisGLM-5.2 (Non-reasoning) GDPval-AA40.3%
Artificial AnalysisGLM-5.2 (Non-reasoning) CritPt3.1%
Artificial AnalysisGLM-5.2 (Non-reasoning) AA-Omniscience Accuracy20.3%
Artificial AnalysisGLM-5.2 (Non-reasoning) AA-Omniscience Non-Hallucination Rate66.3%
Artificial AnalysisGLM-5.2 (max) Intelligence Index34.0
Artificial AnalysisGLM-5.2 (max) Coding Index68.8
Artificial AnalysisGLM-5.2 (max) Agentic Index39.4
Artificial AnalysisGLM-5.2 (max) GPQA Diamond89.5%
Artificial AnalysisGLM-5.2 (max) HLE41.1%
Artificial AnalysisGLM-5.2 (max) IFBench73.3%
Artificial AnalysisGLM-5.2 (max) τ²-Bench Telecom99.1%
Artificial AnalysisGLM-5.2 (max) AA-LCR78.3%
Artificial AnalysisGLM-5.2 (max) GDPval-AA45.3%
Artificial AnalysisGLM-5.2 (max) CritPt20.9%
Artificial AnalysisGLM-5.2 (max) SciCode51.2%
Artificial AnalysisGLM-5.2 (max) Terminal-Bench Hard50.8%
Artificial AnalysisGLM-5.2 (max) AA-Omniscience Accuracy24.3%
Artificial AnalysisGLM-5.2 (max) AA-Omniscience Non-Hallucination Rate73.7%
Design ArenaGLM 5.2 Agents Arena Agenticgamedev Elo1205
Design ArenaGLM 5.2 Agents Arena Androidnative Elo1190
Design ArenaGLM 5.2 Agents Arena Full Stack Elo1250
Design ArenaGLM 5.2 Agents Arena Godotgamedev Elo1142
Design ArenaGLM 5.2 Agents Arena Htmlslides Elo1178
Design ArenaGLM 5.2 Agents Arena Mobile Apps Elo1190
Design ArenaGLM 5.2 Agents Arena Python-Pptxslides Elo1194
Design ArenaGLM 5.2 Agents Arena Webapps Elo1236
Design ArenaGLM 5.2 Models Arena 3D Elo1321
Design ArenaGLM 5.2 Models Arena Asciiart Elo1228
Design ArenaGLM 5.2 Models Arena Code Categories Elo1309
Design ArenaGLM 5.2 Models Arena Data Visualization Elo1312
Design ArenaGLM 5.2 Models Arena Game Development Elo1297
Design ArenaGLM 5.2 Models Arena SVG Elo1249
Design ArenaGLM 5.2 Models Arena UI Component Elo1309
Design ArenaGLM 5.2 Models Arena Website Elo1305

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

Activity

Token volume and request traffic to this model over time.

Quick Start

Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.

Explore more models

AI Model RankingsRanking

Frequently asked questions

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, and complex multi-step automation. Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning.

GLM 5.2 costs $0.4875/M input tokens and $1.56/M output tokens, with separate rates for Cache Read at $0.091/M tokens.

GLM 5.2 has a 1,048,576 token context window. It supports up to 163,840 completion tokens.

Yes. GLM 5.2 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.

GLM 5.2 is served by 23 providers on OpenRouter: DeepInfra, Ambient, StreamLake, NovitaAI, DigitalOcean, CoreWeave, AtlasCloud, Alibaba Fast and 15 more. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.

GLM 5.2 was released on June 16, 2026.