# GLM 5 API Pricing

As of October 10, 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 7 providers on LiteLLM, the input price ranges from $0.60 to $1.00. It has a 200,000-token context window and returns up to 128,000 tokens per response.

- Page: https://models.litellm.ai/models/glm-5
- Lab: Z.ai
- LiteLLM model name: `zai/glm-5`
- Context window: 200,000 tokens
- Max output: 128,000 tokens
- Added to LiteLLM: February 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Z.ai | `zai/glm-5` | $1.00 | $3.20 | $0.20 | – | – | 200K |
| Amazon Bedrock | `zai.glm-5` | $1.00 | $3.20 | – | – | – | 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 |
| Together AI | `together_ai/zai-org/GLM-5` | $1.00 | $3.20 | – | – | – | 198K |
| Amazon Bedrock (us-east-1) | `bedrock/us-east-1/zai.glm-5` | $1.00 | $3.20 | – | – | – | 200K |
| Amazon Bedrock (us-west-2) | `bedrock/us-west-2/zai.glm-5` | $1.00 | $3.20 | – | – | – | 200K |

## Cost examples

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

## Features

Supported: Function calling, Structured output, Reasoning, Prompt caching.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="zai/glm-5",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## 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 7 providers on LiteLLM, the input price ranges from $0.60 to $1.00.

### 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 7 providers through LiteLLM: Z.ai, Amazon Bedrock, Baseten, DeepInfra, Google Vertex AI, Novita AI and Together AI. 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
