Skip to content
FluxCDNFluxCDN
esc

Z.ai: GLM 5.2

GLM 5.2 is a large-scale reasoning model from Z.ai.

Input
225,456 Toman/M tokens
Output
874,496 Toman/M tokens
Context
1M
Max output
944K
Published
Jun 16, 2026
Maker
Z.ai

Free plan prices, in Toman at today's rate. Plans and prices

Price by plan

Toman per million tokens at today's rate. A plan lowers the price of your usage up to a limit each period.

PlanInputOutput
Free225,456874,496
Pro216,216838,656
Max206,976802,816

Capabilities

  • Text
  • Tools
  • JSON
  • Reasoning

What it takes and gives

Accepts
  • Text
Creates
  • Text

Call it

Pass z-ai/glm-5.2 as the model name, or let router/auto choose for you.

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://ai.fluxcdn.cloud/api/v1",
    api_key=os.environ["FLUXCDN_API_KEY"],
)

resp = client.chat.completions.create(
    model="router/auto",
    messages=[{"role": "user", "content": "Hello"}],
)

print(resp.choices[0].message.content)