Z.ai: GLM-5.2

byZ.ai

GLM-5.2 is a reasoning model from Z.ai released on Jun 13, 2026. It reads text and writes text, with a 1M token context window and up to 131K tokens per reply.

Show more

It costs $1.40 per million input tokens and $4.40 per million output tokens. Cached input bills at $0.26, 81% less than fresh input.

It supports tool calling, structured JSON output and prompt caching, and its weights are open, so you can host it yourself.

77 providers serve it, including Deep Infra, Volcengine Ark and SiliconFlow. The lowest input price is $0.75 per million tokens at Deep Infra.

Modalities
In / out price
$1.40 / $4.40 per 1M
Context
1M
Max output
131K
Released
Jun 13, 2026
Knowledge cutoff
n/a
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GLM-5.2 pricing

USD, as listed on Oct 15, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$1.40 / 1M tokens
Output$4.40 / 1M tokens
Cached input (read)$0.26 / 1M tokens
Cache write$0 / 1M tokens

GLM-5.2 providers

77 providers serve it, including Deep Infra, Volcengine Ark and SiliconFlow. The lowest input price is $0.75 per million tokens at Deep Infra. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.

ProviderInput /MOutput /MCache read /MContextMax output
Zhipu AI First party$1.40$4.40$0.261M131K
Deep Infra$0.75$2.40$0.141.05M33K
Volcengine Ark$1.19$4.16$0.29691M131K
SiliconFlow$1.30$4.09$0.261.05M262K
Alibaba$1.40$4.40$0.281M131K
Baseten$1.40$4.40$0.301.05M262K
Cloudflare Workers AI$1.40$4.40$0.26262K256K
Databricks$1.40$4.40$0.261M131K
Friendli$1.40$4.40$0.261.05M131K
Hugging Face$1.40$4.40–262K131K
Nebius Token Factory$1.40$4.40–1.05M1.05M
Novita AI$1.40$4.40$0.261.05M131K

Showing 12 of 77 providers: the lab first, then the major clouds, then the cheapest resellers.

What GLM-5.2 costs per month

Pick a workload close to yours or type your own volumes.

GLM-5.2 per month
$99.90
Without caching
$151
Per request
$0.0033

Supported request parameters

What you can set when you call GLM-5.2 through an OpenAI compatible API.

  • Toolstools
  • Structured outputsstructured_outputs
  • Reasoningreasoning
  • Temperaturetemperature

Alternatives to GLM-5.2

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • Index 44.8

    Reads text. Tool calling, structured output, reasoning. Served by 68 providers.

    by z-aiAug 14, 20261M context$1.40/M input tokens$4.40/M output tokens68 providers

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 13 providers.

    by metaSep 2, 20261.05M context$1.25/M input tokens$4.25/M output tokens13 providers

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 15 providers.

    by metaAug 5, 2026$1.25/M input tokens$4.25/M output tokens15 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 36 providers.

    by anthropicOct 1, 2025$1/M input tokens$5/M output tokens36 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 29 providers.

    by x-aiApr 17, 2026$1.25/M input tokens$2.50/M output tokens29 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 11 providers.

    by x-aiMar 9, 2026$1.25/M input tokens$2.50/M output tokens11 providers

More from Z.ai

  • Reads text and images. Tool calling, reasoning.

    by z-aiOct 5, 2026$0.15/M input tokens$0.50/M output tokens

  • Reads text and images. Tool calling, reasoning.

    by z-aiOct 5, 2026$0.15/M input tokens$0.50/M output tokens

  • Reads text. Tool calling, reasoning.

    by z-aiSep 26, 2026$1.25/M input tokens$2.25/M output tokens

  • Reads text. Tool calling, reasoning.

    by z-aiSep 23, 2026$2.80/M input tokens$8.80/M output tokens

  • Reads text and images. Tool calling, reasoning.

    by z-aiSep 19, 2026$0.15/M input tokens$0.50/M output tokens

  • Reads text, images and video. Tool calling, reasoning.

    by z-aiSep 18, 2026$0.37/M input tokens$1.25/M output tokens

All Z.ai models

GLM-5.2 questions

How much does the GLM-5.2 API cost?

$1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GLM-5.2?

1,000,000 tokens of input, and it can write up to 131,072 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Which providers serve GLM-5.2?

77 providers serve it, including Deep Infra, Volcengine Ark and SiliconFlow. The lowest input price is $0.75 per million tokens at Deep Infra. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does GLM-5.2 support tool calling?

Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.

Is GLM-5.2 open source?

Its weights are published, so you can run it on your own hardware or a cloud of your choice. Read the license before commercial use.

When was GLM-5.2 released?

Jun 13, 2026.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Oct 15, 2026. The summary is written from these facts.

Building on GLM-5.2?

I test your real tasks on it and the two closest alternatives, then ship the agent on whichever wins on cost and accuracy.

Book Meeting