LiteLLMLiteLLM/ MODELS

GLM 4.7 Flashx API Pricing

By Z.ai · 1 providerempiriolabs/glm-4-7-flashxCompare
Input / output
$0.07 / $0.40 per 1M tokens
Cache read
$0.063 / 1M
Context
198K tokens
Max output
128K tokens

As of November 7, 2026, GLM 4.7 Flashx costs $0.07 per 1M input tokens and $0.40 per 1M output tokens on EmpirioLabs AI, with cache reads at $0.063 per 1M tokens. It has a 202,752-token context window and returns up to 131,072 tokens per response.

Prices updated Checked

GLM 4.7 Flashx 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.

GLM 4.7 Flashx prices by provider in US dollars, token prices per 1M tokens, as of November 7, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
EmpirioLabs AIempiriolabs/glm-4-7-flashx$0.07$0.40$0.063198K

Other GLM 4.7 Flashx prices on EmpirioLabs AI

Web search$33.00 per 1K searches

What GLM 4.7 Flashx costs in practice

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

EmpirioLabs AI$0.34

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

EmpirioLabs AI$0.78

GLM 4.7 Flashx cost calculator

At EmpirioLabs AI's price ($0.07 input, $0.40 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $2.70 a day, about $81.00 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.00027
Per day
$2.70
Per month (30 days)
$81.00

GLM 4.7 Flashx features

Input: text. Output: text.

Use GLM 4.7 Flashx with LiteLLM

Call GLM 4.7 Flashx 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="empiriolabs/glm-4-7-flashx",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: glm-4-7-flashx
    litellm_params:
      model: empiriolabs/glm-4-7-flashx
      # 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-4-7-flashx",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

GLM 4.7 Flashx FAQ

How much does GLM 4.7 Flashx cost?

GLM 4.7 Flashx costs $0.07 per 1M input tokens and $0.40 per 1M output tokens on EmpirioLabs AI, with cache reads at $0.063 per 1M tokens.

What is the context window of GLM 4.7 Flashx?

GLM 4.7 Flashx has a 202,752-token context window and returns up to 131,072 tokens per response.

Which providers offer GLM 4.7 Flashx?

GLM 4.7 Flashx is available from EmpirioLabs AI through LiteLLM, using the model name empiriolabs/glm-4-7-flashx.

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

Use the LiteLLM Python SDK with model="empiriolabs/glm-4-7-flashx", 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.7 Flashx support?

GLM 4.7 Flashx supports function calling, structured output, reasoning, prompt caching and web search.

When did LiteLLM add GLM 4.7 Flashx?

GLM 4.7 Flashx was added to LiteLLM's model price file on November 4, 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: EmpirioLabs AI.

Provider pages: EmpirioLabs AI.