# GLM 4.5 API Pricing

As of October 10, 2026, GLM 4.5 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens on Z.ai. Across 5 providers on LiteLLM, the input price ranges from $0.40 to $0.60. It has a 128,000-token context window and returns up to 32,000 tokens per response.

- Page: https://models.litellm.ai/models/glm-4.5
- Lab: Z.ai
- LiteLLM model name: `zai/glm-4.5`
- Context window: 128,000 tokens
- Max output: 32,000 tokens
- Added to LiteLLM: July 2025
- 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-4.5` | $0.60 | $2.20 | – | – | – | 128K |
| DeepInfra | `deepinfra/zai-org/GLM-4.5` | $0.40 | $1.60 | – | – | – | 128K |
| Fireworks AI | `fireworks_ai/accounts/fireworks/models/glm-4p5` | $0.55 | $2.19 | – | – | – | 128K |
| Novita AI | `novita/zai-org/glm-4.5` | $0.60 | $2.20 | $0.11 | – | – | 128K |
| Vercel AI Gateway | `vercel_ai_gateway/zai/glm-4.5` | $0.60 | $2.20 | – | – | – | 128K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- Z.ai: $2.30
- DeepInfra: $1.60
- Fireworks AI: $2.195
- Novita AI: $2.30

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Z.ai: $6.44
- DeepInfra: $4.32
- Fireworks AI: $5.938
- Novita AI: $6.44

## Features

Supported: Function calling, Parallel tool calls, Structured output, Reasoning.

## Use it with LiteLLM

```python
from litellm import completion

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

## FAQ

### How much does GLM 4.5 cost?

GLM 4.5 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens on Z.ai. Across 5 providers on LiteLLM, the input price ranges from $0.40 to $0.60.

### What is the context window of GLM 4.5?

GLM 4.5 has a 128,000-token context window and returns up to 32,000 tokens per response.

### Which providers offer GLM 4.5?

GLM 4.5 is available from 5 providers through LiteLLM: Z.ai, DeepInfra, Fireworks AI, Novita AI and Vercel AI Gateway. The lowest price is on DeepInfra.

### How do I call GLM 4.5 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="zai/glm-4.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 4.5 support?

GLM 4.5 supports function calling, parallel tool calls, structured output and reasoning.

### When did LiteLLM add GLM 4.5?

GLM 4.5 was added to LiteLLM's model price file in July 2025.

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