GLM-5.1
The prior GLM-5 flagship with hybrid thinking, strong for coding and agents, available across inference gateways.
Source: Z.ai GLM API pricing, Z.ai GLM models
Pricing
Every billing leg from the live catalog, in USD per 1M tokens.
| Billing leg | Rate |
|---|---|
| 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.
Compare providers
The same model, priced across every platform that serves it. Lowest combined in/out rate is flagged.
| Platform | Input / M | Output / M | Cache read / M | Batch | Access |
|---|---|---|---|---|---|
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 |
DigitalOcean | $0.975 | $4.3 | $0.26 | — | via OpenRouter |
Phala | $1.21 | $4.2 | $0.6 | — | via OpenRouter |
Baseten | $1.3 | $4.3 | $0.26 | — | 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 |
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 |
Azure AI Foundry (Fireworks) | $1.54 | $4.84 | $0.286 | — | Direct |
Venice | $1.54 | $4.84 | $0.286 | — | via OpenRouter |
Price history
Has this model gotten cheaper or more expensive?
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.
Rates are generated from SuperPenguin's live pricing catalog.



