AiCostCompare

GLM 5.1

by Z.ai · z-ai/glm-5.1 · #207 cheapest of 325 paid models

Prices updated Jul 22, 2026, 1:31 AM UTC · refreshed hourly

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol

Pricing

Input

$0.966

per 1M tokens

Output

$3.04

per 1M tokens

Blended (3:1)

$1.48

3 input : 1 output

Cache read

$0.179

per 1M cached tokens

Cache write

per 1M tokens

Cache & batch economics

Effective prices for GLM 5.1 with prompt caching.

Cache hit rateEffective blended $/1MExample request*vs no cache
0%$1.48$0.1016
50%$1.19$0.0622−39%
90%$0.953$0.0308−70%

*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

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$0.001394$1.39
Document summary8,0001,000$0.0108$10.76
Codebase question (RAG)30,0002,000$0.0351$35.05
Long-context analysis150,0005,000$0.1601$160.08

Performance

Intelligence Index

40.2

AA composite quality

Coding Index

55.8

Math Index

Agentic Index

29.9

Output speed

median

Time to first token

median

Time to first answer

after reasoning tokens

Design Arena Elo

CategoryElo
Website1,302
Web apps1,228
Full-stack1,225
Mobile apps1,225
Android native1,233
UI components1,321
Data viz1,366
SVG1,267
3D1,336
Game dev1,328
Agentic game dev1,182
Godot game dev1,112
HTML slides1,200
PPTX slides1,241
Python→PPTX slides1,258
Agentic slides1,245
Agentic HTML slides1,205
Agentic slides (HTML)1,204
Agentic slides (Python PPTX)1,240
Code categories1,311
ASCII art1,182

Specs

Context window

205K

tokens

Max output

128K

tokens

Input modalities

text

Tokenizer

Other