Z.ai: GLM-5.1

byZ.ai

GLM-5.1 is a reasoning model from Z.ai released on Mar 27, 2026. It reads text and writes text, with a 200K 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.

43 providers serve it, including Baseten, Novita AI and Friendli. The lowest input price is $0.45 per million tokens at CrofAI.

Modalities
In / out price
$1.40 / $4.40 per 1M
Context
200K
Max output
131K
Released
Mar 27, 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 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.1 providers

43 providers serve it, including Baseten, Novita AI and Friendli. The lowest input price is $0.45 per million tokens at CrofAI. 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.26200K131K
Baseten$1.30$4.30$0.26203K203K
Novita AI$1.38$4.40$0.26205K131K
Friendli$1.40$4.40$0.26203K131K
Vercel AI Gateway$1.40$4.40$0.26203K64K
CrofAI$0.45$2.15$0.08203K203K
NanoGPT$0.70$2.50$0.18200K131K
Alibaba (China)$0.825$3.30$0.17203K128K
EmpirioLabs AI$0.825$3.30$0.165202K128K
EBCloud$0.8571$3.43–200K131K
ZenMux$0.8781$3.51$0.1903200K128K
DevPass (LLM Gateway)$0.931$2.93$0.173205K131K

Showing 12 of 43 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
$99.90
Without caching
$151
Per request
$0.0033

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.

  • 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.1 questions

How much does the GLM-5.1 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.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?

43 providers serve it, including Baseten, Novita AI and Friendli. The lowest input price is $0.45 per million tokens at CrofAI. 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?

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

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