# GLM 4.6 API Pricing

As of October 10, 2026, GLM 4.6 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens on Z.ai, with cache reads at $0.11 and cache writes at $0 per 1M tokens. Across 7 providers on LiteLLM, the input price ranges from $0.45 to $0.60. It has a 200,000-token context window and returns up to 128,000 tokens per response.

- Page: https://models.litellm.ai/models/glm-4.6
- Lab: Z.ai
- LiteLLM model name: `zai/glm-4.6`
- Context window: 200,000 tokens
- Max output: 128,000 tokens
- Added to LiteLLM: October 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Z.ai | `zai/glm-4.6` | $0.60 | $2.20 | $0.11 | – | – | 200K |
| Baseten | `baseten/zai-org/GLM-4.6` | $0.60 | $2.20 | – | – | – | – |
| DeepInfra | `deepinfra/zai-org/GLM-4.6` | $0.50 | $2.00 | $0.10 | – | – | 198K |
| Fireworks AI | `fireworks_ai/accounts/fireworks/models/glm-4p6` | $0.55 | $2.19 | – | – | – | 203K |
| Novita AI | `novita/zai-org/glm-4.6` | $0.55 | $2.20 | $0.11 | – | – | 200K |
| Together AI | `together_ai/zai-org/GLM-4.6` | $0.60 | $2.20 | – | – | – | 198K |
| Vercel AI Gateway | `vercel_ai_gateway/zai/glm-4.6` | $0.45 | $1.80 | $0.11 | – | – | 200K |

## Cost examples

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

- Z.ai: $2.30
- Vercel AI Gateway: $1.80
- DeepInfra: $2.00
- Fireworks AI: $2.195

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

- Z.ai: $6.44
- Vercel AI Gateway: $4.86
- DeepInfra: $5.40
- Fireworks AI: $5.938

## Features

Supported: Function calling, Parallel tool calls, Structured output, Reasoning, Prompt caching.

## Use it with LiteLLM

```python
from litellm import completion

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

## FAQ

### How much does GLM 4.6 cost?

GLM 4.6 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens on Z.ai, with cache reads at $0.11 and cache writes at $0 per 1M tokens. Across 7 providers on LiteLLM, the input price ranges from $0.45 to $0.60.

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

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

### Which providers offer GLM 4.6?

GLM 4.6 is available from 7 providers through LiteLLM: Z.ai, Baseten, DeepInfra, Fireworks AI, Novita AI, Together AI and Vercel AI Gateway. The lowest price is on Vercel AI Gateway.

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

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

GLM 4.6 supports function calling, parallel tool calls, structured output, reasoning and prompt caching.

### When did LiteLLM add GLM 4.6?

GLM 4.6 was added to LiteLLM's model price file in October 2025.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
