Models/z-ai

glm-5.1· Released Apr 7, 2026

z-ai/glm-5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Input
From$1.167/M
Output
From$3.666/M
Context
Up to 205K
Max output
Up to 128K
Modalities
TextText

Input and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.

Upstreams & pricing
UpstreamContextMax outputInput $/1MOutput $/1MCached input $/1MData policy
Zenlayer AI Gateway-openai_compat/GlobalFrom price
205K128K
$1.167
$3.666
$0.217
—
Paratera/CN
205K128K
$1.275
$4.444
$0.317
—

Routed in real time — you pay the listed price of whichever upstream serves your call. Data policies reflect each upstream's own data terms and its agreement with us. We do not independently audit upstream implementations.

How to call
bashrequest.sh
curl https://api.lune.io/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [
      {"role": "user", "content": "Say hello in five words."}
    ]
  }'