z-ai logo
z-ai

Z.ai: GLM 4.7

Source description (English)

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...

Overview

Model specifications

Context
204,800 tokens
Maximum output
131,072 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.4
per 1M tokens
Output
$1.75
per 1M tokens
Cache read
$0.08
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-4.7","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
text
Output
text
Reasoning

Yes

API

Supported API parameters

frequency_penaltyinclude_reasoninglogit_biasmax_tokensmin_ppresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_atop_ktop_p
Available providers

7 providers

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

DeepInfra

fp4
Context
203K
Maximum output
131K
Input
$0.4
Output
$1.75
Cache read
$0.08
Cache write
Not provided

AtlasCloud

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

Novita

fp8
Context
205K
Maximum output
131K
Input
$0.54
Output
$1.98
Cache read
$0.099
Cache write
Not provided

Venice

fp4
Context
198K
Maximum output
16K
Input
$0.55
Output
$2.65
Cache read
$0.11
Cache write
Not provided

Google

Not provided
Context
200K
Maximum output
128K
Input
$0.6
Output
$2.2
Cache read
Not provided
Cache write
Not provided

Z.AI

fp4
Context
203K
Maximum output
131K
Input
$0.6
Output
$2.2
Cache read
$0.11
Cache write
Not provided

Mancer 2

fp4
Context
131K
Maximum output
118K
Input
$0.7
Output
$2.5
Cache read
Not provided
Cache write
Not provided
z-ai

4 models

All models