Z.ai

GLM-5.1

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

ActiveAvailable from 22 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.

Source: Z.ai GLM API pricing, Z.ai GLM models

Price per 1M tokens via StreamLake (OpenRouter)
$0.966 in / $3.04 out
Context window204,800
Max output131,072
Cache read$0.1794 / M
ModalitiesText → Text
Priced across22 providers

Pricing

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

Billing legRate
Input$0.966 / M
Output$3.04 / M
Cache read$0.1794 / 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.1794via OpenRouter
Baidu
$0.98$3.08$0.182via OpenRouter
Chutes
$0.98$3.08$0.49via OpenRouter
GMICloud
$0.98$3.08$0.182via OpenRouter
Wafer
$1$3.2$0.1via OpenRouter
DeepInfra
$1.05$3.5$0.205via OpenRouter
SiliconFlow
$1.19$3.74$0.6via OpenRouter
AtlasCloud
$1.26$3.96$0.234via OpenRouter
DigitalOcean
$0.975$4.3$0.26via OpenRouter
Phala
$1.21$4.2$0.6via OpenRouter
Baseten
$1.3$4.3$0.26via OpenRouter
Novita
$1.38$4.4$0.26via OpenRouter
Together AI
$1.4$4.4$0.26Direct
Fireworks AI
$1.4$4.4$0.26Direct
Fireworks AI
$1.4$4.4$0.26via OpenRouter
Friendli
$1.4$4.4$0.26via OpenRouter
Nebius
$1.4$4.4via OpenRouter
Parasail
$1.4$4.4$0.26via OpenRouter
Together AI
$1.4$4.4$0.26via OpenRouter
Z.ai
$1.4$4.4$0.26via OpenRouter
Azure AI Foundry (Fireworks)
$1.54$4.84$0.286Direct
Venice
$1.54$4.84$0.286via OpenRouter

Price history

Has this model gotten cheaper or more expensive?

No changePriced at $0.966 / $3.04 per 1M since July 10, 2026.

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.