← Models
zai

GLM-4.7

glm-4.7
Reasoning

Model details

Model
glm-4.7
Provider
zai
API
openai-completions
Base URL
https://api.z.ai/api/coding/paas/v4
Input
text
Reasoning
Yes
Context window
204,800
Max tokens
131,072

Pricing

USD per million tokens.

Input
$0.6
Output
$2.2
Cache read
$0.11
Cache write
$0

A reference estimate. Provider pricing and context tiers may vary.

Session cost calculator

Estimate the model requests made during an agent session.

96%
Estimated session$0.15
Uncached input
$0.05
Cache reads
$0.07
Cache writes
$0.0000
Output
$0.03
Without caching
$0.47

25 model requests

The first request starts cold unless marked otherwise. Output is billed separately from context growth. Providers differ in eligibility, context tiers, rounding, and retention.

Compatibility flags

supportsStore
No
supportsReasoningEffort
No
maxTokensField
max_tokens
thinkingFormat
zai
supportsStrictMode
Yes
zaiToolStream
Yes