Home / z-ai / Z.ai: GLM 5.2

Z.ai: GLM 5.2 API Pricing & Cost Calculator

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,...

ReasoningCachingOpen-Weight z-ai/glm-5.2
Input / 1M
$0.0070
Output / 1M
$5.80
Cache Read / 1M
$0.0060
Blended 3:1 / 1M
$1.46
Agent Cached / 1M
$1.16
Context Window
1.0M

Monthly Workload Cost Calculator

Daily
$2.93
Monthly
$87.94
Cache Saved
$0.110
Annual
$1,069.91

Benchmarks & Capabilities

Intelligence Index—
Coding / Engineering— / —
Agentic Index—
Design Arena Avg ELO1197.6
Value Score—
Modalitytext->text
Max Output943.7K

5 Cheaper Alternatives to Z.ai: GLM 5.2

Alternative ModelBlended / 1MInput / 1MOutput / 1MIntelSide-by-Side
OpenAI: GPT-6.1 Terra (batch)
openai/gpt-6.1-terra:batch
$1.00 $0.500 $2.50 51 Compare →
Anthropic: Claude Haiku 5.5 (batch)
anthropic/claude-haiku-5.5:batch
$0.100 $0.050 $0.250 37 Compare →
Anthropic: Claude Haiku 5.5
anthropic/claude-haiku-5.5
$0.200 $0.100 $0.500 37 Compare →
MiniMax: MiniMax M4
minimax/minimax-m4
$1.38 $0.800 $3.10 47 Compare →
Meta: Muse Ember
meta/muse-ember
$0.200 $0.100 $0.500 36 Compare →

Frequently Asked Questions

How much does Z.ai: GLM 5.2 API cost per 1M tokens?

Z.ai: GLM 5.2 (z-ai/glm-5.2) costs $0.0070 per 1M input tokens and $5.80 per 1M output tokens (3:1 blended price: $1.46 per 1M tokens).

Does Z.ai: GLM 5.2 support prompt caching and how much does it save?

Yes. Cached input reads cost $0.0060 per 1M tokens, bringing realistic 80%-cached agent loop cost down to $1.16 per 1M tokens.

What is the context window and maximum output of Z.ai: GLM 5.2?

Z.ai: GLM 5.2 supports a 1.0M token context window (1,048,576 tokens) and up to 943.7K output tokens per completion.

Fetch Live JSON via API

curl -s "https://llm.lhblabs.com/api/v1/models/z-ai-glm-5-2"
Recommended Stack: DigitalOcean

Predictable Droplets, managed databases, and GPU nodes for production AI workloads.

Try DigitalOcean →
Self-Serve Placement Building an LLM API, GPU Cloud, or AI Dev Tool?
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.
Book Sponsor Slot →