Z.ai: GLM-5.1

byZ.ai
Official docs

GLM-5.1 is a reasoning model from Z.ai released on Apr 7, 2026. It reads text and writes text, with a 200K token context window and up to 131K tokens per reply.

Show more

It costs $0.8964 per million input tokens and $3.59 per million output tokens. Cached input bills at $0.1942, 78% 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.

38 providers serve it, including Hugging Face, SiliconFlow and Novita AI. The lowest input price is $0.06 per million tokens at AIHubMix.

Modalities
In / out price
$0.8964 / $3.59 per 1M
Context
200K
Max output
131K
Released
Apr 7, 2026
Knowledge cutoff
n/a
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GLM-5.1 pricing

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

Input$0.8964 / 1M tokens
Output$3.59 / 1M tokens
Cached input (read)$0.1942 / 1M tokens
Cache write$0 / 1M tokens
Prompts over 32K$1.20 in, $4.18 out

GLM-5.1 providers

38 providers serve it, including Hugging Face, SiliconFlow and Novita AI. The lowest input price is $0.06 per million tokens at AIHubMix. 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$0.8964$3.59$0.1942200K131K
Hugging Face$1$3.20$0.20203K131K
SiliconFlow$1.19$3.74$0.60205K131K
Novita AI$1.38$4.40$0.26205K131K
Friendli$1.40$4.40$0.26203K131K
Vercel AI Gateway$1.40$4.40$0.26203K64K
AIHubMix$0.06$0.22$0.013200K131K
HPC-AI$0.615$2.46$0.133202K202K
Alibaba (China)$0.825$3.30$0.165203K128K
EmpirioLabs AI$0.825$3.30$0.165203K128K
EBCloud$0.8571$3.43n/a200K131K
ZenMux$0.8781$3.51$0.1903200K128K

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

What GLM-5.1 costs per month

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

GLM-5.1 per month
$73.28
Without caching
$105
Per request
$0.0024

Supported request parameters

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

  • Toolstools
  • Structured outputsstructured_outputs
  • Reasoningreasoning
  • Temperaturetemperature

Alternatives to GLM-5.1

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

  • 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 12 providers.

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

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

    by googleSep 2, 20261.05M context$0.75/M input tokens$3.75/M output tokens40 providers

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

    by googleJul 21, 2026$0.75/M input tokens$3.75/M output tokens27 providers

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

    by tencentAug 28, 2026$0.834/M input tokens$2.50/M output tokens17 providers

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

    by x-aiApr 16, 2026$1/M input tokens$2/M output tokens16 providers

More from Z.ai

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

    by z-aiNov 2, 2026$0.37/M input tokens$1.25/M output tokens3 providers

  • 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. Served by 2 providers.

    by z-aiSep 23, 2026$1.68/M input tokens$5.28/M output tokens2 providers

  • Reads text and images. Tool calling, reasoning.

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

All Z.ai models

GLM-5.1 questions

How much does the GLM-5.1 API cost?

$0.8964 per million input tokens and $3.59 per million output tokens, with cached input at $0.1942. Prompts over 32K tokens bill at $1.20 input and $4.18 output. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GLM-5.1?

200,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.1?

38 providers serve it, including Hugging Face, SiliconFlow and Novita AI. The lowest input price is $0.06 per million tokens at AIHubMix. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does GLM-5.1 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.1 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.1 released?

Apr 7, 2026.

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