GLM 5.1
ChatNot available
Autonomous reasoning model with 8+ hour planning capability. Specialized for long-horizon tasks, autonomous planning, and complex engineering.
- Context
- 203Ktokens
- Max output
- 64Ktokens
- Latency
- ~18ms
- Released
- 2025-12
Pricing
$ / 1M tokensInput
$1.40/M
Output
$4.40/M
Cache Read
$0.26/M
Cache Write
$1.40/M
Capabilities
5 listed- Chat
- Tool Use
- Reasoning
- Coding
- Analysis
Code examples
POST /v1/chat/completionspython
from openai import OpenAI
client = OpenAI(
api_key="your_api_key",
base_url="https://api.modelstack.cc/v1",
)
response = client.chat.completions.create(
model="glm-5.1",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Related models
Frequently asked questions
How is GLM 5.1 billed on ModelStack?expand_more
ModelStack bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.
What are the context window and maximum output for GLM 5.1?expand_more
GLM 5.1 has a 203K context window and supports up to 64K of output.
How can I call GLM 5.1 through ModelStack?expand_more
Use the model ID `glm-5.1` with any OpenAI-compatible SDK pointed at the ModelStack API — see the code examples above for Python, Node.js, and cURL.
Which capabilities does GLM 5.1 support?expand_more
GLM 5.1 supports: Chat, Tool Use, Reasoning, Coding, Analysis.