# GLM-4.7

> Z.ai's open-weight 355B MoE flagship — a coding-and-agent model that thinks before it acts, with stronger reasoning and steadier long-horizon tool use.

- Maker: Z.ai (Zhipu / GLM)
- Line: GLM (flagship)
- Canonical page: https://ai-tldr.dev/models/glm-4-7/
- Updated: 2026-06-18

## In short

GLM-4.7 is the December 2025 flagship from Z.ai (the team behind the GLM / Zhipu models), released on 2025-12-22 under the permissive MIT license with open weights published on Hugging Face. It has a 200K-token context window and costs $1.40 per million input tokens and $2.20 per million output tokens. You can use it through Z.ai, OpenRouter and SiliconFlow.

## Facts

| Fact | Value | Source |
| --- | --- | --- |
| Context window | 200K (max output 128K) | [1] |
| Input price | $1.40 / 1M tokens (cached $0.26 / 1M tokens) | [2] |
| Output price | $2.20 / 1M tokens | [2] |
| Licence | MIT · open weights | [1] |
| Released | 22 December 2025 | [3] |
| Parameters | 355B total / 32B active (MoE) | [1] |

## Sources

1. [GLM-4.7 model card (Hugging Face)](https://huggingface.co/zai-org/GLM-4.7)
2. [Z.ai API pricing](https://docs.z.ai/guides/overview/pricing)
3. [Z.ai open-sources GLM-4.7 (press release)](https://www.businesswire.com/news/home/20251223393714/en/Z.ai-Open-Sources-GLM-4.7-a-New-Generation-Large-Language-Model-Built-for-Real-Development-Workflows)

## Overview

GLM-4.7 is the December 2025 flagship from Z.ai (the team behind the GLM / Zhipu models), released on 2025-12-22 under the permissive MIT license with open weights published on Hugging Face. It is a Mixture-of-Experts language model with roughly 355B total parameters and about 32B activated per token, so it runs far cheaper than its raw size suggests while still aiming at frontier-level coding and agent performance.

The model is built for real software-development and agentic workflows. GLM-4.7 reasons before it answers and before each tool call, keeps that reasoning across conversation turns, and lets you turn thinking on or off per request to trade speed for accuracy. Compared with GLM-4.6 it reports clear gains on coding (SWE-bench Verified rising to 73.8%), multi-step tool use, and harder reasoning, including a jump on the HLE exam.

GLM-4.7 handles text only, with a 200K-token context window and up to 128K tokens of output. Because the weights are MIT-licensed you can self-host or fine-tune it for commercial use; it is also served through Z.ai's own API and third-party routers such as OpenRouter and SiliconFlow.

## Benchmarks

- SWE-bench Verified: 73.8% ([source](https://docs.z.ai/guides/llm/glm-4.7))
- SWE-bench Multilingual: 66.7% ([source](https://docs.z.ai/guides/llm/glm-4.7))
- Terminal Bench 2.0: 41% ([source](https://docs.z.ai/guides/llm/glm-4.7))
- LiveCodeBench v6: 84.9% ([source](https://docs.z.ai/guides/llm/glm-4.7))
- τ²-Bench (interactive tool use): 84.7% ([source](https://docs.z.ai/guides/llm/glm-4.7))
- HLE (Humanity's Last Exam, with tools): 42.8% ([source](https://docs.z.ai/guides/llm/glm-4.7))
- AIME 2025: 95.7% ([source](https://huggingface.co/zai-org/GLM-4.7))

## Pricing

- Input: $1.40 / 1M tokens per 1M tokens
- Cached input: $0.26 / 1M tokens per 1M tokens
- Output: $2.20 / 1M tokens per 1M tokens

Official Z.ai API list price. Third-party routers list GLM-4.7 lower — e.g. OpenRouter at about $0.40 input / $1.75 output and SiliconFlow at about $0.42 input / $2.20 output. A free GLM-4.7-Flash tier is also offered.

Source: https://docs.z.ai/guides/overview/pricing

## Strengths

- Strong real-world coding: 73.8% on SWE-bench Verified and 84.9 on LiveCodeBench v6, competitive with leading closed models
- Stable agentic and tool-use behaviour over long multi-step tasks, with 84.7 on the τ²-Bench interactive tool-invocation benchmark
- Controllable reasoning — interleaved, preserved and per-turn 'thinking' lets you tune depth vs. latency
- Open MIT weights: self-host, fine-tune and use commercially with no usage gate
- Efficient for its scale — MoE keeps only ~32B of 355B parameters active per token
- Large 200K context with up to 128K output for big repositories and long agent traces

## Best for

- Autonomous and semi-autonomous coding agents that resolve real GitHub issues across multiple files
- Long-horizon agentic workflows with repeated tool calls and preserved reasoning
- Self-hosted or fine-tuned deployments where MIT licensing and data control matter
- Math and complex-reasoning tasks (AIME-style problems, multi-step analysis)
- Terminal and developer-tooling automation
- Cost-sensitive production use that still needs near-frontier coding quality

## How to access

- [Z.ai](https://docs.z.ai/guides/llm/glm-4.7) — model id `glm-4.7`
- [OpenRouter](https://openrouter.ai/z-ai/glm-4.7) — model id `z-ai/glm-4.7`
- [SiliconFlow](https://www.siliconflow.com/models/glm-4-7) — model id `zai-org/GLM-4.7`

## GLM (flagship) versions

- [GLM-5.2](https://ai-tldr.dev/models/glm-5-2/) (13 June 2026)
- [GLM-5.1](https://ai-tldr.dev/models/glm-5-1/) (7 April 2026)
- [GLM-5](https://ai-tldr.dev/models/glm-5/) (11 February 2026)
- GLM-4.7 (22 December 2025) — this page
- [GLM-4.6](https://ai-tldr.dev/models/glm-4-6/) (30 September 2025)
- [GLM-4.5](https://ai-tldr.dev/models/glm-4-5/) (28 July 2025)

## FAQ

### Is GLM-4.7 open source?

The weights are open and released under the permissive MIT license on Hugging Face (zai-org/GLM-4.7), so you can download, self-host, fine-tune and use the model commercially. Z.ai calls it open-weight; the training data and full recipe are not published, which is typical for open-weight (rather than fully open-source) releases.

### How big is GLM-4.7 and how fast is it?

It is a Mixture-of-Experts model with roughly 355B total parameters but only about 32B activated per token. That MoE design lets it reach near-frontier coding quality while keeping inference cost and latency far below what a dense 355B model would require.

### What is GLM-4.7 best at?

Coding and agentic tool use. It reports 73.8% on SWE-bench Verified, 84.9 on LiveCodeBench v6 and 84.7 on the τ²-Bench tool-use benchmark, with controllable 'thinking' that improves multi-step, long-horizon tasks.

### How much does GLM-4.7 cost to use?

Z.ai's official API lists it at about $1.40 per million input tokens and $2.20 per million output tokens, with cached input around $0.26. Third-party routers such as OpenRouter price it lower (roughly $0.40 input / $1.75 output), and a free GLM-4.7-Flash tier is available.

## Links

- [Z.ai — GLM-4.7 developer docs](https://docs.z.ai/guides/llm/glm-4.7)
- [GLM-4.7 model card (Hugging Face)](https://huggingface.co/zai-org/GLM-4.7)
- [Z.ai open-sources GLM-4.7 (press release)](https://www.businesswire.com/news/home/20251223393714/en/Z.ai-Open-Sources-GLM-4.7-a-New-Generation-Large-Language-Model-Built-for-Real-Development-Workflows)
- [Z.ai API pricing](https://docs.z.ai/guides/overview/pricing)
- [GLM-4.7 on OpenRouter](https://openrouter.ai/z-ai/glm-4.7)
- [GLM-4.7 on SiliconFlow](https://www.siliconflow.com/models/glm-4-7)
- [Z.ai — official site](https://z.ai)

Source: AI/TLDR LLM registry, https://ai-tldr.dev/models/glm-4-7/
