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?'})Latency24 hours
P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.