GLM-5.2
Pricing & Specs

Zhipu AI · $1.4 input / $4.4 output per 1M tokens · 262.144K context window

$1.4
per 1M input tokens
$4.4
per 1M output tokens
262.144K
context window (tokens)

The per-token price never tells the full story. A typical task (1K input + 500 output tokens) on GLM-5.2 costs about $0.0036 — roughly $3.60 per 1,000 runs. But if it needs 3x the tokens of a cheaper model to match quality on YOUR task, the economics flip. The only way to know is to benchmark it on your actual workload.

GLM-5.2 API Pricing

TokensPrice
Input$1.4 / 1M tokens
Output$4.4 / 1M tokens
Cached input$0.26 / 1M tokens

50% discount available for batch API requests. Batch API pricing is available via Together at 50%; cache pricing is not published.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0036
1K 1,000 runs of that task: $3.60
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

GLM-5.2 Specs

SpecValue
Context window262.144K tokens
Input modalitiestext
Output modalitiestext
Reasoning modelYes
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingNo
Batch APIYes

FAQ

How much does GLM-5.2 cost?

GLM-5.2 costs $1.4 per 1M input tokens and $4.4 per 1M output tokens ($0.26 per 1M cached input tokens).

What is GLM-5.2's context window?

GLM-5.2 has a 262.144K-token context window.

Can I test GLM-5.2 on my own task?

Yes. OpenMark lets you benchmark GLM-5.2 against 100+ models on your own task with real API calls — no API keys needed, free tier available.

Is GLM-5.2 the right model for YOUR task?

Pricing tables can't answer that. Benchmark it against 100+ models
on your actual workload — real API calls, real costs. Free tier available.

Benchmark GLM-5.2 — Free →