Z.ai · Text
GLM-4.7 FlashX API pricing
zai/glm-4.7-flashx
Fast small GLM. GLM-4.7 FlashX by Z.ai, routed through INFRO on a Z.ai account you connect — alongside every other provider you run. Z.ai bills you for it directly, on that account and at your own rate. INFRO adds routing, failover, request logs, cost attribution and policy around it, and takes no part of what you pay Z.ai.
Pricing
Z.ai rate
$0.152
per 1M tokens, billed to you by Z.ai
INFRO adds
$0
0% markup on model spend
Per-token rates
$0.07 / 1M input tokens·$0.40 / 1M output tokens
The headline figure above is these two blended at a 3:1 input:output ratio, so one number is comparable across modalities. Your own ratio will move it.
Calling GLM-4.7 FlashX
POST /v1/chat/completionsimport os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
response = client.chat.completions.create(
model="zai/glm-4.7-flashx",
messages=[{"role": "user", "content": "Hello"}],
)What this modality supports
- Streaming
- Tool calling
- Structured outputs
- Prompt caching
Frontier and open-weight language models behind an OpenAI-compatible endpoint. Streaming, tool calling, structured outputs, and vision pass straight through — and prompt caching is priced at the provider's own cached rate.
Providers that serve GLM-4.7 FlashX
You request "zai/glm-4.7-flashx" from INFRO; it sends each provider the id that provider expects. Connect your own account with any of them, and INFRO routes and fails over between the ones you connect.
| Provider | Model id sent |
|---|---|
| OpenRouter | zai/glm-4.7-flashx |
| Z.ai (GLM) | glm-4.7-flashx |
Alternatives for fast small glm
Same modality, nearest in price. All of them share the request shape above, so comparing them is a one-word change.
More Z.ai models
All Z.ai modelsGLM-4.7 FlashX: questions
- How much does the GLM-4.7 FlashX API cost?
- Z.ai's published list rate for GLM-4.7 FlashX is $0.07 per 1M input tokens and $0.40 per 1M output tokens, with cached input at $0.01 per 1M tokens (checked 2026-10-05). The provider account you connect bills you at the rate on that account, so a negotiated rate replaces the list rate. INFRO adds 0% to model spend.
- Which providers serve GLM-4.7 FlashX?
- In INFRO's provider registry, GLM-4.7 FlashX can be served by OpenRouter and Z.ai (GLM). You connect your own account with any of them, and INFRO routes and fails over between the ones you connect.
- What is the GLM-4.7 FlashX model ID?
- Request it from INFRO as "zai/glm-4.7-flashx". INFRO sends each provider its own id: OpenRouter "zai/glm-4.7-flashx", Z.ai (GLM) "glm-4.7-flashx".
- How do I call GLM-4.7 FlashX through an OpenAI-compatible API?
- Point an OpenAI SDK, or any HTTP client, at https://api.infro.io/v1 with an INFRO gateway key and send model "zai/glm-4.7-flashx" to POST /v1/chat/completions. INFRO runs the request on a provider account you connected and returns the provider's response with an estimated cost.
- Does INFRO mark up GLM-4.7 FlashX usage?
- No. Z.ai or the provider you connect bills model usage to your own account. INFRO charges a software subscription for routing, failover, observability, budgets and policy, and takes 0% of model spend.
Work out what GLM-4.7 FlashX would cost you
Put your monthly usage of this model into the calculator to see the provider cost on your own account and the INFRO subscription side by side, never summed.