z-ai logo
z-ai

Z.ai: GLM 5.2

GLM 5.2 is a large-scale reasoning model from Z.ai. $0.4875 per million input tokens, $1.56 per million output tokens. 1,048,576 token context window, maximum output of 163,840 tokens. Higher uptime with 27 providers. Includes independent benchmarks from Artificial Analysis.

Overview

Model specifications

Context
1,048,576 tokens
Maximum output
262,144 tokens
Architecture
text->text
Tokenizer
Other
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.4875
/M tokens
Output
$1.56
/M tokens
Cache read
$0.091
/M tokens
API

Model configuration

Default parameters

temperature
1
top_p
0.95

Reasoning

Moderated
No
Default parameters
high
Capabilities
xhigh, high
API

Quick start

Call this exact model ID through OpenRouter’s OpenAI-compatible API.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"z-ai/glm-5.2","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
text
Output
text
Reasoning

Yes · xhigh · high

API

Supported API parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Available providers

33 providers

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

DeepInfra

fp4
Context
1.0M
Maximum output
164K
Input
$0.487
Output
$1.56
Cache read
$0.091
Cache write
Not provided

Sail Research

fp8
Context
1.0M
Maximum output
131K
Input
$0.500
Output
$3.15
Cache read
$0.115
Cache write
Not provided

Ambient

fp8
Context
203K
Maximum output
182K
Input
$0.600
Output
$2.00
Cache read
$0.150
Cache write
Not provided

Decart

fp4
Context
1.0M
Maximum output
944K
Input
$0.684
Output
$2.28
Cache read
$0.114
Cache write
Not provided

DigitalOcean

unknown
Context
262K
Maximum output
236K
Input
$0.700
Output
$2.20
Cache read
$0.105
Cache write
Not provided

Inceptron

fp4
Context
1.0M
Maximum output
944K
Input
$0.710
Output
$2.35
Cache read
$0.120
Cache write
Not provided

Makora

fp4
Context
980K
Maximum output
128K
Input
$0.720
Output
$2.38
Cache read
$0.120
Cache write
Not provided

StreamLake

fp8
Context
1.0M
Maximum output
128K
Input
$0.735
Output
$2.31
Cache read
$0.137
Cache write
Not provided

Novita

fp8
Context
1.0M
Maximum output
131K
Input
$0.742
Output
$2.33
Cache read
$0.138
Cache write
Not provided

CoreWeave

fp4
Context
1.0M
Maximum output
944K
Input
$0.760
Output
$2.42
Cache read
$0.140
Cache write
Not provided

Alibaba

fp8
Context
1.0M
Maximum output
131K
Input
$0.966
Output
$3.04
Cache read
$0.193
Cache write
Not provided

GMICloud

fp8
Context
1.0M
Maximum output
944K
Input
$1.05
Output
$3.30
Cache read
$0.195
Cache write
Not provided

Reka

fp8
Context
262K
Maximum output
131K
Input
$1.10
Output
$3.75
Cache read
$0.200
Cache write
Not provided

SiliconFlow

fp8
Context
1.0M
Maximum output
262K
Input
$1.19
Output
$3.74
Cache read
$0.221
Cache write
Not provided

Phala

fp8
Context
1.0M
Maximum output
131K
Input
$1.26
Output
$3.00
Cache read
$0.220
Cache write
Not provided

AtlasCloud

fp8
Context
1.0M
Maximum output
131K
Input
$1.26
Output
$3.96
Cache read
$0.234
Cache write
Not provided

Baidu

fp8
Context
1.0M
Maximum output
131K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

BaseTen

fp8
Context
1.0M
Maximum output
262K
Input
$1.40
Output
$4.40
Cache read
$0.140
Cache write
Not provided

Mistral

unknown
Context
1.0M
Maximum output
128K
Input
$1.40
Output
$4.40
Cache read
$0.140
Cache write
Not provided

Mistral

unknown
Context
1.0M
Maximum output
128K
Input
$1.40
Output
$4.40
Cache read
$0.140
Cache write
Not provided

Fireworks

unknown
Context
1.0M
Maximum output
944K
Input
$1.40
Output
$4.40
Cache read
$0.140
Cache write
Not provided

Cloudflare

unknown
Context
262K
Maximum output
236K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Z.AI

fp8
Context
1.0M
Maximum output
131K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Parasail

fp4
Context
262K
Maximum output
236K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Together

unknown
Context
512K
Maximum output
461K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Crusoe

fp8
Context
1.0M
Maximum output
944K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Venice

fp8
Context
1M
Maximum output
131K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Friendli

unknown
Context
1.0M
Maximum output
944K
Input
$1.40
Output
$4.40
Cache read
$0.260
Cache write
Not provided

Mistral

unknown
Context
1.0M
Maximum output
128K
Input
$1.54
Output
$4.84
Cache read
$0.154
Cache write
Not provided

BaseTen

fp8
Context
1.0M
Maximum output
262K
Input
$2.10
Output
$6.60
Cache read
$0.210
Cache write
Not provided

Fireworks

unknown
Context
1.0M
Maximum output
944K
Input
$2.10
Output
$6.60
Cache read
$0.210
Cache write
Not provided

Fireworks

unknown
Context
1.0M
Maximum output
944K
Input
$2.10
Output
$6.60
Cache read
$0.210
Cache write
Not provided

Alibaba

fp8
Context
1.0M
Maximum output
131K
Input
$2.31
Output
$7.26
Cache read
$0.462
Cache write
Not provided
z-ai

models

All models