Z.ai

GLM-5.1

The prior GLM-5 flagship with hybrid thinking, strong for coding and agents, available across inference gateways.

ActiveReleased April 7, 2026Available from 25 providers
Tool callingCan invoke external tools and APIs (function calling) mid-response.Structured outputCan return JSON or schema-constrained responses instead of free text.ReasoningUses extended thinking / chain-of-thought for harder multi-step problems.Effort controlLets you dial thinking depth (low / medium / high) to trade cost for quality.Fine-tuningSupports training a custom variant on your own data (vendor fine-tune API or self-hosted open weights).

Source: Z.ai GLM API pricing, Z.ai GLM models, Metadata verification, Field resolution verification

Price per 1M tokens via OpenRouter
$0.9646 in / $3.03 out
Context window204,800
Max output131,072
Cache read$0.17914 / M
Input
  • Text
Output
  • Text
Priced across25 providers

Pricing

Every billing leg from the live catalog, in USD per 1M tokens.

Billing legRate
Input$0.9646 / M
Output$3.03 / M
Cache read$0.17914 / M

Cost calculator

Billing-grade math over the rate card above, including the thinking tokens most estimates miss.

Hidden reasoning tokens bill as output. 1.0x = thinking off. Medium-effort reasoning typically lands near 3x; heavy reasoning runs 6x to 8x. Set it to match your workload.

Estimated monthly cost
$375
at current list prices
Fresh input$193
Cached input$0.00
Output incl. thinking$182
Track this automatically →

Compare providers

The same model, priced across every platform that serves it. Lowest combined in/out rate is flagged.

PlatformInput / MOutput / MCache read / MBatchAccess
StreamLakeLowest
$0.966$3.04$0.1794-via OpenRouter
Baidu
$0.98$3.08$0.182-via OpenRouter
Chutes
$0.98$3.08$0.49-via OpenRouter
GMICloud
$0.98$3.08$0.182-via OpenRouter
Wafer
$1$3.2$0.1-via OpenRouter
DeepInfra
$1.05$3.5$0.205-via OpenRouter
SiliconFlow
$1.19$3.74$0.6-via OpenRouter
AtlasCloud
$1.26$3.96$0.234-via OpenRouter
Phala
$1.21$4.2$0.6-via OpenRouter
Alibaba
$1.33$4.18$0.247-via OpenRouter
Baseten
$1.3$4.3$0.26-via OpenRouter
DigitalOcean
$1.3$4.3$0.26-via OpenRouter
Crusoe
$1.2$4.4$0.25-via OpenRouter
Novita
$1.38$4.4$0.26-via OpenRouter
Together AI
$1.4$4.4$0.26-Direct
Fireworks AI
$1.4$4.4$0.26✓Direct
Coreweave
$1.4$4.4$0.26-via OpenRouter
Fireworks AI
$1.4$4.4$0.26-via OpenRouter
Friendli
$1.4$4.4$0.26-via OpenRouter
Nebius
$1.4$4.4--via OpenRouter
Parasail
$1.4$4.4$0.26-via OpenRouter
Together AI
$1.4$4.4$0.26-via OpenRouter
Z.ai
$1.4$4.4$0.26-via OpenRouter
Venice
$1.4$4.4$0.26026-via OpenRouter
Azure AI Foundry (Fireworks)
$1.54$4.84$0.286-Direct

Price history

Has this model gotten cheaper or more expensive?

EffectiveInput / OutputStatus
July 8, 2026 – August 6, 2026$0.966 / $3.04past
August 6, 2026 – August 10, 2026$0.952 / $2.99past
August 10, 2026 – August 12, 2026$1.4 / $4.4past
August 12, 2026 – August 18, 2026$0.952 / $2.99past
August 18, 2026 – August 25, 2026$0.966 / $3.04past
August 25, 2026 – August 30, 2026$1.26 / $3.96past
August 30, 2026 – October 1, 2026$0.966 / $3.04past
October 1, 2026 – October 3, 2026$0.9646 / $3.03past
October 3, 2026 – October 24, 2026$0.966 / $3.04past
October 24, 2026$0.9646 / $3.03current

More from Z.ai

Other models from the same provider.

Stop estimating. Track it.

SuperPenguin meters every GLM-5.1 call your team makes, prices it with this exact rate card, and shows spend by feature, customer, and team.

Get started free

Rates are generated from SuperPenguin's live pricing catalog.