GLM 5 API Pricing
- Input / output
- $1.00 / $3.20 per 1M tokens
- Cache read
- $0.20 / 1M
- Context
- 200K tokens
- Max output
- 128K tokens
As of November 24, 2026, GLM 5 costs $1.00 per 1M input tokens and $3.20 per 1M output tokens on Z.ai, with cache reads at $0.20 and cache writes at $0 per 1M tokens. Across 10 providers on LiteLLM, the input price ranges from $0.60 to $1.55. It has a 200,000-token context window and returns up to 128,000 tokens per response.
GLM 5 pricing by provider
29 listings across 10 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Cache write | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|---|
| Z.ai | zai/glm-5 | $1.00 | $3.20 | $0.20 | $0 | – | – | 200K |
| Amazon Bedrock | zai.glm-5 | $1.00 | $3.20 | – | – | $0.50 | $1.60 | 200K |
| Amazon Bedrock Mantle | bedrock_mantle/zai.glm-5 | $1.00 | $3.20 | – | – | $0.50 | $1.60 | 200K |
| Baseten | baseten/zai-org/GLM-5 | $0.95 | $3.15 | – | – | – | – | – |
| DeepInfra | deepinfra/zai-org/GLM-5 | $0.60 | $2.08 | $0.12 | – | – | – | 198K |
| Google Vertex AI | vertex_ai/zai-org/glm-5-maas | $1.00 | $3.20 | $0.10 | – | – | – | 200K |
| Novita AI | novita/zai-org/glm-5 | $1.00 | $3.20 | $0.20 | – | – | – | 203K |
| StreamLake | streamlake/glm-5 | $1.00 | $3.20 | $0.20 | – | – | – | 198K |
| Together AI | together_ai/zai-org/GLM-5 | $1.00 | $3.20 | – | – | – | – | 198K |
| Amazon Bedrockap-northeast-1 | bedrock/ap-northeast-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockap-south-1 | bedrock/ap-south-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockap-southeast-2 | bedrock/ap-southeast-2/zai.glm-5 | $1.03 | $3.30 | – | – | – | – | 200K |
| Amazon Bedrockap-southeast-3 | bedrock/ap-southeast-3/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockeu-central-1 | bedrock/eu-central-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockeu-north-1 | bedrock/eu-north-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockeu-south-1 | bedrock/eu-south-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockeu-west-1 | bedrock/eu-west-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockeu-west-2 | bedrock/eu-west-2/zai.glm-5 | $1.55 | $4.96 | – | – | – | – | 200K |
| Amazon Bedrocksa-east-1 | bedrock/sa-east-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrockus-east-1 | bedrock/us-east-1/zai.glm-5 | $1.00 | $3.20 | – | – | $0.50 | $1.60 | 200K |
| Amazon Bedrockus-west-2 | bedrock/us-west-2/zai.glm-5 | $1.00 | $3.20 | – | – | $0.50 | $1.60 | 200K |
| Amazon Bedrock Mantleap-northeast-1 | bedrock_mantle/ap-northeast-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrock Mantleap-south-1 | bedrock_mantle/ap-south-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrock Mantleap-southeast-2 | bedrock_mantle/ap-southeast-2/zai.glm-5 | $1.03 | $3.30 | – | – | – | – | 200K |
| Amazon Bedrock Mantleap-southeast-3 | bedrock_mantle/ap-southeast-3/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
Show 4 more listings
| Provider | Model name in LiteLLM | Input | Output | Cache read | Cache write | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|---|
| Amazon Bedrock Mantleeu-north-1 | bedrock_mantle/eu-north-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| Amazon Bedrock Mantleeu-west-2 | bedrock_mantle/eu-west-2/zai.glm-5 | $1.55 | $4.96 | – | – | – | – | 200K |
| Amazon Bedrock Mantlesa-east-1 | bedrock_mantle/sa-east-1/zai.glm-5 | $1.20 | $3.84 | – | – | – | – | 200K |
| GMI Cloudfp8 | gmi/zai-org/GLM-5-FP8 | $0.60 | $1.92 | $0.12 | – | – | – | 198K |
What GLM 5 costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Z.ai | $3.60 |
| DeepInfra | $2.24 |
| Baseten | $3.475 |
| Amazon Bedrock | $3.60 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Z.ai | $10.64 |
| DeepInfra | $6.416 |
| Baseten | $10.13 |
| Amazon Bedrock | $10.64 |
GLM 5 cost calculator
At Z.ai's price ($1.00 input, $3.20 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $26.00 a day, about $780 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.0026
- Per day
- $26.00
- Per month (30 days)
- $780
GLM 5 features
Input: text. Output: text.
- Function calling
- Structured output
- Reasoning
- Prompt caching
Use GLM 5 with LiteLLM
Call GLM 5 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="zai/glm-5",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: glm-5
litellm_params:
model: zai/glm-5
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "glm-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'GLM 5 FAQ
How much does GLM 5 cost?
GLM 5 costs $1.00 per 1M input tokens and $3.20 per 1M output tokens on Z.ai, with cache reads at $0.20 and cache writes at $0 per 1M tokens. Across 10 providers on LiteLLM, the input price ranges from $0.60 to $1.55.
What is the context window of GLM 5?
GLM 5 has a 200,000-token context window and returns up to 128,000 tokens per response.
Which providers offer GLM 5?
GLM 5 is available from 10 providers through LiteLLM: Z.ai, Amazon Bedrock, Amazon Bedrock Mantle, Baseten, DeepInfra, Google Vertex AI, Novita AI, StreamLake, Together AI and GMI Cloud. The lowest price is on DeepInfra.
How do I call GLM 5 with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="zai/glm-5", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does GLM 5 support?
GLM 5 supports function calling, structured output, reasoning and prompt caching.
When did LiteLLM add GLM 5?
GLM 5 was added to LiteLLM's model price file in February 2026.
Compare GLM 5
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
- docs.z.ai/guides/overview/pricing
- pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrock/current/us-east-1/index.json
- deepinfra.com/pricing
- cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
LiteLLM docs: Z.ai, Amazon Bedrock, Baseten, DeepInfra, Google Vertex AI, StreamLake.
Provider pages: Z.ai, Amazon Bedrock, Amazon Bedrock Mantle, Baseten, DeepInfra, Google Vertex AI, Novita AI, StreamLake, Together AI, GMI Cloud.