Model detail
GLM-4-Long
A GLM model designed for very long documents and memory-intensive tasks, including document analysis, summarization, and extended conversations.
Model specs
- Model ID
-
glm-4-long
- Context length
- 1M
- Max output
- 4.096K
- I/O modalities
- Released
- 2024-01
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
OpenAI-compatible
/v1/chat/completionsPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$0.1429 /1M Tokens
Completion
$0.1429 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
A GLM model designed for very long documents and memory-intensive tasks
A GLM model designed for very long documents and memory-intensive tasks, including document analysis, summarization, and extended conversations.
What should you check before using it?
1,000,000 context, 4,000 output,
Supports . Part of the GLM-4 series by Zhipu AI.
Why use it through MixRoute?
Drop-in via OpenAI-compatible endpoint on MixRoute
Set the model parameter to "glm-4-long" and use your MixRoute API key. Compatible with OpenAI SDK and standard tool-calling patterns.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Streaming
GLM-4-Long supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
GLM-4-Long supports prompt caching under supported routing conditions.
OpenAI SDK
Call GLM-4-Long through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
This model has no cache-read price; caching is not counted
09
FAQ
GLM-4-Long supports context caching, which can significantly reduce latency and cost for repeated prefixes. Stable content such as system prompts and tool definitions benefits most.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.