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.

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
Z.AI
Legal:Terms
Privacy
1M128K
5.2s
88tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
Baseten
Legal:Terms
Privacy
1M128K
0.8s
103tps
$1.50/M
$4.50/M
Read:$0.3/M
Write:
US
06/16/2026
Fireworks
Legal:Terms
Privacy
1M128K
2.3s
52tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
Wafer
Legal:Terms
Privacy
1M128K
1.2s
109tps
$3/M
$10.25/M
Read:$0.5/M
Write:
06/16/2026
DeepInfra
Legal:Terms
Privacy
1M128K
0.7s
54tps
$0.95/M
$3/M
Read:$0.18/M
Write:
06/16/2026
Parasail
Legal:Terms
Privacy
262K128K
1.7s
211tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
Together AI
Legal:Terms
Privacy
256K128K
0.4s
209tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
StreamLake
Legal:Terms
Privacy
1M128K
1.3s
112tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
Novita AI
35% off
Legal:Terms
Privacy
1M128K
9.6s
43tps
$1.40/M$0.90/M
$4.40/M$2.84/M
Read:$0.26/M$0.17/M
Write:
06/16/2026
Alibaba Cloud
Legal:Terms
Privacy
1M128K
6.4s
95tps
$1.10/M
$3.85/M
Read:$0.28/M
Write:
06/16/2026
Morph
Legal:Terms
Privacy
1M128K
0.9s
47tps
$1.10/M
$4.10/M
06/16/2026
Crusoe
Legal:Terms
Privacy
262K128K
1.3s
383tps
$1.40/M
$4.40/M
Read:$0.26/M
Write:
06/16/2026
DigitalOcean
Legal:Terms
Privacy
262K52K
4.3s
606tps
$1.05/M
$4.40/M
Read:$0.21/M
Write:
06/16/2026
Nebius
Legal:Terms
Privacy
1M1M
0.8s
215tps
$1.40/M
$4.40/M
06/16/2026