z-ai logo
z-ai

Z.ai: GLM 4.6

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 agentic tasks. $0.43 per million input tokens, $1.75 per million output tokens. 204,800 token context window, maximum output of 16,384 tokens. Higher uptime with 5 providers. Includes independent benchmarks from Artificial Analysis.

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
/M tokens
Output
$1.75
/M tokens
Cache read
$0.08
/M tokens
API

Model configuration

Default parameters

temperature
0.6

Reasoning

Moderated
No
Default parameters
No
API

Quick start

Call this exact model ID through OpenRouter’s OpenAI-compatible API.

curl 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

5 providers

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.430
Output
$1.75
Cache read
$0.080
Cache write
Not provided

DeepInfra

fp4
Context
203K
Maximum output
131K
Input
$0.500
Output
$2.00
Cache read
$0.100
Cache write
Not provided

Novita

bf16
Context
205K
Maximum output
131K
Input
$0.550
Output
$2.20
Cache read
$0.110
Cache write
Not provided

AtlasCloud

fp8
Context
203K
Maximum output
182K
Input
$0.600
Output
$2.20
Cache read
$0.110
Cache write
Not provided

Z.AI

fp4
Context
203K
Maximum output
131K
Input
$0.600
Output
$2.20
Cache read
$0.110
Cache write
Not provided
z-ai

models

All models