LiteLLMModels

GLM 5p2 Fast API Pricing

As of October 10, 2026, GLM 5p2 Fast costs $2.10 per 1M input tokens and $6.60 per 1M output tokens from Fireworks AI, the lowest of 2 providers, with cache reads at $0.21 per 1M tokens. It has a 1,048,576-token context window and returns up to 131,072 tokens per response.

By Z.aiModel ID fireworks_ai/glm-5p2-fastPrices updated Checked
Deprecated: Fireworks AI lists September 25, 2026 as the deprecation date for fireworks_ai/glm-5p2-fast.
Input
$2.10 / 1M tokens
Output
$6.60 / 1M tokens
Cache read
$0.21 / 1M tokens
Context window
1,048,576 tokens
Max output
131,072 tokens
Providers
2
Added to LiteLLM
August 20, 2026

GLM 5p2 Fast pricing by provider

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

ProviderModel name in LiteLLMInputOutputCache readContext
Fireworks AIfireworks_ai/glm-5p2-fast$2.10$6.60$0.211M
Basetenbaseten/zai-org/GLM-5.2-Fast$2.10$6.60$0.211M
Fireworks AIfireworks_ai/accounts/fireworks/routers/glm-5p2-fast$2.10$6.60$0.211M

What GLM 5p2 Fast costs in practice

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

Fireworks AI$7.50
Baseten$7.50

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

Fireworks AI$22.32
Baseten$22.32

GLM 5p2 Fast features

Use GLM 5p2 Fast with LiteLLM

Call GLM 5p2 Fast 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="fireworks_ai/glm-5p2-fast",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: glm-5p2-fast
    litellm_params:
      model: fireworks_ai/glm-5p2-fast
      api_key: os.environ/FIREWORKS_AI_API_KEY
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-5p2-fast",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

GLM 5p2 Fast FAQ

How much does GLM 5p2 Fast cost?

GLM 5p2 Fast costs $2.10 per 1M input tokens and $6.60 per 1M output tokens from Fireworks AI, the lowest of 2 providers, with cache reads at $0.21 per 1M tokens.

What is the context window of GLM 5p2 Fast?

GLM 5p2 Fast has a 1,048,576-token context window and returns up to 131,072 tokens per response.

Which providers offer GLM 5p2 Fast?

GLM 5p2 Fast is available from 2 providers through LiteLLM: Fireworks AI and Baseten.

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

Use the LiteLLM Python SDK with model="fireworks_ai/glm-5p2-fast", 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 5p2 Fast support?

GLM 5p2 Fast supports function calling, structured output, reasoning and prompt caching. It does not support image input.

When did LiteLLM add GLM 5p2 Fast?

GLM 5p2 Fast was added to LiteLLM's model price file on August 20, 2026.

Is GLM 5p2 Fast being deprecated?

Fireworks AI deprecated fireworks_ai/glm-5p2-fast on September 25, 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. Provider pricing pages:

LiteLLM docs: Fireworks AI, Baseten.

Provider pages: Fireworks AI, Baseten.