z-ai logo
z-ai

Z.ai: GLM 4.5

Source description (English)

GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly...

Overview

Model specifications

Context
131,072 tokens
Maximum output
98,304 tokens
Architecture
text->text
Tokenizer
Other
Knowledge cutoff
2024-12-31
Moderated
No
OPENROUTER

Complete pricing

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

Input
$0.6
per 1M tokens
Output
$2.2
per 1M tokens
Cache read
$0.11
per 1M tokens
API

Model configuration

Default parameters

temperature
0.75

Reasoning

Reasoning required
No
Default parameters
No
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-4.5","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
text
Output
text
Reasoning

No

API

Supported API parameters

include_reasoningmax_tokensreasoningresponse_formattemperaturetool_choicetoolstop_ktop_p
Available providers

1 Provider

Checked: September 7, 2026

Live providers on OpenRouter

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

OpenRouter

Z.AI

fp8
Context
131K
Maximum output
98K
Input
$0.6
Output
$2.2
Cache read
$0.11
Cache write
Not provided
z-ai

4 models

All models