z-ai logo
z-ai

Z.ai: GLM 5.2 (batch)

Source description (English)

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Overview

Model specifications

Context
1,048,576 tokens
Maximum output
943,718 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.322
per 1M tokens
Output
$0.989
per 1M tokens
Cache read
$0.109
per 1M tokens
API

Model configuration

Default parameters

temperature
1
top_p
0.95

Reasoning

Reasoning required
No
Default parameters
high
Capabilities
xhigh, high, none
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

This submits an asynchronous batch using the base model ID. A job ID confirms submission, not completion.

API documentation

curl --fail-with-body https://openrouter.ai/api/beta/batches \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"/v1/chat/completions","model":"z-ai/glm-5.2","requests":[{"custom_id":"request-1","body":{"messages":[{"role":"user","content":"Hello!"}]}}]}'

# Replace JOB_ID with the returned id to check progress.
curl --fail-with-body "https://openrouter.ai/api/beta/batches/JOB_ID" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY"
Capabilities

Input → Output

Input
text
Output
text
Reasoning

Yes · xhigh · high · none

API

Supported API parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_ppresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Available providers

1 Provider

Checked: November 17, 2026

Live providers on OpenRouter

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

OpenRouter

Morph

fp8
Context
1.0M
Maximum output
944K
Input
$0.322
Output
$0.989
Cache read
$0.109
Cache write
Not provided
z-ai

4 models

All models