GLM 5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.
glm-5.1Released 7 Apr 2026 (Apr 2026)Pricing
List prices at Z.ai, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $1.40 | $4.40 | |
| Cached input 81% off input | $0.26 | 81% off input | |
| Cache write, 5 minutes | $0.00 |
What it costs a month
At Z.ai list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$647
- RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$557
- Coding agent1,000 requests a day, 40K in / 2K out, cached$986
- Overnight batch20,000 requests a day, 4K in / 0.4K out$4,416
Where to run it
14 hosts serve GLM 5.1. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
Z.aiLab API glm-5.1 | $1.40 / $4.40 | glm-5.1 | |
EmpirioLabs AICloud glm-5-1 | $0.825 / $3.30 −33% vs headline | glm-5-1 | |
DeepInfraInference GLM-5.1 | $1.05 / $3.50 −23% vs headline | GLM-5.1 | |
Novita AIInference glm-5.1 | $1.38 / $4.40 −1% vs headline | glm-5.1 | |
Alibaba DashScopeLab API glm-5.1 | $1.40 / $4.40 | glm-5.1 | |
Qianwen AI PlatformLab API glm-5.1 | $1.40 / $4.40 | glm-5.1 | |
Qwen CloudLab API glm-5.1 | $1.40 / $4.40 | glm-5.1 | |
StreamLakeCloud glm-5.1 | $1.40 / $4.40 | glm-5.1 | |
FriendliAIInference GLM-5.1 | $1.40 / $4.40 Retires 20 Nov 2026 | GLM-5.1 | Retires 20 Nov 2026 |
Nebius AI StudioInference GLM-5.1 | $1.40 / $4.40 | GLM-5.1 | |
Together AIInference GLM-5.1 | $1.40 / $4.40 | GLM-5.1 | |
GMI CloudInference GLM-5.1-FP8 | $1.40 / $4.40 | GLM-5.1-FP8 | |
Fireworks AIInference glm-5p1 | $1.40 / $4.40 | glm-5p1 | |
Kyma APICloud glm-5.1 | $1.89 / $5.94 +35% vs headline | glm-5.1 |
Show 1 more listings: regions, snapshots and variantsHide regional listings
| Fireworks AI | |||||||
| Alias glm-5p1 | $1.40 / $4.40 | glm-5p1 | |||||
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Text
- Features
- Prompt caching
- Open weights
- License: MITRuns in about 1809.3 GB of GPU memory
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
- EmpirioLabs AI33% lessglm-5-1$0.825 / $3.30
- DeepInfra23% lessGLM-5.1$1.05 / $3.50
Smaller Zhipu AI models
- 12% less
Other frontier labs
- 7% less
- 30% less
- 42% less
- 91% less
Open-weight picks
- 7% less
- 20% less
- 60% less
- 63% less
Model line
Newer and older versions, at each lab's own price.
Call it
Using Z.ai's API.
from litellm import completion
response = completion(
model="zai/glm-5.1",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does GLM 5.1 cost?
On Z.ai, GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens. Cached input costs $0.26 per million tokens. The cheapest host is EmpirioLabs AI, at $0.825 per million input tokens and $3.30 per million output tokens.
Which APIs offer GLM 5.1?
GLM 5.1 runs on 14 APIs: Z.ai, EmpirioLabs AI, DeepInfra, Novita AI, Alibaba DashScope, Qianwen AI Platform, Qwen Cloud, StreamLake, FriendliAI and 5 more.
What is GLM 5.1's context window?
200K tokens, with up to 128K tokens in one reply.
Is GLM 5.1 being retired?
FriendliAI retires it on 20 Nov 2026. 13 hosts keep serving it.
Is there a newer version of GLM 5.1?
Yes. GLM 5.3 is the newest model in this line, released on 18 Aug 2026.
What are cheaper alternatives to GLM 5.1?
Models that cost less and keep most of what it can do: GLM 5v Turbo on Z.ai (12% less), GPT-6.1 Terra on OpenAI (7% less), Gemini 3.8 Flash on Google AI Studio (30% less) and Muse Spark Open on Baseten (7% less). GLM 5.1 itself costs 33% less on EmpirioLabs AI. Savings are on a mix of 3 input tokens to 1 output token.
When was GLM 5.1 released?
Zhipu AI released it on 7 Apr 2026.
What is GLM 5.1's API model id?
Use glm-5.1 with Z.ai. Other hosts use their own ids: glm-5-1 on EmpirioLabs AI, GLM-5.1 on DeepInfra, GLM-5.1 on FriendliAI, GLM-5.1 on Nebius AI Studio.
Sources
- DeepInfra pricing
- FriendliAI pricing
- Nebius AI Studio pricing
- Together AI pricing
- GMI Cloud pricing
- EmpirioLabs AI pricing
- Alibaba DashScope pricing
- Novita AI pricing
- Qianwen AI Platform pricing
- Qwen Cloud pricing
- StreamLake pricing
- Z.ai pricing
- Fireworks AI pricing
- LiteLLM model map
Raw catalog entry for glm-5.1 on Z.ai
{
"cache_creation_input_token_cost": 0,
"cache_read_input_token_cost": 2.6e-7,
"input_cost_per_token": 0.0000014,
"output_cost_per_token": 0.0000044,
"litellm_provider": "zai",
"max_input_tokens": 200000,
"max_output_tokens": 128000,
"mode": "chat",
"supports_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_tool_choice": true,
"source": "https://docs.z.ai/guides/overview/pricing"
}