GLM 5.1
Zhipu
zhipu/glm-5.1
Reasoning model, 131K context
Context Window
131K
131,072 tokens
Max Output
16K
16,384 tokens
About this model
GLM-5.1 latest β improved coding and reasoning, 94% of Claude Opus 4.6 coding
This model supports up to 131K tokens of context. It excels at complex reasoning, mathematical problems, and multi-step tasks. It provides strong code generation and debugging capabilities.
Access it through Chuizi.AI with a single ck- API key β no separate Zhipu AI account needed.
Highlights
131K context window
16K max output
Advanced reasoning
Strong code generation
Best For
Complex coding tasksAlgorithm designCode reviewTechnical architecture
2026-02-01
Capabilities
ChatReasoningCodetools
Aliases
glm-5.1Pricing (per 1M tokens)
| Pricing (per 1M tokens) | / 1M tokens |
|---|---|
| Input / 1M | $1.05 |
| Output / 1M | $3.36 |
Final prices shown
Quick Start
main.py
from openai import OpenAI client = OpenAI( base_url="https://api.chuizi.ai/v1", api_key="ck-your-key-here", ) response = client.chat.completions.create( model="zhipu/glm-5.1", messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content)