# Zai GLM 5.4 API Pricing

As of December 2, 2026, Zai GLM 5.4 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens on Mistral AI, with cache reads at $0.14 per 1M tokens. It has a 1,048,576-token context window and returns up to 128,000 tokens per response.

- Page: https://models.litellm.ai/models/zai-glm-5-4
- LiteLLM model name: `mistral/zai-glm-5-4`
- Context window: 1,048,576 tokens
- Max output: 128,000 tokens
- Added to LiteLLM: December 2, 2026
- Prices updated: December 2, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Mistral AI | `mistral/zai-glm-5-4` | $1.40 | $4.40 | $0.14 | – | – | 1M |

## Cost examples

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

- Mistral AI: $5.00

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

- Mistral AI: $14.88

## Features

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

## Use it with LiteLLM

```python
from litellm import completion

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

Proxy endpoint `POST /v1/chat/completions`.

[LiteLLM API documentation](https://docs.litellm.ai/docs/completion/input)

## Cost calculator

10,000 requests a day with 1,000 input and 500 output tokens each, at Mistral AI's price: $0.0036 per request, $36.00 per day, $1,080 per month (30 days). Try other numbers at https://models.litellm.ai/calculator?model=zai-glm-5-4

## FAQ

### How much does Zai GLM 5.4 cost?

Zai GLM 5.4 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens on Mistral AI, with cache reads at $0.14 per 1M tokens.

### What is the context window of Zai GLM 5.4?

Zai GLM 5.4 has a 1,048,576-token context window and returns up to 128,000 tokens per response.

### Which providers offer Zai GLM 5.4?

Zai GLM 5.4 is available from Mistral AI through LiteLLM, using the model name mistral/zai-glm-5-4.

### How do I use Zai GLM 5.4 with LiteLLM?

Call completion() in the LiteLLM Python SDK with model="mistral/zai-glm-5-4", or configure the model on the LiteLLM proxy and send a POST request to /v1/chat/completions.

### What features does Zai GLM 5.4 support?

Zai GLM 5.4 supports function calling, structured output, image input, reasoning and prompt caching.

### When did LiteLLM add Zai GLM 5.4?

Zai GLM 5.4 was added to LiteLLM's model price file on December 2, 2026.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.
