Speed
Output tokens / second
Custom pricing for production workloads
GLM-4.7 is Zhipu AI flagship text LLM optimized for agentic coding and stable multi-step reasoning, supporting long-context workflows.
GLM-4.7 is Z.AI's latest flagship large language model, purpose-built for agentic coding and stable multi-step reasoning.
zhipu/glm-4.7https://api.aimlapi.com/v1GLM-4.7 represents Zhipu AI's latest advancement in large language models, prioritizing agentic coding, stable multi-step reasoning, and complex workflows. Released in December 2025, it supports a 200K token context window and up to 128K output tokens, enabling robust handling of extended tasks.
GLM-4.7 leads open-source models in coding benchmarks at 128K context, achieving 73.8% on SWE-bench Verified (up 5.8% from GLM-4.6) and 84.9% on LiveCodeBench v6, surpassing Claude Sonnet 4.5. Reasoning scores include 42.8% on HLE with tools (41% gain over predecessor) and 95.7% on AIME 2025.
GLM-4.7 excels in programming with a "think before acting" mechanism, improving multi-language code generation and terminal agent performance. It integrates function calling, structured JSON outputs, context caching, and real-time streaming for seamless developer workflows.
Seamlessly writes, debugs, and deploys code across languages, ideal for terminal-based and IDE-integrated workflows.
Generates modern, aesthetically refined HTML/CSS/JS and presentation slides with accurate layout, spacing, and design sensibility.
See how GLM-4.7 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 13 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.6 | 1M tokens |
| Output | $2.2 | 1M tokens |
| Cached input | $0.11 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.6 | $2.2 | |
| $0.15 | $0.5 | |
| $0.37 | $1.25 | |
| $1.4 | $4.4 | |
| $3.5 | $11 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "zhipu/glm-4.7",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "zhipu/glm-4.7",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "zhipu/glm-4.7",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());GLM-4.7 has a 200,000 tokens context window and can return up to 128,000 tokens.
GLM-4.7 takes text as input and returns text.
Use zhipu/glm-4.7 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GLM-4.7 became available on December 23, 2025.
GLM-4.7 costs $0.6 input and $2.2 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GLM-4.7 can stream responses as they are generated.
GLM-4.7 was built by Zhipu AI.