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
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Z.ai
1M
7.7s
68tps
$1.40/M$4.40/M
Read:$0.26/M
Write:
+1
06/16/2026
Baseten
1M
3.7s
91tps
$1.50/M$4.50/M
Read:$0.3/M
Write:
+1
06/16/2026
Fireworks
1M
1.8s
57tps
$1.40/M$4.40/M
Read:$0.26/M
Write:
+1
06/16/2026
Wafer
1M
6.9s
229tps
$3.00/M$10.25/M
Read:$0.5/M
Write:
+1
06/16/2026
DeepInfra
1M
1.3s
25tps
$0.95/M$3.00/M
Read:$0.18/M
Write:
+1
06/16/2026
Parasail
262K
$1.40/M$4.40/M
Read:$0.26/M
Write:
+1
06/16/2026