LiteLLMLiteLLM/ MODELS

GLM 5 API Pricing

By Z.ai · 10 providerszai/glm-5Compare
Input / output
$1.00 / $3.20 per 1M tokens
Cache read
$0.20 / 1M
Context
200K tokens
Max output
128K tokens

As of November 24, 2026, GLM 5 costs $1.00 per 1M input tokens and $3.20 per 1M output tokens on Z.ai, with cache reads at $0.20 and cache writes at $0 per 1M tokens. Across 10 providers on LiteLLM, the input price ranges from $0.60 to $1.55. It has a 200,000-token context window and returns up to 128,000 tokens per response.

Prices updated Checked

GLM 5 pricing by provider

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

GLM 5 prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
Z.aizai/glm-5$1.00$3.20$0.20$0––200K
Amazon Bedrockzai.glm-5$1.00$3.20––$0.50$1.60200K
Amazon Bedrock Mantlebedrock_mantle/zai.glm-5$1.00$3.20––$0.50$1.60200K
Basetenbaseten/zai-org/GLM-5$0.95$3.15–––––
DeepInfradeepinfra/zai-org/GLM-5$0.60$2.08$0.12–––198K
Google Vertex AIvertex_ai/zai-org/glm-5-maas$1.00$3.20$0.10–––200K
Novita AInovita/zai-org/glm-5$1.00$3.20$0.20–––203K
StreamLakestreamlake/glm-5$1.00$3.20$0.20–––198K
Together AItogether_ai/zai-org/GLM-5$1.00$3.20––––198K
Amazon Bedrockap-northeast-1bedrock/ap-northeast-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockap-south-1bedrock/ap-south-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockap-southeast-2bedrock/ap-southeast-2/zai.glm-5$1.03$3.30––––200K
Amazon Bedrockap-southeast-3bedrock/ap-southeast-3/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockeu-central-1bedrock/eu-central-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockeu-north-1bedrock/eu-north-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockeu-south-1bedrock/eu-south-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockeu-west-1bedrock/eu-west-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockeu-west-2bedrock/eu-west-2/zai.glm-5$1.55$4.96––––200K
Amazon Bedrocksa-east-1bedrock/sa-east-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrockus-east-1bedrock/us-east-1/zai.glm-5$1.00$3.20––$0.50$1.60200K
Amazon Bedrockus-west-2bedrock/us-west-2/zai.glm-5$1.00$3.20––$0.50$1.60200K
Amazon Bedrock Mantleap-northeast-1bedrock_mantle/ap-northeast-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrock Mantleap-south-1bedrock_mantle/ap-south-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrock Mantleap-southeast-2bedrock_mantle/ap-southeast-2/zai.glm-5$1.03$3.30––––200K
Amazon Bedrock Mantleap-southeast-3bedrock_mantle/ap-southeast-3/zai.glm-5$1.20$3.84––––200K
Show 4 more listings
GLM 5 prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
Amazon Bedrock Mantleeu-north-1bedrock_mantle/eu-north-1/zai.glm-5$1.20$3.84––––200K
Amazon Bedrock Mantleeu-west-2bedrock_mantle/eu-west-2/zai.glm-5$1.55$4.96––––200K
Amazon Bedrock Mantlesa-east-1bedrock_mantle/sa-east-1/zai.glm-5$1.20$3.84––––200K
GMI Cloudfp8gmi/zai-org/GLM-5-FP8$0.60$1.92$0.12–––198K

What GLM 5 costs in practice

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

Z.ai$3.60
DeepInfra$2.24
Baseten$3.475
Amazon Bedrock$3.60

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

Z.ai$10.64
DeepInfra$6.416
Baseten$10.13
Amazon Bedrock$10.64

GLM 5 cost calculator

At Z.ai's price ($1.00 input, $3.20 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $26.00 a day, about $780 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0026
Per day
$26.00
Per month (30 days)
$780

GLM 5 features

Input: text. Output: text.

Use GLM 5 with LiteLLM

Call GLM 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-5",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: glm-5
    litellm_params:
      model: zai/glm-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 $LITELLM_API_KEY" \
  -d '{
    "model": "glm-5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

GLM 5 FAQ

How much does GLM 5 cost?

GLM 5 costs $1.00 per 1M input tokens and $3.20 per 1M output tokens on Z.ai, with cache reads at $0.20 and cache writes at $0 per 1M tokens. Across 10 providers on LiteLLM, the input price ranges from $0.60 to $1.55.

What is the context window of GLM 5?

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

Which providers offer GLM 5?

GLM 5 is available from 10 providers through LiteLLM: Z.ai, Amazon Bedrock, Amazon Bedrock Mantle, Baseten, DeepInfra, Google Vertex AI, Novita AI, StreamLake, Together AI and GMI Cloud. The lowest price is on DeepInfra.

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

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

GLM 5 supports function calling, structured output, reasoning and prompt caching.

When did LiteLLM add GLM 5?

GLM 5 was added to LiteLLM's model price file in February 2026.

Compare GLM 5

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: Z.ai, Amazon Bedrock, Baseten, DeepInfra, Google Vertex AI, StreamLake.

Provider pages: Z.ai, Amazon Bedrock, Amazon Bedrock Mantle, Baseten, DeepInfra, Google Vertex AI, Novita AI, StreamLake, Together AI, GMI Cloud.