Speed
Output tokens / second
Custom pricing for production workloads
GLM 4.7 Flash on AIMLAPI.
z-ai/glm-4.7-flashhttps://api.aimlapi.com/v1Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
GLM 4.7 Flash is documented as suited to dialogue, instruction-following, and multi-turn tool calling across 100+ languages.
It is also recommended for coding and programming work, including frontend and backend tasks.
For broader general use, it is documented for Chinese writing, translation, long-context tasks, and emotional or role-playing tasks.
See how GLM 4.7 Flash 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.1323 | 1M tokens |
| Output | $0.529 | 1M tokens |
| Cached input | $0.0106 | 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.1323 | $0.529 | |
| $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": "z-ai/glm-4.7-flash",
"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": "z-ai/glm-4.7-flash",
"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": "z-ai/glm-4.7-flash",
"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 Flash has a 202,752 tokens context window and can return up to 16,384 tokens.
GLM 4.7 Flash takes image, text as input and returns text.
Use z-ai/glm-4.7-flash as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GLM 4.7 Flash costs $0.1323 input and $0.529 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GLM 4.7 Flash can stream responses as they are generated.
Yes, GLM 4.7 Flash accepts image input alongside text.
GLM 4.7 Flash was built by Zhipu AI.
Yes, it supports function calling, parallel tool calls, and structured outputs.