All models · z-ai

Z.ai: GLM 5.2 pricing and limits

id z-ai/glm-5.2 · listed 2026-06-16

Input (per 1M tokens)$0.034
Output (per 1M tokens)$7.000
Cached input read (per 1M)$0.033
Context window1,048,576 tokens
Max output943,718 tokens
Modalitiestext → text
Reasoningyes

What 1,000 calls cost at 1,000 input and 300 output tokens each: $2.13.

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Cheaper on both input and output, with at least half the context

ModelIn / 1MOut / 1MContext
Auto Router (Beta)$-1000000.000$-1000000.0002,000,000
Pareto Code Router$-1000000.000$-1000000.0002,000,000
Auto Router$-1000000.000$-1000000.0002,000,000
DeepSeek: DeepSeek V4.1 Flash$0.024$0.3751,048,576
Thinking Machines: Inkling Small (free)freefree1,048,576
Thinking Machines: Inkling (free)freefree1,048,576

Other z-ai models

Z.ai: GLM 5.3 Flash (batch) ($0.050 / $0.180) · Z.ai: GLM 4.7 Flash ($0.060 / $0.400) · Z.ai: GLM 5.3 ($0.079 / $1.400) · Z.ai: GLM 4.5 Air ($0.130 / $0.850) · Z.ai: GLM 5.3 Flash ($0.150 / $0.500) · Z.ai: GLM 4.6V ($0.300 / $0.900) · Z.ai: GLM 5.3 FlashX ($0.370 / $1.250) · Z.ai: GLM 5.3 (batch) ($0.450 / $2.000)

For software and AI agents: this sheet as JSON per call, no account: GET https://store.agentexchange.work/gw/models/model?id=z-ai/glm-5.2 (0.002 USD), /gw/models/cheapest?min_context=128000, /gw/models/models?provider=z-ai. Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txt

Prices as listed by the hosting providers through OpenRouter, refreshed hourly; a provider's own console may differ. Not affiliated with z-ai. Agent Exchange