GLM-5.2

mit

GLM-5.2 is a flagship model built for the era of long-horizon tasks. With truly usable 1M-token context, it has been tested to handle project-scale engineering context, delivering more stable long-task execution, more reliable adherence to engineering standards, and higher success rates in development scenarios. A single task can complete the full development workflow—from requirements to deployable products across multiple platforms.

Context
128K
Max output
128K
Input price
$1.4/1M tokens
Output price
$4.4/1M tokens

Capabilities

vision
tool call
structured output
reasoning
json mode
streaming
fine tuning
batch

Details

Creator zai
Familyglm-5.2
Licensemit
Parameters
Status
Input modalitiestext
Output modalitiestext
Architecture
Knowledge cutoff
Training data cutoff
Release date
Deprecation date
Typechat
Reasoning tokens
Max input
Open weightYes
Prompt cachingSupported
Sourceofficial
Last updated

Tools

Function Callingfunction_calling
Call external functions and APIs

Pricing

Input
$1.4
Output
$4.4
Cache write
Cache read
$0.26
Batch in
Batch out

Price across providers

ProviderInputOutputSince launch
OpenCode Zencheapest$1.4$4.4
Z.AI (Zhipu)cheapest$1.4$4.4

API

GET/v1/models/zai/glm-5.2

GLM-5.2

GLM-5.2 is a flagship model built for the era of long-horizon tasks. With truly usable 1M-token context, it has been tested to handle project-scale engineering context, delivering more stable long-task execution, more reliable adherence to engineering standards, and higher success rates in development scenarios. A single task can complete the full development workflow—from requirements to deployable products across multiple platforms.

Changes · 1 entries
glm-5.2createab879c8Jun 18, 2026, 08:32 AM