Models / Z.ai / GLM 4.7
Z.ai

GLM 4.7

BYOKOpen weightsReleased 22 Dec 2025

An open-weights text model from Z.ai, priced at $1 per million blended tokens, with a 200k context window. Its benchmark scores sit mostly below the registry median.

Read the full description ↓

Spec sheet

Family
Z.ai
Released
22 Dec 202511 months ago
Weights
Open
Context window
200k tokens
Largest response
131k tokens
Accepts
text
Supports
tools, reasoning, structured output
Knowledge cutoff
April 2025
Intelligence index
53.5#73
Input price
$0.6 / 1M
Output price
$2.2 / 1M
Blended price (3:1)
$1 / 1M
Index points per $
53.5#42
Speed
11 tokens/sec#184
Popularity
#96 of 194by usage
Providers
4
Weights on
zai-org/GLM-4.7

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Z.aiBYOKzai:GLM-4.7 $0.6$0.11$2.2$1
Zhipu AIBYOK–$0.28$0.055$1.1$0.48
NovitaBYOK–$0.6$0.11$2.2$1
OpenRouterBYOKopenrouter:z-ai/glm-4.7 $0.6$0.11$2.2$1

The cheapest provider is highlighted. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['ZAI_API_KEY'] = '...'

agent = Agent('zai:GLM-4.7', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask GLM 4.7 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

GLM 4.7vsQwen3 235B A22B Thinking 2507
Intelligence index
205590$0.1$1$10Qwen3 235B A22B Thinking 2507: 53.6 at $1.21 blendedGLM 4.7: 53.5 at $1 blended
GPQA Diamond
5075100$0.1$1$10Qwen3 235B A22B Thinking 2507: 80.1% at $1.21 blendedGLM 4.7: 83.3% at $1 blended
OTIS Mock AIME
4070100$0.1$1$10Qwen3 235B A22B Thinking 2507: 86.7% at $1.21 blendedGLM 4.7: 83.3% at $1 blended
SimpleQA Verified
1055100$0.1$1$10Qwen3 235B A22B Thinking 2507: 40.4% at $1.21 blendedGLM 4.7: 32.2% at $1 blended
Terminal-Bench
04590$0.1$1$10GLM 4.7: 33.4% at $1 blended
SciCode
204570$0.1$1$10Qwen3 235B A22B Thinking 2507: 41.4% at $1.21 blendedGLM 4.7: 45.1% at $1 blended
WebDev Arena
122015251830$0.1$1$10GLM 4.7: 1434.7 at $1 blended
LMArena text
128014101540$0.1$1$10Qwen3 235B A22B Thinking 2507: 1415.3 at $1.21 blendedGLM 4.7: 1435.4 at $1 blended
Epoch Capabilities Index
120150180$0.1$1$10GLM 4.7: 143.3 at $1 blended

Score against blended price per 1M tokens (log scale). GLM 4.7   Qwen3 235B A22B Thinking 2507   other models

Intelligence indexOur composite of the benchmarks below, 0-100
GLM 4.753.5
Qwen3 235B A22B Thinking 250753.6
GPQA DiamondGraduate-level science questions, multiple choice
GLM 4.783.3%
Qwen3 235B A22B Thinking 250780.1%
OTIS Mock AIMECompetition mathematics problems with exact answers
GLM 4.783.3%
Qwen3 235B A22B Thinking 250786.7%
SimpleQA VerifiedShort factual questions answered from memory, without search
GLM 4.732.2%
Qwen3 235B A22B Thinking 250740.4%
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
GLM 4.733.4%
Qwen3 235B A22B Thinking 2507–
SciCodeScientific programming problems written by researchers
GLM 4.745.1%
Qwen3 235B A22B Thinking 250741.4%
WebDev ArenaRating from human votes on web apps the models built
GLM 4.71434.7
Qwen3 235B A22B Thinking 2507–
LMArena textRating from blind human votes between pairs of chat responses
GLM 4.71435.4
Qwen3 235B A22B Thinking 25071415.3
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
GLM 4.7143.3
Qwen3 235B A22B Thinking 2507–
Input pricePer 1M tokens, lower is better
GLM 4.7$0.6
Qwen3 235B A22B Thinking 2507$0.45
Output pricePer 1M tokens, lower is better
GLM 4.7$2.2
Qwen3 235B A22B Thinking 2507$3.5
EfficiencyIndex points per blended $
GLM 4.754
Qwen3 235B A22B Thinking 250744
SpeedOutput tokens per second
GLM 4.711 t/s
Qwen3 235B A22B Thinking 250721 t/s
Context windowTokens
GLM 4.7200k
Qwen3 235B A22B Thinking 2507–
Model stringFor Pydantic AI
GLM 4.7zai:GLM-4.7
Qwen3 235B A22B Thinking 2507openrouter:qwen/qwen3-235b-a22b-thinking-2507

About GLM 4.7

Description written by an LLM from the data on this page

An open-weights text model from Z.ai, priced at $1 per million blended tokens, with a 200k context window. Its benchmark scores sit mostly below the registry median.

GLM 4.7 is an open-weights text model from Z.ai, released in December 2025. It accepts text only and offers a 200k token context window with up to 131k tokens in a response. It supports tool calling, reasoning mode and structured output, and it is available from four providers, though it is not built into the Pydantic AI Gateway.

On the registry's composite intelligence index it scores 53.5, placing 76th of 114 and below the median of 59.5. Individual results follow the same pattern. It scores 83.3% on GPQA Diamond, 73rd of 94, and 83.3% on OTIS Mock AIME, 78th of 95. Its SimpleQA Verified and SciCode results also fall in the lower part of the table. Its LMArena text rating is close to the median, at 60th of 114.

Pricing is its clearest advantage. Input costs $0.60 and output costs $2.20 per million tokens, for a blended price of $1, just under the registry median. Its efficiency rank is 42nd of 194, which reflects that price against its intelligence score.

Strengths

  • Open weights with a 200k context window and 131k maximum response
  • Blended price of $1 per million tokens, just under the registry median
  • Supports tool calling, reasoning mode and structured output
  • Four providers, including Z.ai, Zhipu AI, Novita and OpenRouter

Weaknesses

  • Intelligence index 53.5, 76th of 114 and below the 59.5 median
  • OTIS Mock AIME 83.3%, 78th of 95 against a 94.2% median
  • Terminal-Bench 33.4%, 25th of 35 against a 43.2% median

Best for

Cost-sensitive agents needing open weights, long context and tool calling, where top benchmark scores are not required.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs