GLM-5.2 API pricing: $1.40 input, $4.40 output per 1M
GLM-5.2 is Z.AI's June 2026 long-horizon coding model: 1M context, 128K max output, $1.40/1M input, $4.40/1M output, and $0.26 cached input.
By the benchr team · · Figures verified against official sources, July 13, 2026
Official pricing and limits
GLM-5.2 API pricing: $1.40 input, $4.40 output per 1M — official data
Field
Value
Model ID
glm-5.2
Input / 1M
$1.40
Cached input / 1M
$0.26
Output / 1M
$4.40
Context window
1,000,000 tokens
Max output
128,000 tokens
Cache storage
Limited-time free
Where it fits
Use GLM-5.2 when you want low-cost long-context coding and agent workflows with a 1M context window and unusually large 128K output ceiling.
When to skip it
Skip it if you need the deepest English-language provider ecosystem, or if your organization requires every benchmark number to come from a standardized provider table rather than product-positioning claims.