Context
200K
Max output
128K
Serving providers
1
Cheapest input
$1.20 /1M
Prices are on-demand list rates. 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
ComponentUnitStandardBatchCached
Text cached in/1M tok$0.3000
Text cache write/1M tok$0
Text input/1M tok$1.20
Text output/1M tok$5.00

Price history

input + output $/1M since we started tracking
Input Output
$0.000$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 and $5.00 per 1M output tokens at its cheapest provider via 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
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI