Z.ai active mid range

GLM-5.2 API Pricing

GLM-5.2 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens. Prices were last refreshed on from the AI Pricing Guru daily pricing pipeline.

Cost examples

These examples use published list prices only. They exclude taxes, enterprise discounts, minimum charges, retries, batch discounts, and provider-specific billing rules.

1M input + 1M output

$5.80

A direct per-million comparison against every other text model.

100K input + 25K output

$0.25

A compact chat, summarization, or analysis workload.

10M input + 2M output

$22.80

A monthly production estimate for heavier RAG or agent traffic.

75% cached input + 250K output

$1.65

Cached input is about 81% cheaper than standard input at list price.

Calculator for GLM-5.2

Enter your own input, output, and cached-token assumptions. This calculator is preloaded with only GLM-5.2, so the result stays focused on this model.

Input cost

$1.40

Output cost

$4.40

Total

$5.80

Price history

No list-price movement across 12 daily snapshots from 2026-06-18 to 2026-06-29.

When to use GLM-5.2

Good fit

  • code generation, debugging, and agentic development work where output quality affects engineering time
  • reasoning-heavy prompts, planning, analysis, and multi-step tool use
  • long-document and repository-scale prompts where context window matters

Be careful with

  • blind migration without testing your own prompts, latency, and failure modes

Alternatives to compare