Z.ai

GLM-5.2

Z.ai's latest flagship GLM model for agentic coding and reasoning, available first-party and across inference gateways.

ActiveReleased June 16, 2026Available from 41 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, Metadata verification, Field resolution verification

Price per 1M tokens via Baidu (OpenRouter)
$0.23175 in / $0.81164 out
Context window204,800
Max output131,072
Cache read$0.05768 / M
Input
  • Text
Output
  • Text
Priced across41 providers

Pricing

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

Billing legRate
Input$0.23175 / M
Output$0.81164 / M
Cache read$0.05768 / 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
$95.05
at current list prices
Fresh input$46.35
Cached input$0.00
Output incl. thinking$48.70
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
BaiduLowest
$0.23175$0.81164$0.05768-via OpenRouter
Reka
$0.455$0.91$0.091-via OpenRouter
Decart
$0.273$1.68$0.105-via OpenRouter
StreamLake
$0.546$1.72$0.1014-via OpenRouter
Inferencenet
$0.085$2.2$0.075-via OpenRouter
DeepInfra
$0.5625$1.8$0.105-via OpenRouter
Ambient
$0.6$2$0.15-via OpenRouter
Novita
$0.63$1.98$0.117-via OpenRouter
DigitalOcean
$0.7$2.2$0.105-via OpenRouter
Makora
$0.72$2.38$0.12-via OpenRouter
Coreweave
$0.76$2.42$0.14-via OpenRouter
Akashml
$0.77$2.42$0.143-via OpenRouter
Alibaba
$0.826$2.6$0.1652-via OpenRouter
Inceptron
$0.69$2.94$0.14-via OpenRouter
Sail-research
$0.5$3.15$0.115-via OpenRouter
AtlasCloud
$0.938$2.95$0.1742-via OpenRouter
Morph
$0.8415$3.14$0.1683-via OpenRouter
Io-net
$0.68$3.3$0.16-via OpenRouter
GMICloud
$0.98$3.08$0.182-via OpenRouter
Phala
$1.13$3$0.2106-via OpenRouter
Relace
$0.07$4.3$0.07-via OpenRouter
SiliconFlow
$1.19$3.74$0.221-via OpenRouter
Chutes
$1.25$3.95$0.125-via OpenRouter
Wandb
$1.39$4.4$0.26-via OpenRouter
Together AI
$1.4$4.4$0.26-Direct
Cursor
$1.4$4.4$0.26-Direct
Fireworks AI
$1.4$4.4$0.14✓Direct
Baseten
$1.4$4.4$0.14-via OpenRouter
Crusoe
$1.4$4.4$0.26-via OpenRouter
Fireworks AI
$1.4$4.4$0.14-via OpenRouter
Friendli
$1.4$4.4$0.26-via OpenRouter
Ionstream
$1.4$4.4$0.26-via OpenRouter
Mistral
$1.4$4.4$0.14-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
Venice
$1.4$4.4$0.26-via OpenRouter
Wafer
$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.15-Direct
Cloudflare
$0.19$8$0.19-via OpenRouter

Price history

Has this model gotten cheaper or more expensive?

EffectiveInput / OutputStatus
September 15, 2026 – October 1, 2026$2.25 / $7.88past
October 1, 2026$0.23175 / $0.81164current

More from Z.ai

Other models from the same provider.

Stop estimating. Track it.

SuperPenguin meters every GLM-5.2 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.