Z.ai · Efficient
GLM-4 Long
Extended context model supporting up to 1M tokens
- Input
- Text
- Output
- Text
- Discovery tier
- Efficient
Pricing
USD per 1M tokens- Input
- $0.20
- Output
- $0.20
Reference prices as published by the model provider. API example
Specifications
- Context window
- 1M
- Max output
- 4.1K
- Average output (7 days)
- 252 tokens
- Longer than 26% of 468 models
Side by side
GLM-4 Long compared
Specifications, prices, speed and benchmark scores next to each other. Benchmarks below show every compared model too.
| GLM-4 LongZ.aiThis model | Apex Flash 1Z.aiRemove | |
|---|---|---|
| Provider | Z.ai | Z.ai |
| Discovery tier | Efficient | Open weights |
| Added | Jan 1, 2024 | Oct 5, 2026 |
| Limits | ||
| Context window | 1M | 1.05MBest |
| Max output | 4.1K | 32.77KBest |
| Average output | 252 tokens | 672 tokens |
| Pricing, USD per 1M tokens | ||
| Input | $0.20 | $0.15Best |
| Output | $0.20Best | $0.50 |
| Cache read | — | $0.075 |
| Performance | ||
| Throughput | — | 14.1 tok/s |
| Time to first token | — | 6.9 s |
| Request success (24h) | — | 94.6% |
| Capabilities | ||
| Reasoning | No | Yes |
| Tools | No | Yes |
| Vision | No | Yes |
| Reasoning effort | — | low, high, max |
Public evaluations
Benchmarks
There are no public benchmark results for these models yet.
Developers
Use it through the API
Noumen’s API is OpenAI-compatible: any Chat Completions client works with a base URL and a key.
curl https://www.noumen.xyz/api/v1/chat/completions \
-H "Authorization: Bearer $NOUMEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4-long",
"messages": [{ "role": "user", "content": "Explain this stack trace." }]
}'import os
from openai import OpenAI
client = OpenAI(base_url="https://www.noumen.xyz/api/v1", api_key=os.environ["NOUMEN_API_KEY"])
reply = client.chat.completions.create(
model="glm-4-long",
messages=[{"role": "user", "content": "Explain this stack trace."}],
)
print(reply.choices[0].message.content)Z.ai
Related models
Other Z.ai models, starting with the same family.