GLM

GLM-5.4

Z.ai's GLM-5.4, a GLM-5-series model with a 1M-token context, image input, thinking modes and tool calling, built for coding and long-horizon agent work.

Model ID

z-ai/glm-5.4
Context window
1M
tokens
Max output
131K
tokens
Input
$1.40
per 1M tokens
Output
$4.40
per 1M tokens

Cache read $0.26

Quickstart

Call GLM-5.4 in one request.

Point the SDK you already use at xKiro and pass the model ID. The same key works for every model in the catalog.

SDK guides
main.py
import osfrom openai import OpenAI client = OpenAI(    api_key=os.environ["XKIRO_API_KEY"],    base_url="https://api.xkiro.com/v1",) res = client.chat.completions.create(    model="",    messages=[        {"role": "user", "content": "Explain HTTP caching in two sentences."},    ],) print(res.choices[0].message.content)
Response · Example

✓ 200 OK

"model": "z-ai/glm-5.4"

HTTP caching stores copies of responses so later requests can be served without contacting the origin server. Headers such as Cache-Control and ETag decide how long a copy stays fresh and how it is revalidated.

14 input · 42 output tokens · $0.0002 at this model’s rates

Create an API key in the dashboard and export it as XKIRO_API_KEY.

Pricing

What GLM-5.4 costs.

Billed per million tokens at these rates, from your plan’s budget or your wallet.

  • $1.40

    Input

    per 1M tokens

  • $4.40

    Output

    per 1M tokens

  • $0.26

    Cache read

    per 1M tokens

Billed fairly

  • A request that fails before any output is generated is never billed
  • An identical blocking request retried within two minutes replays the first result — no double charge
  • If a stream breaks off or you cancel it, you pay only up to that point

Specifications

Limits and capabilities.

Context window
1,000,000 tokens
Max output
131,072 tokens
Input
Text · Image
Output
Text
Provider
GLM
Model ID
z-ai/glm-5.4
Good for
Coding · Long context

Capabilities

  • Tool useSupported
  • VisionSupported
  • Video inputNot supported
  • ReasoningSupported

Reasoning effort

  1. none
  2. minimal
  3. low
  4. medium
  5. high
  6. xhigh
  7. max

Set it with reasoning_effort in the OpenAI format, or thinking in the Anthropic format.

Reasoning guide

Supported parameters

  • max_tokens
  • temperature
  • top_p
  • stop
  • frequency_penalty
  • presence_penalty
  • seed
  • stream
  • tools
  • tool_choice
  • response_format
  • structured_outputs
  • reasoning
  • include_reasoning

Compare

Similar models.

Closest in price and context window — same provider first, then alternatives from other providers.

Browse all 71 models
GLM-5.4 compared with similar models, prices per 1M tokens
ModelInput / 1MOutput / 1M
GLM-5.4This modelVision · Reasoning · Tool use1M$1.40$4.40$0.26
GLM-5.2Reasoning · Tool use1M$1.40$4.40$0.26
GLM-5.3Reasoning · Tool use1M$1.40$4.40$0.26
GLM-5.3 FlashXVision · Reasoning · Tool use1M$0.37$1.25$0.075
Sonnet 5Vision · Reasoning · Tool use1M$2$10$0.2
Sonnet 5.5NewVision · Reasoning · Tool use1M$2$10$0.1
GPT-5.6 SolVision · Reasoning · Tool use1M$2$10$0.2
modelz-ai/glm-5.4

Start building with GLM-5.4.

Create a key, point your SDK at xKiro and call z-ai/glm-5.4.

No credit card · No auto-renewal · 26 free models