Models / Z.ai / GLM 4.7 Flash
Z.ai

GLM 4.7 Flash

BYOKOpen weightsReleased 19 Jan 2026

A small open-weights model from Z.ai with a 131k context window and very low prices. Its benchmark scores sit near the bottom of the registry, and it ranks high on value.

Read the full description ↓

Spec sheet

Family
Z.ai
Released
19 Jan 202610 months ago
Weights
Open
Context window
131k tokens
Largest response
131k tokens
Accepts
text
Supports
tools, reasoning, structured output
Knowledge cutoff
April 2025
Intelligence index
36.9#106
Input price
$0.06 / 1M
Output price
$0.4 / 1M
Blended price (3:1)
$0.15 / 1M
Index points per $
253.8#10
Speed
39.5 tokens/sec#154
Popularity
#134 of 194by usage
Providers
3
Weights on
zai-org/GLM-4.7-Flash

Benchmarks

Score · rank among models tested
Intelligence indexOur composite of the benchmarks below, 0-100
Intelligence index
GLM 4.7 Flash36.9
Rank#109 of 114
Registry median59.9
Best87
36.9#109
GPQA DiamondGraduate-level science questions, multiple choice
GPQA Diamond
GLM 4.7 Flash60.5%
Rank#93 of 94
Registry median89.9%
Best96.8%
60.5%#93
OTIS Mock AIMECompetition mathematics problems with exact answers
OTIS Mock AIME
GLM 4.7 Flash58.3%
Rank#94 of 95
Registry median94.2%
Best100%
58.3%#94
LMArena textRating from blind human votes between pairs of chat responses
LMArena text
GLM 4.7 Flash1350.7
Rank#109 of 114
Registry median1437.7
Best1538.9
1350.7#109

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
Cloudflare Workers AIBYOK–$0.06–$0.4$0.15
OpenRouterBYOKopenrouter:z-ai/glm-4.7-flash $0.06$0.01$0.4$0.15
NovitaBYOK–$0.07$0.01$0.4$0.15

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['OPENROUTER_API_KEY'] = '...'

agent = Agent('openrouter:z-ai/glm-4.7-flash', instructions='Be concise, reply with one sentence.')

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

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

Compare

GLM 4.7 FlashvsDeepSeek V3
Intelligence index
205590$0.1$1$10DeepSeek V3: 36.3 at $0.24 blendedGLM 4.7 Flash: 36.9 at $0.15 blended
GPQA Diamond
5075100$0.1$1$10DeepSeek V3: 71.2% at $0.24 blendedGLM 4.7 Flash: 60.5% at $0.15 blended
OTIS Mock AIME
4070100$0.1$1$10DeepSeek V3: 48.9% at $0.24 blendedGLM 4.7 Flash: 58.3% at $0.15 blended
SciCode
204570$0.1$1$10DeepSeek V3: 35.8% at $0.24 blended
LMArena text
128014101540$0.1$1$10DeepSeek V3: 1332.5 at $0.24 blendedGLM 4.7 Flash: 1350.7 at $0.15 blended
Epoch Capabilities Index
120150180$0.1$1$10DeepSeek V3: 131.7 at $0.24 blended

Score against blended price per 1M tokens (log scale). GLM 4.7 Flash   DeepSeek V3   other models

Intelligence indexOur composite of the benchmarks below, 0-100
GLM 4.7 Flash36.9
DeepSeek V336.3
GPQA DiamondGraduate-level science questions, multiple choice
GLM 4.7 Flash60.5%
DeepSeek V371.2%
OTIS Mock AIMECompetition mathematics problems with exact answers
GLM 4.7 Flash58.3%
DeepSeek V348.9%
SciCodeScientific programming problems written by researchers
GLM 4.7 Flash–
DeepSeek V335.8%
LMArena textRating from blind human votes between pairs of chat responses
GLM 4.7 Flash1350.7
DeepSeek V31332.5
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
GLM 4.7 Flash–
DeepSeek V3131.7
Input pricePer 1M tokens, lower is better
GLM 4.7 Flash$0.06
DeepSeek V3$0.14
Output pricePer 1M tokens, lower is better
GLM 4.7 Flash$0.4
DeepSeek V3$0.55
EfficiencyIndex points per blended $
GLM 4.7 Flash254
DeepSeek V3152
SpeedOutput tokens per second
GLM 4.7 Flash39.5 t/s
DeepSeek V339 t/s
Context windowTokens
GLM 4.7 Flash131k
DeepSeek V364k
Model stringFor Pydantic AI
GLM 4.7 Flashopenrouter:z-ai/glm-4.7-flash
DeepSeek V3deepseek:deepseek-chat

About GLM 4.7 Flash

Description written by an LLM from the data on this page

A small open-weights model from Z.ai with a 131k context window and very low prices. Its benchmark scores sit near the bottom of the registry, and it ranks high on value.

GLM 4.7 Flash is an open-weights text model from Z.ai, released in January 2026, with a 131k token context window and support for tool calling, reasoning mode and structured output. It is available through Cloudflare Workers AI, OpenRouter and Novita. Its main appeal is price. Input costs $0.06 per million tokens and output costs $0.40 per million tokens, far below the registry median blended price, and it ranks 10th of 194 on intelligence points per dollar.

On capability the model ranks near the bottom of the registry. Its intelligence index is 36.9, 109th of 114, against a median of 59.5. It scores 60.5% on GPQA Diamond and 58.3% on OTIS Mock AIME, both among the lowest results tested, and 1350.7 on LMArena text, 109th of 114. Its knowledge cutoff is April 2025.

The model suits agents where cost per call matters more than accuracy on hard reasoning or mathematics, such as routing, extraction or simple tool-driven workflows. Tasks needing high accuracy on difficult problems would be better served by a model ranked higher on the benchmarks above.

Strengths

  • Input costs $0.06 per million tokens, 14th cheapest of 194 models
  • Output costs $0.40 per million tokens, a low price for a reasoning model
  • Efficiency rank of 10 of 194 on intelligence points per dollar
  • Supports tool calling, reasoning mode and structured output

Weaknesses

  • Intelligence index of 36.9, 109th of 114 models, against a median of 59.5
  • GPQA Diamond score of 60.5%, 93rd of 94, against a median of 89.8%
  • OTIS Mock AIME score of 58.3%, 94th of 95, against a median of 94.2%

Best for

Cost-sensitive agents and high-volume simple tasks where tool calling matters more than benchmark accuracy.

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