Z.ai

GLM-5.2

GLM-5.2 is Z.ai's general-purpose model. It reasons step by step before it answers. It takes up to 1.05M tokens of context and writes up to 131.07K per response.

ReasoningStreaming

Output price

$2.20

USD / 1M tokens

50% below list price

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

Same GLM-5.2. 50% less.

Price
USD / 1M tokens, next to Z.ai's list price.
TokensList pricePromptsForLess
Input$1.40$0.70
Output$4.40$2.20
Your monthly bill
Enter your monthly usage to see the difference.
At list price$22.80
With PromptsForLess$11.40

That's $11.40 saved every month.

USD, before tax and prompt caching.

Specs.

Model ID
glm-5.2
Made by
Z.ai
Context window
1.05M tokens
Max output
131.07K 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.
  • Reasoning. Works through multi-step problems before answering, for planning, analysis and agent workflows.

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-5.2 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-5.2.

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-5.2",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

More from Z.ai.

Questions.

How much does GLM-5.2 cost?

$2.20 / 1M tokens output and $0.70 / 1M tokens input, 50% 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-5.2?

Yes. Your requests run on Z.ai's GLM-5.2, 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-5.2?

Anything that speaks the OpenAI API: set the base URL to our endpoint and use the model ID glm-5.2. 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-5.2's own generation time. Responses stream back token by token.