LiteLLMModels

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.

By Z.aiModel ID zai/glm-4.5Prices updated Checked
Input
$0.60 / 1M tokens
Output
$2.20 / 1M tokens
Context window
128,000 tokens
Max output
32,000 tokens
Providers
5
Added to LiteLLM
July 2025

GLM 4.5 pricing by provider

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

ProviderModel name in LiteLLMInputOutputCache readContext
Z.aizai/glm-4.5$0.60$2.20–128K
DeepInfradeepinfra/zai-org/GLM-4.5$0.40$1.60–128K
Fireworks AIfireworks_ai/accounts/fireworks/models/glm-4p5$0.55$2.19–128K
Novita AInovita/zai-org/glm-4.5$0.60$2.20$0.11128K
Vercel AI Gatewayvercel_ai_gateway/zai/glm-4.5$0.60$2.20–128K

What GLM 4.5 costs in practice

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

GLM 4.5 features

Use GLM 4.5 with LiteLLM

Call GLM 4.5 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

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

GLM 4.5 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.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: Z.ai, DeepInfra, Fireworks AI, Vercel AI Gateway.

Provider pages: Z.ai, DeepInfra, Fireworks AI, Novita AI, Vercel AI Gateway.