LiteLLMLiteLLM/ MODELS

GLM 5.4 API Pricing

By Z.ai · 2 providersnebius/zai-org/GLM-5.4Compare
Input / output
$1.40 / $4.40 per 1M tokens
Cache read
$0.26 / 1M
Context
1M tokens
Max output
256K tokens

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.

Prices updated Checked

GLM 5.4 pricing by provider

2 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

GLM 5.4 prices by provider in US dollars, token prices per 1M tokens, as of December 2, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
Nebius AI Studionebius/zai-org/GLM-5.4$1.40$4.40$0.261M
Basetenbaseten/zai-org/GLM-5.4$1.40$4.40$0.141M

What GLM 5.4 costs in practice

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

GLM 5.4 cost calculator

At Nebius AI Studio's price ($1.40 input, $4.40 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $36.00 a day, about $1,080 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0036
Per day
$36.00
Per month (30 days)
$1,080

GLM 5.4 features

Input: text, image, video. Output: text.

Use GLM 5.4 with LiteLLM

Call GLM 5.4 through the LiteLLM Python SDK, or configure it on the LiteLLM proxy and send a POST /v1/chat/completions request. API documentation

Python SDK
from litellm import completion

response = completion(
    model="nebius/zai-org/GLM-5.4",
    messages=[{"role":"user","content":"Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: glm-5.4
    litellm_params:
      model: nebius/zai-org/GLM-5.4
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "glm-5.4",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

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.

Compare GLM 5.4

All model comparisons

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:

LiteLLM docs: Nebius AI Studio, Baseten.

Provider pages: Nebius AI Studio, Baseten.