GLM-5.2

Zhipu GLM-5.2 flagship model for long-horizon coding and agentic engineering tasks with a 1M context window.

1,048,576 context
Released June 13, 2026
Starting at $0.55/M input tokens
Starting at $1.78/M output tokens
Streaming
Tools
Reasoning
JSON Output
No ratings yetSign in to rate

All Providers for GLM-5.2

OffRail routes requests to the best providers that are able to handle your prompt size and parameters.

Z AI
Context: 1M
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
+ $0.010 per search
Get Started
NovitaAI
Context: 1.0M
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
Get Started
CanopyWave
Context: 200kQuant: fp8
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
Get Started
EmberCloud
Context: 203k
Input
$1.26
/M tokens
Cache Read
$0.234
/M tokens
Output
$3.96
/M tokens
Get Started
ByteDance
Context: 1.0M
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
Get Started
Alibaba Cloud
Context: 1M
Input
$1.4
/M tokens
Cache Read
$0.28
/M tokens
Output
$4.4
/M tokens
Get Started
Runware
Context: 1.0MQuant: fp4
Input
$0.8
/M tokens
Cache Read
$0.16
/M tokens
Output
$2.55
/M tokens
Get Started
Nebius AI
Context: 1.0MQuant: fp4
Input
$1.4
/M tokens
Cache Read
/M tokens
Output
$4.4
/M tokens
Get Started
SCX.ai
Context: 1MQuant: fp8
Input
$0.55
/M tokens
Cache Read
$0.111
/M tokens
Output
$1.784
/M tokens
Get Started
Baidu
Context: 1.0M
Input
$1.4
/M tokens
Cache Read
$0.26
/M tokens
Output
$4.4
/M tokens
Get Started

Frequently asked questions

What is GLM-5.2?

Zhipu GLM-5.2 flagship model for long-horizon coding and agentic engineering tasks with a 1M context window. You can access it through OffRail's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.

How much does GLM-5.2 cost?

Pricing for GLM-5.2 on OffRail starts at $0.55 per million input tokens and $1.78 per million output tokens, depending on the provider. The pricing table above always reflects the current per-provider rates.

What is the context length of GLM-5.2?

GLM-5.2 supports a context window of up to 1,048,576 tokens on its largest provider deployment.

Which providers serve GLM-5.2?

GLM-5.2 is served by Z AI, NovitaAI, CanopyWave, EmberCloud, ByteDance, Alibaba Cloud, Runware, Nebius AI, SCX.ai, Baidu through OffRail. Requests are automatically routed to the best available provider, with fallback when a provider has issues.

Does GLM-5.2 support tool calling and structured outputs?

GLM-5.2 supports tool (function) calling and soft JSON output, but NOT strict JSON output schema (its upstream provider does not enforce it).

When was GLM-5.2 released?

GLM-5.2 was released on June 13, 2026.