Hormouz AIHormouzSign in

Z.ai: GLM 5.2: AI model

GLM 5.2 is a large-scale reasoning model from Z.ai with a 1M-token context window, suited to long-horizon agent workflows and project-level software engineering. Reachable from inside Iran through Hormouz.

Context window:
1,048,576 tokens
Input:
$0.06/1M tokens
Output:
$7/1M tokens
Type:
text
  • Tools
  • Streaming
  • Long context

Thinking levels: xhigh · high

GLM 5.2 is a large-scale reasoning model from Z.ai. It takes text input and output, offers a context window of up to 1M tokens, and suits long-horizon agent workflows, project-level software engineering and complex multi-step automation.

Reasoning-effort levels "high" and "xhigh" are supported, with "xhigh" mapping to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context through a full development workflow. From requirements to multi-platform deployment. In a single task. Hormouz exposes an OpenAI-compatible API. Point your base URL at Hormouz, drop in a Hormouz key, and existing OpenAI SDK code runs unchanged.

Pricing is usage-based: $3/M in · $10.25/M out. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

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-5.2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Specs

VendorZ.ai
TypeText
Context window1,048,576 tokens
Pricing$0.06/M in · $7.00/M out
APIChat Completions
CapabilitiesStreaming · Tools

Benchmarks

33.7
Intelligence Index
Better than 63% of models we compared
68.8
Coding Index
Better than 77% of models we compared
38.4
Agentic Index
Better than 75% of models we compared

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
89.5%
HLE
Humanity's Last Exam
41.1%
IFBench
Instruction-following
73.3%
AA-LCR
Long-context reasoning
78.3%
CritPt
Research-level physics reasoning
20.9%
AA Omniscience
Broad factual knowledge accuracy
24.3%
Non-Hallucination
Rate of avoiding fabricated answers
73.7%

Coding

SciCode
Python for scientific computing
51.2%
Terminal-Bench Hard
Agentic coding & terminal use
50.8%

Agentic

τ²-Bench
Tool-use agents in dual-control scenarios
99.1%
GDPval
Economically valuable tasks
43.7%

Source: Artificial Analysis

Ranking distribution

First
5,729
Second
4,600
Third
909
Fourth
595

11833 tournaments ?

Agentic Game Dev
Top 42%
1,205Elo
Win rate: 49%
Android Native
Top 43%
1,193Elo
Win rate: 53.2%
Full-Stack
Top 30%
1,239Elo
Win rate: 60.5%
Godot Game Dev
Top 67%
1,142Elo
Win rate: 40.1%
HTML Slides
Top 57%
1,175Elo
Win rate: 49.5%Avg time: 329s
Mobile Apps
Top 59%
1,152Elo
Win rate: 47.8%
Python Slides
Top 56%
1,194Elo
Win rate: 48.7%Avg time: 517s
Web Apps
Top 36%
1,215Elo
Win rate: 56%
3D
Top 12%
1,299Elo
Win rate: 53.5%Avg time: 355s
ASCII Art
Top 31%
1,206Elo
Win rate: 46.3%Avg time: 288s
Code
Top 11%
1,295Elo
Win rate: 50.9%Avg time: 264s
Data Viz
Top 9%
1,300Elo
Win rate: 53.4%Avg time: 275s
Game Dev
Top 15%
1,281Elo
Win rate: 49.5%Avg time: 348s
SVG
Top 20%
1,218Elo
Win rate: 49.2%Avg time: 172s
UI Component
Top 12%
1,299Elo
Win rate: 55.1%Avg time: 271s
Website
Top 10%
1,294Elo
Win rate: 50.1%Avg time: 221s

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-5.2",
    "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-5.2",
    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-5.2",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

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

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches Z.ai: GLM 5.2 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 much does GLM 5.2 cost?
Billing is usage-based: $3/M in · $10.25/M out. There is no fixed monthly fee. You pay only for what you use.
How do I use GLM 5.2 from inside Iran?
Create a Hormouz account and generate an API key. Hormouz gives you a stable route to the model from inside Iran, with no foreign credit card or circumvention tooling needed.
Is GLM 5.2 OpenAI-compatible?
Yes. Hormouz serves an OpenAI-compatible API. Point your base URL at Hormouz and swap in a Hormouz key; your existing SDKs and code work without a rewrite.
How large is GLM 5.2's context window?
The context window is up to 1M tokens, suiting long-running, project-level work.
What reasoning-effort levels does GLM 5.2 support?
It supports "high" and "xhigh"; "xhigh" maps to maximum reasoning effort.
What is GLM 5.2 good for?
Project-level software engineering, long-horizon agent workflows, coding and multi-step automation.

Updated 2026-10-13