GLM API Pricing
- Input / output
- $1.40 / $4.40 per 1M tokens
- Cache read
- $0.26 / 1M
- Context
- 1M tokens
- Max output
- 128K tokens
As of November 21, 2026, GLM costs $1.40 per 1M input tokens and $4.40 per 1M output tokens on Fireworks AI, with cache reads at $0.26 per 1M tokens. It has a 1,048,576-token context window and returns up to 128,000 tokens per response.
GLM pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| Fireworks AIlatest alias | fireworks_ai/accounts/fireworks/routers/glm-latest | $1.40 | $4.40 | $0.26 | 1M |
Other GLM prices on Fireworks AI
| Priority input | $1.75 per 1M tokens |
| Priority output | $5.50 per 1M tokens |
What GLM costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Fireworks AI | $5.00 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Fireworks AI | $14.88 |
GLM cost calculator
At Fireworks AI'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 features
Input: text. Output: text.
- Function calling
- Structured output
- Image input
- Reasoning
Use GLM with LiteLLM
Call GLM 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.
from litellm import completion
response = completion(
model="fireworks_ai/accounts/fireworks/routers/glm-latest",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: glm
litellm_params:
model: fireworks_ai/accounts/fireworks/routers/glm-latest
api_key: os.environ/FIREWORKS_AI_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "glm",
"messages": [{"role": "user", "content": "Hello!"}]
}'GLM FAQ
How much does GLM cost?
GLM costs $1.40 per 1M input tokens and $4.40 per 1M output tokens on Fireworks AI, with cache reads at $0.26 per 1M tokens.
What is the context window of GLM?
GLM has a 1,048,576-token context window and returns up to 128,000 tokens per response.
Which providers offer GLM?
GLM is available from Fireworks AI through LiteLLM, using the model name fireworks_ai/accounts/fireworks/routers/glm-latest.
How do I call GLM with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="fireworks_ai/accounts/fireworks/routers/glm-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 support?
GLM supports function calling, structured output and reasoning. It does not support image input.
When did LiteLLM add GLM?
GLM was added to LiteLLM's model price file on September 18, 2026.
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: Fireworks AI.
Provider pages: Fireworks AI.