Z.ai: GLM-4.7

byZ.ai
Official docs

GLM-4.7 is a reasoning model from Z.ai released on Dec 22, 2025. It reads text and writes text, with a 205K token context window and up to 131K tokens per reply.

Show more

It costs $0.4482 per million input tokens and $2.09 per million output tokens. Cached input bills at $0.0896, 80% 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.

25 providers serve it, including Deep Infra, Hugging Face and Novita AI. The lowest input price is $0.274 per million tokens at AIHubMix.

Modalities
In / out price
$0.4482 / $2.09 per 1M
Context
205K
Max output
131K
Released
Dec 22, 2025
Knowledge cutoff
Apr 2025
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GLM-4.7 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.4482 / 1M tokens
Output$2.09 / 1M tokens
Cached input (read)$0.0896 / 1M tokens
Cache write$0 / 1M tokens
Prompts over 32K$0.5976 in, $2.39 out

GLM-4.7 providers

25 providers serve it, including Deep Infra, Hugging Face and Novita AI. The lowest input price is $0.274 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.4482$2.09$0.0896205K131K
Deep Infra$0.40$1.75$0.08203K16K
Hugging Face$0.60$2.20$0.11205K131K
Novita AI$0.60$2.20$0.11205K131K
Vercel AI Gateway$0.60$2.20n/a200K120K
AIHubMix$0.274$1.10$0.0548200K131K
302.AI$0.286$1.14n/a205K131K
ZenMux$0.2911$1.16$0.0582200K128K
Kilo Gateway$0.40$1.75$0.08203K131K
Meganova$0.40$1.75$0.08203K131K
Ofox$0.40$2.20$0.11205K131K
NanoGPT$0.4004$1.93$0.0801200K66K

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

What GLM-4.7 costs per month

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

GLM-4.7 per month
$39.44
Without caching
$55.58
Per request
$0.0013

Supported request parameters

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

  • Toolstools
  • Structured outputsstructured_outputs
  • Reasoningreasoning
  • Temperaturetemperature

Alternatives to GLM-4.7

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

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

    by googleJul 21, 20261.05M context$0.30/M input tokens$2.50/M output tokens31 providers

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

    by googleJun 17, 2025$0.30/M input tokens$2.50/M output tokens25 providers

  • Index 25.2

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

    by qwenJun 2, 20261M context$0.40/M input tokens$1.60/M output tokens27 providers

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

    by metaAug 10, 2026131K context$0.35/M input tokens$1.50/M output tokens14 providers

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

    by cohereMay 20, 2026192K context$0.30/M input tokens$1.50/M output tokens2 providers

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

    by googleJul 21, 2026$0.30/M input tokens$2.50/M output tokens4 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-4.7 questions

How much does the GLM-4.7 API cost?

$0.4482 per million input tokens and $2.09 per million output tokens, with cached input at $0.0896. Prompts over 32K tokens bill at $0.5976 input and $2.39 output. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GLM-4.7?

204,800 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-4.7?

25 providers serve it, including Deep Infra, Hugging Face and Novita AI. The lowest input price is $0.274 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-4.7 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-4.7 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-4.7 released?

Dec 22, 2025, with training data up to Apr 2025.

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