GLM 4.7

z-ai/glm-4.7
ToolsJSONReasoning
by Z.ai · 2025-12-22

Iteration on GLM-4.6 introducing retained reasoning and round-based reasoning for more stable execution on complex multi-turn tasks. 200K context.

ctx200K tokens
Max output128K
Inputtext
Outputtext
p50 TTFT4.60 s
INPUT$0.60/ 1M tokens
OUTPUT$2.20/ 1M tokens
p50 TTFT4.60 s7d
p95 TTFT10.00 s7d
TRAFFIC434.4Ktokens / 7d

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="z-ai/glm-4.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

  • do_sample
  • include_reasoning
  • max_tokens
  • reasoning
  • request_id
  • response_format
  • stop
  • stream
  • temperature
  • thinking
  • tool_choice
  • tool_stream
  • tools
  • top_p
  • user_id

Pricing

Input / 1M tokens$0.600
Output / 1M tokens$2.20
Cache read / 1M$0.110
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $10.80 · With prompt caching $9.09

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.001112

Estimate only — actual token counts depend on the provider's tokenizer.

Performance

p50 TTFT
4.60 s
Output speed
41.7 tok/s
p95 TTFT
10.00 s
Error rate
0%

Public benchmarks

36.3
AA Coding
Better than 42% of models compared
#61 of 106
42.1
AA Intelligence
Better than 46% of models compared
#59 of 110
95.0
AA Math
Better than 91% of models compared
#7 of 81
AIME 2025
95.0
GPQA Diamond
85.9
Humanity's Last Exam
25.1
IFBench
67.9
LiveCodeBench
89.4
Long-Context Recall
64.0
MMLU-Pro
85.6
SciCode
45.1
TerminalBench Hard
31.8
τ²-Bench
95.9
Source: artificialanalysis.ai

How it compares

GLM 4.7GLM 5.1GLM 5.2GLM 5
Input $/M$0.60$1.40$1.40$1.00
Output $/M$2.20$4.40$4.40$3.20
Context200K200K1.0M200K
Quality7/109/109/108/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

How much does Z.ai: GLM 4.7 cost on OrcaRouter?
Z.ai: GLM 4.7 is priced at $0.60 per 1M input tokens and $2.20 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is Z.ai: GLM 4.7's context window?
Z.ai: GLM 4.7 supports a context window of 200K tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call Z.ai: GLM 4.7 via the OpenAI SDK?
Set OpenAI base_url to https://api.orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="z-ai/glm-4.7" in the chat.completions.create call.
Does OrcaRouter rate-limit Z.ai: GLM 4.7?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.

Embed this badge

Z.ai: GLM 4.7$0.60/M in4600ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/z-ai/glm-4.7" target="_blank"> <img src="https://www.orcarouter.ai/embed/z-ai/glm-4.7.svg" alt="Z.ai: GLM 4.7 on OrcaRouter" /> </a>
Markdown [![Z.ai: GLM 4.7](https://www.orcarouter.ai/embed/z-ai/glm-4.7.svg)](https://www.orcarouter.ai/models/z-ai/glm-4.7)

Model card as data

GET /api/public/models/z-ai/glm-4.7Open
Machine-readable:/llms.txt/llms-full.txt