Skip to content
FluxCDNFluxCDN
esc

Z.ai: GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.

Input
505,568 Toman/M tokens
Output
1,588,440 Toman/M tokens
Context
205K
Max output
131K
Published
Apr 7, 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
Free505,5681,588,440
Pro484,8481,523,340
Max464,1281,458,240

Capabilities

  • Text
  • Tools
  • JSON
  • Reasoning

What it takes and gives

Accepts
  • Text
Creates
  • Text

Call it

Pass z-ai/glm-5.1 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)