z-ai logo
z-ai

Z.ai: GLM 5

Source description (English)

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...

Overview

Model specifications

Context
204,800 tokens
Maximum output
128,000 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.6
per 1M tokens
Output
$1.92
per 1M tokens
Cache read
$0.12
per 1M tokens
API

Model configuration

Default parameters

temperature
1
top_p
0.95

Reasoning

Reasoning required
No
Default parameters
Yes
API

Quick start

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

API documentation

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

InputOutput

Input
text
Output
text
Reasoning

Yes

API

Supported API parameters

frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Available providers

8 providers

Checked: September 10, 2026

Live providers on OpenRouter

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

OpenRouter

StreamLake

fp8
Context
198K
Maximum output
128K
Input
$0.6
Output
$1.92
Cache read
$0.12
Cache write
Not provided

GMICloud

fp8
Context
203K
Maximum output
182K
Input
$0.6
Output
$1.92
Cache read
$0.12
Cache write
Not provided

Baidu

fp8
Context
203K
Maximum output
131K
Input
$0.7
Output
$2.24
Cache read
$0.14
Cache write
Not provided

SiliconFlow

fp8
Context
205K
Maximum output
131K
Input
$0.95
Output
$2.55
Cache read
$0.2
Cache write
Not provided

Amazon Bedrock

Not provided
Context
203K
Maximum output
131K
Input
$1
Output
$3.2
Cache read
Not provided
Cache write
Not provided

Venice

fp8
Context
198K
Maximum output
32K
Input
$1
Output
$3.2
Cache read
$0.2
Cache write
Not provided

Novita

fp8
Context
203K
Maximum output
131K
Input
$1
Output
$3.2
Cache read
$0.2
Cache write
Not provided

Z.AI

fp8
Context
203K
Maximum output
131K
Input
$1
Output
$3.2
Cache read
$0.2
Cache write
Not provided
z-ai

4 models

All models