Context
200K
Max output
128K
Serving providers
1
Cheapest input
$1.20 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
ZaiCheapest$1.20$5.001
Standardzai/glm-5-code
ComponentUnitStandard
Text cached in/1M tok$0.30
Text cache write/1M tok$0.00
Text input/1M tok$1.20
Text output/1M tok$5.00

Price history

listed seller prices, input and output per 1M tokens
Input Output
$0.00$2.00$4.00$6.00Mar 3Jun 22$5.00$1.20

Cost calculator

estimate your monthly spend on this model
$640
estimated / month

Model IDs

copy the exact identifier for your platform
zai/glm-5-code

Frequently asked questions

GLM 5 Code pricing, context and availability

How much does GLM 5 Code cost?

GLM 5 Code costs $1.20 per 1M input tokens from Zai, and $5.00 per 1M output tokens from Zai.

What is the context window of GLM 5 Code?

GLM 5 Code accepts up to 200K tokens of context and can return up to 128K output tokens.

What can GLM 5 Code do?

GLM 5 Code supports tool use, reasoning and prompt caching.

Other Zhipu models

compare pricing across the Zhipu lineup
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Oct 14, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI