# GLM 5.4 API Pricing

As of December 2, 2026, GLM 5.4 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens from Nebius AI Studio, the lowest of 2 providers, with cache reads at $0.26 per 1M tokens. It has a 1,048,576-token context window and returns up to 262,144 tokens per response.

- Page: https://models.litellm.ai/models/glm-5.4
- Lab: Z.ai
- LiteLLM model name: `nebius/zai-org/GLM-5.4`
- Context window: 1,048,576 tokens
- Max output: 262,144 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 |
|---|---|---|---|---|---|---|---|
| Nebius AI Studio | `nebius/zai-org/GLM-5.4` | $1.40 | $4.40 | $0.26 | – | – | 1M |
| Baseten | `baseten/zai-org/GLM-5.4` | $1.40 | $4.40 | $0.14 | – | – | 1M |

## Cost examples

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

- Nebius AI Studio: $5.00
- Baseten: $5.00

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

- Nebius AI Studio: $14.88
- Baseten: $14.88

## Features

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

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="nebius/zai-org/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 Nebius AI Studio'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=glm-5.4

## FAQ

### How much does GLM 5.4 cost?

GLM 5.4 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens from Nebius AI Studio, the lowest of 2 providers, with cache reads at $0.26 per 1M tokens.

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

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

### Which providers offer GLM 5.4?

GLM 5.4 is available from 2 providers through LiteLLM: Nebius AI Studio and Baseten.

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

Call completion() in the LiteLLM Python SDK with model="nebius/zai-org/GLM-5.4", or configure the model on the LiteLLM proxy and send a POST request to /v1/chat/completions.

### What features does GLM 5.4 support?

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

### When did LiteLLM add GLM 5.4?

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.
