z-ai logo
z-ai

Z.ai: GLM 4.6

Source description (English)

Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex...

Overview

Model specifications

Context
204,800 tokens
Maximum output
16,384 tokens
Architecture
text->text
Tokenizer
Other
Knowledge cutoff
2025-03-31
Moderated
No
OPENROUTER

Complete pricing

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

Input
$0.43
per 1M tokens
Output
$1.75
per 1M tokens
Cache read
$0.08
per 1M tokens
API

Model configuration

Default parameters

temperature
0.6

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.6","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
text
Output
text
Reasoning

No

API

Supported API parameters

frequency_penaltyinclude_reasoninglogit_biasmax_tokensmin_ppresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_p
Available providers

4 providers

Checked: September 20, 2026

Live providers on OpenRouter

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

OpenRouter

Venice

fp4
Context
198K
Maximum output
16K
Input
$0.43
Output
$1.75
Cache read
$0.08
Cache write
Not provided

DeepInfra

fp4
Context
203K
Maximum output
131K
Input
$0.5
Output
$2
Cache read
$0.1
Cache write
Not provided

Novita

bf16
Context
205K
Maximum output
131K
Input
$0.55
Output
$2.2
Cache read
$0.11
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
z-ai

4 models

All models