AI Daily Roundup
🌐 English

Today › AI API prices › Z.ai

glm-5-code API pricing (Z.ai)

Input / 1M tokens$1.20
Output / 1M tokens$5.004.2× input
Context window200Kmax output 128K
Rank within Z.ai13 / 17
Among all modelscheaper than 21%of 725 models

Cost for typical workloads

WorkloadThis modelMedian of all models
10,000 chats (2,000 in / 500 out tokens)$49.00$20.50
100 long summaries (50,000 in / 1,000 out)$6.50$2.97
1,000 articles (500 in / 2,000 out)$10.60$2.50

Similarly priced models from other providers

ModelProviderInputOutputContext
glm-5.1Alibaba DashScope (Qwen)$1.40$4.40203K
glm-5.2Alibaba DashScope (Qwen)$1.40$4.401M
glm-5p1Fireworks AI$1.40$4.40203K
glm-5p2Fireworks AI$1.40$4.401M
glm-5p3Fireworks AI$1.40$4.401M
glm-5p1Fireworks AI$1.40$4.40203K

Price history

DateInputOutput
2026-10-03$1.20$5.00

Only dates with a change are listed (17 snapshots from 2026-10-03 to 2026-11-10).

Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.

About this page

glm-5-code on Z.ai costs $1.20 per million input tokens and $5.00 per million output tokens; it ranks 13 of 17 Z.ai models by price, with a 200K context window.