Z.ai GLM-5.2 API Pricing

Last updated:

GLM-5.2 costs $1.40 input / $4.40 output per 1M tokens. Z.ai also lists cached input at $0.26 per 1M tokens and a 1M-token context window. For coding-tool users, Z.ai sells a separate GLM Coding Plan subscription that includes GLM-5.2 for supported tools.

Z.ai API token prices

  • GLM-5.2
    GLM-5
    Z.ai
    Input
    $1.40
    Cached
    $0.26
    Output
    $4.40
Showing 1 of 1 models ยท USD per 1M tokens
Last synced:

API vs GLM Coding Plan

Use the API when you are building software, agents, automations, customer-facing features, or anything outside Z.ai's supported coding-tool flow. Use the GLM Coding Plan when one developer wants high-volume GLM access inside Claude Code, OpenClaw, Cline, Kilo Code, OpenCode, Crush, Goose, or another supported coding tool.

The important catch: Z.ai says the GLM Coding Plan is strictly limited to supported tools and products. Calls outside the plan use normal API billing, and GLM-5.2 consumes more quota than GLM-4.7 during peak windows.

Frequently asked questions

How much does GLM-5.2 cost on the Z.ai API?

Z.ai lists GLM-5.2 at $1.40 per 1M input tokens, $0.26 per 1M cached input tokens, and $4.40 per 1M output tokens. Cached input storage is listed as limited-time free.

Does the GLM Coding Plan include GLM-5.2?

Yes. Z.ai says all GLM Coding Plan tiers support GLM-5.2, GLM-5-Turbo, GLM-4.7, and GLM-4.5-Air. The plan is limited to officially supported coding tools and is not a general API subscription.

Is GLM-5.2 cheaper through the subscription or API?

For supported coding tools, the subscription can be much cheaper because Z.ai describes the monthly quota as equivalent to roughly 15-30x the monthly subscription fee at API prices. For custom software, agents, SDK usage, or production apps, use the API pricing instead.

Sources