Hormouz AIHormouzSign in

Z.ai: GLM 4.7: AI model

GLM-4.7 is Z.ai's newer flagship with enhanced coding and more stable multi-step reasoning. With a ~200K-token context window, reachable from inside Iran through Hormouz.

Context window:
204,800 tokens
Input:
$0.6/1M tokens
Output:
$2.2/1M tokens
Type:
text
  • Tools
  • Streaming
  • Long context

Thinking levels:

GLM-4.7 is Z.ai's newer flagship model, upgraded in two key areas: stronger programming capability and more stable multi-step reasoning and execution. It shows significant improvement on complex agent tasks while delivering a more natural conversational experience and better front-end aesthetics.

The model supports tool calling and a context window of about 200K tokens, making it a fit for autonomous assistants, developer tooling and multi-step workflows. GLM-4.7 is served through Hormouz behind an OpenAI-compatible API.

Pricing is usage-based: $0.40 per million input tokens and $1.75 per million output tokens. Hormouz provides stable access to the model from inside Iran.

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...

Quickstart

curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-4.7",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorZ.ai
TypeText
Context window204,800 tokens
Pricing$0.60/M in · $2.20/M out
APIChat Completions
CapabilitiesStreaming · Tools

Benchmarks

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
66.4%
HLE
Humanity's Last Exam
6.4%
IFBench
Instruction-following
54.6%
AA-LCR
Long-context reasoning
40.7%
CritPt
Research-level physics reasoning
0%
AA Omniscience
Broad factual knowledge accuracy
23.6%
Non-Hallucination
Rate of avoiding fabricated answers
7.1%

Coding

Terminal-Bench Hard
Agentic coding & terminal use
30.3%

Agentic

τ²-Bench
Tool-use agents in dual-control scenarios
94.2%

Source: Artificial Analysis

Ranking distribution

First
10,087
Second
9,967
Third
5,641
Fourth
3,474

29169 tournaments ?

Android Native
Top 73%
1,128Elo
Win rate: 56.2%
Full-Stack
Top 84%
1,048Elo
Win rate: 45.1%
Godot Game Dev
Top 92%
1,058Elo
Win rate: 35.8%
Mobile Apps
Top 78%
1,102Elo
Win rate: 48.9%
3D
Top 36%
1,201Elo
Win rate: 54.3%Avg time: 143s
ASCII Art
Top 45%
1,176Elo
Win rate: 48.2%Avg time: 157s
Code
Top 33%
1,223Elo
Win rate: 54.8%Avg time: 165s
Data Viz
Top 41%
1,204Elo
Win rate: 51.2%Avg time: 154s
Game Dev
Top 37%
1,201Elo
Win rate: 55.2%Avg time: 168s
SVG
Top 47%
1,142Elo
Win rate: 54.3%Avg time: 90.4s
UI Component
Top 40%
1,206Elo
Win rate: 51.1%Avg time: 152s
Website
Top 32%
1,232Elo
Win rate: 55.3%Avg time: 172s

Metrics sourced from Design Arena

Code example

cURL
curl https://api.hormouz.net/v1/chat/completions \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-4.7",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python
from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
response = client.chat.completions.create(
    model="z-ai/glm-4.7",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const response = await client.chat.completions.create({
  model: "z-ai/glm-4.7",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Buy the Z.ai: GLM 4.7 API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches Z.ai: GLM 4.7 and 600+ other models, and you pay only for what you use.
  • No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Create an account

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

FAQ

How is GLM-4.7 different from GLM-4.5?
GLM-4.7 is the newer flagship, with stronger coding, more stable multi-step reasoning and a larger context window (about 200K tokens).
How much does GLM-4.7 cost?
Billing is usage-based: $0.40 per million input tokens and $1.75 per million output tokens.
What context window and capabilities does GLM-4.7 have?
It supports about 200K tokens of context and tool calling, and is a fit for agentic work and coding.
How do I access GLM-4.7 from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides stable access from inside Iran, with no foreign credit card required.
Is GLM-4.7 compatible with OpenAI code?
Yes. Point the base URL at Hormouz and drop in a Hormouz key. Your existing code runs unchanged.

Updated 2026-10-13