Z.ai

GLM-4.7 Flash

GLM-4.7 Flash is Z.ai's fast, low-cost model for high-volume work. It takes up to 198K tokens of context and writes up to 131K per response.

Streaming

Output price

$0.252

USD / 1M tokens

37% below list price

Add $5, get $5 more on your first top-up.

Same GLM-4.7 Flash. 37% less.

Price
USD / 1M tokens, next to Z.ai's list price.
TokensList pricePromptsForLess
Input$0.07$0.0441
Output$0.40$0.252
Your monthly bill
Enter your monthly usage to see the difference.
At list price$1.50
With PromptsForLess$0.945

That's $0.555 saved every month.

USD, before tax and prompt caching.

Specs.

Model ID
glm-4.7-flash
Made by
Z.ai
Context window
198K tokens
Max output
131K tokens
Endpoint
/v1/chat/completions
Billing
Per token, from one balance
Built for
  • Text and code. Drafting, summarising, extraction, chat and code, with the output streamed back as it is generated.

Edge gateways

Requests enter at the gateway nearest your app and go straight to the model, so routing adds very little to each call.

One key, every model

Switch models by changing a string. One prepaid balance covers all of them, billed per token.

Nothing stored

We keep token counts for billing, never your prompts or responses.

Call GLM-4.7 Flash in a minute.

Point any OpenAI-compatible client at our base URL, keep your key in an environment variable, and use the model ID glm-4.7-flash.

Copy
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.promptsforless.com/v1",
    api_key=os.environ["PFL_API_KEY"],
)

response = client.chat.completions.create(
    model="glm-4.7-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

More from Z.ai.

Questions.

How much does GLM-4.7 Flash cost?

$0.252 / 1M tokens output and $0.0441 / 1M tokens input, 37% below Z.ai's list price. You pay per token from a prepaid balance, with no subscription or minimum. We match your first $5 top-up, so you start with $10 of credit.

Is it the real GLM-4.7 Flash?

Yes. Your requests run on Z.ai's GLM-4.7 Flash, not a distilled copy or a substitute. The discount comes from how we buy capacity, not from changing the model.

Which tools can use GLM-4.7 Flash?

Anything that speaks the OpenAI API: set the base URL to our endpoint and use the model ID glm-4.7-flash. We have setup guides for Cursor, Codex, OpenCode, the OpenAI and Vercel AI SDKs, LangChain and more.

How fast is it?

Requests go through our edge gateways, so the network hop adds very little on top of GLM-4.7 Flash's own generation time. Responses stream back token by token.