GLM 5
by Z.ai · z-ai/glm-5 · #278 cheapest of 457 paid models
Prices updated Nov 18, 2026, 1:36 PM UTC · refreshed nightly
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...
Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol
Pricing
Input
$1.00
per 1M tokens
Output
$3.20
per 1M tokens
Blended (3:1)
$1.55
3 input : 1 output
Cache read
$0.20
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for GLM 5 with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $1.55 | $0.1052 | — |
| 50% | $1.25 | $0.0652 | −38% |
| 90% | $1.01 | $0.0332 | −68% |
*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates (available for OpenAI / Anthropic / Google — not flagged for this creator). Confirm on the vendor’s pricing page.
What a request costs
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $0.00146 | $1.46 |
| Document summary | 8,000 | 1,000 | $0.0112 | $11.20 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.0364 | $36.40 |
| Long-context analysis | 150,000 | 5,000 | $0.166 | $166.00 |
Performance
Intelligence Index
—
AA composite quality
Coding Index
—
Math Index
—
Agentic Index
—
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Design Arena Elo
| Category | Elo |
|---|---|
| Website | 1,238 |
| Full-stack | 1,096 |
| Mobile apps | 1,128 |
| Android native | 1,135 |
| UI components | 1,219 |
| Data viz | 1,224 |
| SVG | 1,157 |
| 3D | 1,209 |
| Game dev | 1,223 |
| Godot game dev | 1,144 |
| HTML slides | 1,044 |
| Code categories | 1,235 |
| ASCII art | 1,130 |
Specs
Context window
205K
tokens
Max output
131K
tokens
Input modalities
text
Tokenizer
Other