Skip to content
Dashboard

GLM 5.2

GLM 5.2 is Z.AI's flagship open-weight model for long-horizon coding and agentic engineering, released June 16, 2026. A 1.0M tokens context window carries project-level engineering state, and selectable reasoning effort tunes depth per request. Your use subject to Z.AI's Terms & Privacy Policies.

ReasoningTool UseImplicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'zai/glm-5.2',
prompt: 'Why is the sky blue?'
})

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Max Output
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Regional Inference
Release Date
1M128K
5.1s
75tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
1M128K
2.5s
101tps
$1.50/M
$4.50/M
Read:$0.3/M
Write:
US
06/16/2026
1M128K
2.6s
71tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
1M128K
1.9s
401tps
$1.26/M
$3.96/M
Read:$0.23/M
Write:
06/16/2026
1M128K
0.6s
69tps
$0.95/M
$3/M
Read:$0.18/M
Write:
06/16/2026
262K128K
2.0s
186tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
256K128K
0.5s
247tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
1M128K
1.8s
91tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
Novita AI
35% off
Legal:TermsPrivacy
1M128K
5.6s
48tps
$1.40/M$0.90/M
$4.40/M$2.84/M
Read:$0.26/M$0.17/M
Write:
06/16/2026
1M128K
7.6s
83tps
$1.10/M
$3.85/M
Read:$0.28/M
Write:
06/16/2026
1M128K
0.5s
202tps
$1.10/M
$4.10/M
06/16/2026
262K128K
0.4s
396tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
262K52K
0.4s
594tps
$1.05/M
$4.40/M
Read:$0.21/M
Write:
06/16/2026
1M1M
$1.40/M
$4.40/M
06/16/2026