AI API Prices › Zhipu AI (GLM) › GLM-5.2

GLM-5.2 pricing

GLM-5.2 API cost from Zhipu AI (GLM) — $1.40 per 1M input tokens and $4.40 per 1M output tokens. Open weights, 1M context. Estimate your real monthly bill below, then compare it against every other model.

Input price
$1.40
per 1M input tokens
Output price
$4.40
per 1M output tokens
Cached input
$0.260
per 1M · ~81% off input
Reference call
$0.0058
1K in + 1K out

Flagship open weights 1M context · all prices USD per 1M tokens, this price verified 2026-11-04.

GLM-5.2 capabilities & limits

Representative specs for this tier — confirm exact limits in the Zhipu AI (GLM) docs.

Context window1M
Max output64K
Knowledge cutoff2025
API formatOpenAI-compatible
✓ Vision✓ Tools / functions✓ JSON / structured✓ Prompt caching✓ Batch API✓ Open weights

Call GLM-5.2 from your code

The exact model string and endpoint to use. Works with the OpenAI SDK — just point base_url at the URL below.

Model stringglm-5.2
Base URLhttps://api.z.ai/api/paas/v4
API key envZHIPU_API_KEY
curl https://api.z.ai/api/paas/v4/chat/completions \
  -H "Authorization: Bearer $ZHIPU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Model strings follow each provider's naming convention; confirm the current id in the Zhipu AI (GLM) docs before relying on it.

What a GLM-5.2 API call actually costs

Blended input + output cost at GLM-5.2's list rates — useful yardsticks before you commit to volume.

$0.0058
Short call
1K in · 1K out
$0.0064
Chat turn
3K in · 500 out
$0.032
RAG / long prompt
20K in · 1K out
$5.80
1M in + 1M out
aggregate of short calls

GLM-5.2 cost calculator

Enter your monthly volume to estimate the GLM-5.2 bill. Runs entirely in your browser.

Estimated monthly cost —

Peak/off-peak and long-context pricing are applied automatically where published. Cache-write, Batch/Flex and Fast-mode adjustments are not included. For the multi-model breakdown with the same exclusions, use the cost calculator.

Zhipu AI (GLM) models — GLM-5.2 in context

How GLM-5.2 prices against its siblings. Cheapest reference cost first.

Model Input /1M Output /1M Cost / call* Context Type
GLM-5.3-Flash
1M context; cached input $0.03/1M; cache storage temporarily free
$0.150 $0.500 $0.0006 1M Fast / cheap open
GLM-4.5 Air
Cheap open tier
$0.200 $1.10 $0.0013 128K Fast / cheap open
GLM-4.6
Popular open model
$0.600 $2.20 $0.0028 200K Balanced open
GLM-5.2
Open weights, 1M context
$1.40 $4.40 $0.0058 1M Flagship open

*Reference cost of one call with 1,000 input + 1,000 output tokens — a neutral yardstick. Use the calculator for your real usage.

Cheaper than GLM-5.2? In the same flagship tier, MiniMax-M3 runs $0.300 in / $1.20 out. For a 1K-input / 1K-output reference workload, the lowest-cost model tracked here is Gemini 1.5 Flash-8B — see the cheapest LLM API guide.

How GLM-5.2 pricing works

GLM-5.2 is billed per token: a lower input price of $1.40 per million tokens for everything you send, and a higher output price of $4.40 per million for everything the model generates. To turn that into a real GLM-5.2 bill, multiply by your monthly request volume and average prompt/response length — the calculator above does exactly that.

Prompt caching is the biggest lever on your GLM-5.2 cost: cached input tokens bill at just $0.260 per million — about 81% cheaper. If you reuse a long system prompt or context across calls, caching can dramatically cut the input portion of your bill.

List prices move fast — always confirm the current numbers on the official Zhipu AI (GLM) pricing page before relying on them for budgeting.

GLM-5.2 pricing FAQ

How much does the GLM-5.2 API cost?

GLM-5.2 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens, with cached input at $0.260 per 1M (about 81% off). A typical 3K-input / 500-output call at the displayed rate works out to about $0.0064.

What is GLM-5.2's context window?

GLM-5.2 has a 1M-token context window. Standard uncached input is $1.40 per 1M tokens.

Does GLM-5.2 support prompt caching?

Yes. At Standard rates, GLM-5.2 bills cache-read tokens at $0.260 per 1M instead of $1.40 uncached — roughly 81% cheaper for the repeated part of your prompts.

Is there a cheaper alternative to GLM-5.2?

In the same flagship tier, MiniMax-M3 (MiniMax) is cheaper at $0.300 in / $1.20 out. For the 1K-input / 1K-output reference workload, the lowest-cost model tracked in this catalog is Gemini 1.5 Flash-8B.

Is GLM-5.2 open weights?

Yes — GLM-5.2 is released as open weights, so you can self-host it instead of paying per-token API rates. The prices here are a representative hosted endpoint.

Compare GLM-5.2 with other models