🎉 Get Free $5 on Signup!
Models
Enterprise
Subscribe
Resource
Activity
Documentation
Console

/z.ai/glm-5.2

Z

Z.ai: glm-5.2

GLM-5.2 was released by Z.ai in 2026 as part of the GLM-5 model family. It is a general-purpose model designed for reasoning and coding workloads, supporting tasks that require multi-step problem solving, code generation, and technical analysis.

Modetext → text
Input price$2.8 per M tokens
Output price$12.32 per M tokens
Context length
Listed at

Z.ai

Latency—
Throughput—
Upload rate—
Context length—
Max output—
Input price$2.8per 1M tokens
Output price$12.32per 1M tokens
Cache read$0.728per 1M tokens
Cache write—per 1M tokens

Performance

Avg TPS—
Avg latency—
Avg success rate—
TPS—
TTFT—
Latency—
Success rate—

Success rate

Speed

Code Example

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

All requests must include the Authorization: Bearer <TOKEN> header.

Endpoint Path

POST

Supported Parameters

ParameterTypeDefaultDescription

Rate Limits

GroupRPMTPMRPD

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.

Pricing

ProviderBilling typePrice summary
C
ChatGLM
Per token
Input price$2.8per 1M tokens
Completion price$12.32per 1M tokens
Cache read price$0.728per 1M tokens
Cache write price$—per 1M tokens