GLM-5.2 API Zhipu AI

GLM-5.2 is a text generation model from Zhipu AI. Call it through TokenMaster with the model ID zhipu/glm-5.2 from any OpenAI SDK or tool — one API key, one balance, and you pay only for the tokens you use.

Pricing USD per 1M tokens

Input$1.68
Cached input$0.312
Output$5.28

Billed per token from a prepaid balance. Top up from $10 with USDT; no subscription, no minimum monthly spend.

What it costs

One chat turn (1,000 input + 500 output tokens)$0.00432
Summarise a long document (50,000 input + 2,000 output tokens)$0.09456
1,000 chat turns a day for 30 days$129.60

Estimates at standard prices, before any cache discount.

Quickstart

Create an API key in the console, then send a standard Chat Completions request with model set to zhipu/glm-5.2.

curl https://tokenmaster.store/v1/chat/completions \
  -H "Authorization: Bearer $TOKENMASTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "zhipu/glm-5.2", "messages": [{"role": "user", "content": "Hello!"}]}'
from openai import OpenAI

client = OpenAI(base_url="https://tokenmaster.store/v1", api_key="tm-...")
resp = client.chat.completions.create(
    model="zhipu/glm-5.2",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Details

Model ID
zhipu/glm-5.2
Developer
Zhipu AI
Type
text generation
Origin
China
Smart routing
In the tokenmaster/auto candidate pool — the router can pick it automatically when it is the best value for a request.
Web search
Add "web_search": true or use zhipu/glm-5.2:online to let the model search the web and cite sources.
Availability
Available to accounts in every supported country and region.

More from Zhipu AI

Similar price

All model prices → · All integration guides →