Z.ai

GLM 5.2 API pricing

Made by Z.ai

40 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is DeepInfra at $333.00 a month; the dearest costs $1,702.80, 5.1× as much.

Input from
$0.0069
Output from
$1.44
Context up to
1.05M tokens
Batch rates
1 route

Every route, cheapest first

Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.

ProviderInputOutputCache readCache writeBatch in / outContextMonth
DeepInfrafp4 · OpenRouter$0.45$1.44$0.084——1.05M$333.00
Relacefp4 · OpenRouter$0.0069$2.61$0.13——1.05M$354.27
Baidufp8 · OpenRouter$0.529$1.66$0.0983——1.05M$387.83
StreamLakefp8 · OpenRouter$0.531$1.67$0.0985——1.02M$388.85
Cloudflare AI GatewayLiteLLM$0.56$1.76$0.104——262K$410.40
DeepInfrafp4 · OpenRouter$0.563$1.80$0.105——1.05M$416.25
SiliconFlowfp8 · OpenRouter$0.651$2.05$0.13——1.05M$479.82
SCX AILiteLLM$0.61$1.98$0.22——1.05M$486.60
Morphfp8 · OpenRouter$0.643$1.98$0.217—$0.322 / $0.9891.05M$495.36
DigitalOceanOpenRouter$0.70$2.20$0.105——1.05M$505.50
CoreWeavefp4 · OpenRouter$0.62$2.42$0.14——1.05M$518.40
Weights & BiasesLiteLLM$0.62$2.42$0.14——262K$518.40
Novitafp8 · OpenRouter$0.77$2.42$0.143——1.05M$564.30
DeepInfrafp4 · OpenRouter$0.844$2.70$0.158——1.05M$624.38
Alibabafp8 · OpenRouter$0.966$3.04$0.193——1M$712.08
KymaLiteLLM$0.903$3.08$0.298——1M$730.33
Waferfp4 · OpenRouter$0.007$6.80$0.006——1.05M$819.90
Alibabafp8 · OpenRouter$1.12$3.52$0.224——1M$825.60
Nebiusfp4 · OpenRouter$1.40$4.40$0.14——1.05M$990.00
MistralOpenRouter$1.40$4.40$0.14——1.05M$990.00
Basetenfp8 · OpenRouter$1.40$4.40$0.14——1.05M$990.00
PerplexityLiteLLM$1.40$4.40$0.14———$990.00
DatabricksLiteLLM$1.40$4.40$0.26$1.40—1M$1,025.99
FeatherlessOpenRouter$1.40$4.40$0.26——262K$1,026.00
Together AIOpenRouter$1.40$4.40$0.26——1.05M$1,026.00
Venicefp8 · OpenRouter$1.40$4.40$0.26——1M$1,026.00
Parasailfp4 · OpenRouter$1.40$4.40$0.26——262K$1,026.00
FriendliOpenRouter$1.40$4.40$0.26——1.05M$1,026.00
Z.aifp8 · OpenRouter$1.40$4.40$0.26——1.05M$1,026.00
CloudflareLiteLLM$1.40$4.40$0.26——262K$1,026.00
TencentLiteLLM$1.40$4.40$0.26$0.00—1M$1,026.00
Huawei MaaSLiteLLM$1.40$4.40$0.26——1M$1,026.00
Alibaba DashScopeLiteLLM$1.40$4.40$0.28——1.05M$1,032.00
Qwen CloudLiteLLM$1.40$4.40$0.28——1.05M$1,032.00
Qwen AI PlatformLiteLLM$1.40$4.40$0.28——1.05M$1,032.00
Waferfp4 · OpenRouter$0.19$8.00$0.18——1.05M$1,071.00
MistralOpenRouter$1.54$4.84$0.154——1.05M$1,089.00
EmpiriolabsLiteLLM$1.40$4.40———1.05M$1,368.00
Basetenfp8 · OpenRouter$2.10$6.60$0.21——1.05M$1,485.00
Alibabafp8 · OpenRouter$2.31$7.26$0.462——1M$1,702.80

Other GLM models