Skip to content
Dashboard

GLM 5.2 Fast

GLM 5.2 Fast is a faster-serving variant of GLM-5.2, Z.ai's flagship long-horizon coding model, released June 23, 2026. Same weights and 1M tokens context, served on inference infrastructure tuned for higher throughput.

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

About GLM 5.2 Fast

GLM 5.2 Fast was released June 23, 2026 as the faster-serving variant of GLM-5.2, Z.ai's flagship model for long-horizon coding and agentic engineering. GLM 5.2 Fast runs the same underlying weights, so output quality matches the standard glm-5.2 endpoint. The difference is the serving stack: providers behind GLM 5.2 Fast run inference infrastructure tuned for higher throughput, and AI Gateway publishes live throughput and latency metrics on this page.

Everything that defines GLM-5.2 carries over. You get the 1M tokens context window, thinking on or off per request, selectable reasoning effort, tool calling, structured output, streaming, and implicit caching. Agent loops benefit the most: when a task chains dozens of model calls, faster serving shortens every step, and the savings compound across the whole run.

Speed comes at a higher per-token rate than the standard endpoint, so most teams split traffic. Interactive and user-facing paths route to GLM 5.2 Fast, while batch and background jobs stay on glm-5.2. Both share the same API surface through AI Gateway, so switching is a one-line model identifier change. The AI SDK, Chat Completions API, Responses API, Messages API, and other API formats all work.