GLM-5.2

mit

GLM-5.2 is Z-AI's latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a **solid 1M-token context**.

Context
1.0M
Max output
128K
Input price
$0.75/1M tokens
Output price
$2.4/1M tokens

Capabilities

Reasoning & Interaction
Reasoning
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming
Prompt Caching
Fine-tuning

Details

Model IDzai-org/GLM-5.2
Provider DeepInfra
FamilyGLM-5.2
Licensemit
Statusactive
Typechat
Input modalitiestext
Output modalitiestext
Open weightYes
Parameters—
Architecture—
Context window1.0M tokens
Max input—
Max output128K tokens
Reasoning tokensYes
Knowledge cutoff—
Release date—
Sourceofficial

Tools

Function Callingfunction_calling
Call external functions and APIs

Endpoints

Chat CompletionsPOST
Generate chat responses with messageshttps://api.deepinfra.com/v1/openai/v1/chat/completions

Pricing

Input
$0.75
Output
$2.4
Cache write
—
Cache read
$0.14
Batch in
—
Batch out
—

API

GET/v1/models/deepinfra/zai-org/GLM-5.2

GLM-5.2

zai-org/GLM-5.2

GLM-5.2 is Z-AI's latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a **solid 1M-token context**.

Changes · 7 entries
zai-org/GLM-5.2createca7a400Nov 2, 2026, 03:02 AM
zai-org/GLM-5.2update0ed066aJul 31, 2026, 11:38 AM
created_byzhipu→zai
zai-org/GLM-5.2updatedbe2d73Jul 31, 2026, 06:07 AM
pricinginput$0.93→$0.75output$3→$2.4cached input$0.18→$0.14
zai-org/GLM-5.2update53ef452Jul 9, 2026, 02:32 AM
pricinginput$0.95→$0.93
zai-org/GLM-5.2update88d97e5Jun 30, 2026, 04:49 AM
pricinginput$1.2→$0.95output$4.2→$3cached input$0.2→$0.18
zai-org/GLM-5.2updatec4a5601Jun 20, 2026, 03:43 PM
pricinginput$1.4→$1.2output$4.4→$4.2cached input$0.25→$0.2
zai-org/GLM-5.2createab879c8Jun 18, 2026, 08:32 AM