Hormouz AIHormouzSign in

Z.ai: GLM 4.6: AI model

GLM 4.6 is the newer generation of the GLM family, expanding the context window to 200K tokens with improved coding and reasoning. Reachable from inside Iran through Hormouz.

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

Thinking levels:

GLM 4.6 is a newer generation in the GLM family with several key improvements over the prior version. Its context window has expanded from 128K to 200K tokens, enabling more complex agentic tasks.

The model scores higher on coding benchmarks and performs better in real-world programming use, including generating visually polished front-end pages. Its reasoning is improved, it supports tool use during inference and integrates more effectively into agent frameworks, and its writing is more natural and better aligned with human preferences. 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: $0.6/M in · $2.2/M out. Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.

Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex...

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

Specs

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

Benchmarks

Reasoning

GPQA Diamond
Graduate-level scientific reasoning
63.2%
HLE
Humanity's Last Exam
5.5%
IFBench
Instruction-following
36.7%
AA-LCR
Long-context reasoning
26.3%
CritPt
Research-level physics reasoning
0%
AA Omniscience
Broad factual knowledge accuracy
21.4%
Non-Hallucination
Rate of avoiding fabricated answers
32.4%

Coding

Terminal-Bench Hard
Agentic coding & terminal use
28.8%

Agentic

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

Source: Artificial Analysis

Ranking distribution

First
5,558
Second
5,994
Third
2,107
Fourth
943

14602 tournaments ?

Android Native
Top 78%
1,099Elo
Win rate: 52.6%
Full-Stack
Top 89%
1,028Elo
Win rate: 42.3%
Godot Game Dev
Top 47%
1,180Elo
Win rate: 53.2%
Mobile Apps
Top 80%
1,093Elo
Win rate: 47.2%
3D
Top 55%
1,139Elo
Win rate: 54.2%Avg time: 80.2s
Code
Top 55%
1,171Elo
Win rate: 54.3%Avg time: 109s
Data Viz
Top 57%
1,170Elo
Win rate: 52.6%Avg time: 86.1s
Game Dev
Top 53%
1,163Elo
Win rate: 54.8%Avg time: 109s
SVG
Top 64%
1,108Elo
Win rate: 52.1%Avg time: 33.2s
UI Component
Top 59%
1,154Elo
Win rate: 52.5%Avg time: 86.8s
Website
Top 53%
1,181Elo
Win rate: 54.3%Avg time: 115s

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

Buy the Z.ai: GLM 4.6 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.6 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 4.6 cost?
Billing is usage-based: $0.6/M in · $2.2/M out. There is no fixed monthly fee. You pay only for what you use.
How do I use GLM 4.6 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 4.6 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 4.6's context window?
Its context window is roughly 200K tokens. Expanded over the prior generation and suited to more complex agentic tasks.
What does GLM 4.6 improve over the prior generation?
Stronger coding and reasoning, a larger context window, tool use during inference and more natural writing.
What is GLM 4.6 good for?
Coding, agentic workflows, tool use and front-end page generation.

Updated 2026-10-13