GLM 5 API Cost Calculator
Estimate your monthly API costs for GLM 5 from Z Ai.
Pricing per 1M tokens
Pricing last verified: Mar 21, 2026
30-Day Price History
Solid line: input price · Dashed line: output price
Estimate Your Costs
What are you building?
Cost Breakdown
Compare with Similar Models
| Model | Input/1M | Output/1M |
|---|---|---|
| GLM 4.5 Z Ai | $0.6000 | $2.20 |
| GLM 4.5V Z Ai | $0.6000 | $1.80 |
| GLM 4.6 Z Ai | $0.3900 | $1.90 |
| GLM 4.7 Z Ai | $0.3900 | $1.75 |
| GLM 5 Turbo Z Ai | $0.9600 | $3.20 |
Frequently Asked Questions
How much does GLM 5 cost per token?
GLM 5 is priced at $0.7200 per 1M input tokens and $2.30 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.
What is the context window for GLM 5?
GLM 5 has a context window of 80K tokens (80,000 tokens). The maximum output length is 131.1K tokens.
Does GLM 5 support function calling (tool use)?
Yes, GLM 5 supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.
How does GLM 5 compare to similar models?
GLM 5 costs $0.7200 input and $2.30 output per 1M tokens. GLM 4.7 is less expensive at $0.3900 input and $1.75 output per 1M tokens. See the "Compare with Similar Models" table above, or visit the GLM 4.7 page at /tools/cost-calculator/z-ai/glm-4-7.