All models
Z.ai

GLM-5.1

−30% vs Z.ai
✓ Official API· served byAlibaba Cloud Model StudioAlibaba Cloud

Served by Alibaba Cloud, which may process requests in its data centres in China.

Try in Playground

GLM-5.1 is Z.ai's previous-generation GLM model for coding and agents, with a 200K-token context and tool calling. It reasons when you ask for it and answers directly otherwise.

The real Z.ai model

Same weights, same API, same answers. We change only how you pay for it: one key for every maker, one bill, no separate account to open. Every figure on this page comes from Z.ai’s own page — check it.

Maker's own page

Price

input / output · per 1M tokens

Alibaba Cloud Model StudioAlibaba Cloud

−30%Only on FlintBeam

−30% on every request

Direct on Alibaba Cloud: $0.82 / $3.30

Daily discount. Today's price can change.

$0.82 / $3.30$0.58 / $2.31
More pricing details: speeds and very long prompts

Above 32,000 input tokens through Alibaba Cloud, the whole request costs here: $0.77 / $2.70 (Standard, maker's price $1.10 / $3.85)

Context

200,000

up to 131,072 out

131,072 by default here

Modalities

ToolsReasoning

What it would cost you

1000 tokens is roughly 750 English words.

Estimated total$2.31

How it is served

Standard

Requests are retried automatically if a provider is unavailable.

Similar models

Models built for the same kind of work, at a similar price.

Eligible models may have a daily discount below the maker's price. Daily discounts apply to eligible models and can change from day to day.

Use it from your code

Model:z-ai/glm-5.1
main.py
OpenAI Specification v1.0
from openai import OpenAI

# Works with the official openai package (pip install openai)
client = OpenAI(
    base_url="https://api.flintbeam.com/v1",
    api_key="sk-live-your-api-key"
)

response = client.chat.completions.create(
    model="z-ai/glm-5.1",
    messages=[
        {"role": "system", "content": "You are an experienced software engineer."},
        {"role": "user", "content": "Describe the architecture of a distributed cache."}
    ],
    temperature=0.7,
    max_tokens=1500
)

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