# GLM Flash API Pricing

As of November 21, 2026, GLM Flash costs $0.15 per 1M input tokens and $0.50 per 1M output tokens on Fireworks AI, with cache reads at $0.03 per 1M tokens. It has a 1,048,576-token context window and returns up to 1,048,576 tokens per response.

- Page: https://models.litellm.ai/models/glm-flash
- Lab: Z.ai
- LiteLLM model name: `fireworks_ai/accounts/fireworks/routers/glm-flash-latest`
- Context window: 1,048,576 tokens
- Max output: 1,048,576 tokens
- Added to LiteLLM: September 18, 2026
- Prices updated: November 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Fireworks AI (latest alias) | `fireworks_ai/accounts/fireworks/routers/glm-flash-latest` | $0.15 | $0.50 | $0.03 | – | – | 1M |

## Cost examples

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

- Fireworks AI: $0.55

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

- Fireworks AI: $1.60

## Features

Supported: Function calling, Structured output, Image input.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="fireworks_ai/accounts/fireworks/routers/glm-flash-latest",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## Cost calculator

10,000 requests a day with 1,000 input and 500 output tokens each, at Fireworks AI's price: $0.0004 per request, $4.00 per day, $120 per month (30 days). Try other numbers at https://models.litellm.ai/calculator?model=glm-flash

## FAQ

### How much does GLM Flash cost?

GLM Flash costs $0.15 per 1M input tokens and $0.50 per 1M output tokens on Fireworks AI, with cache reads at $0.03 per 1M tokens.

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

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

### Which providers offer GLM Flash?

GLM Flash is available from Fireworks AI through LiteLLM, using the model name fireworks_ai/accounts/fireworks/routers/glm-flash-latest.

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

Use the LiteLLM Python SDK with model="fireworks_ai/accounts/fireworks/routers/glm-flash-latest", 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 Flash support?

GLM Flash supports function calling, structured output and image input.

### When did LiteLLM add GLM Flash?

GLM Flash was added to LiteLLM's model price file on September 18, 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.
