Z.ai

GLM 5 Code API pricing

Made by Z.ai

1 provider route, checked 27 Nov 2026. For a sample chat workload, the cheapest is Z.ai at $1,050.00 a month.

Input from
$1.20
Output from
$5.00
Context up to
200K tokens
Batch rates
None listed

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
Z.aiLiteLLM$1.20$5.00$0.30$0.00—200K$1,050.00

Other GLM models