Z.ai · Chat Completions

GLM 5.3 API

Z.ai's GLM. Good at coding and step-by-step reasoning. Served through RouterHub at $0.15 input / $0.4714 output per million tokens (prices as of ).

GLM 5.3 pricing

−89% vs the official API price of $1.40 input / $4.40 output per 1M tokens (source, checked 2026-10-13).

Input
$0.15
Cached input
$0.1166
Output
$0.4714
Typical message
≈ 0.039¢

USD per 1 million tokens. A typical message is about 1,000 input and 500 output tokens. Cached input uses the cache-read rate when the provider reports a cache hit. Billed from your prepaid balance.

Compare GLM 5.3 variants

RouterHub token prices, USD per 1 million tokens
Model / exact API IDInput / 1MCached / 1MOutput / 1MContextActions
GLM 5.3glm-5.3 $1.40$0.15−89% $0.12 $4.40$0.47 1M Chat
GLM 5.3 UncensoredUncensoredglm-5.3-uncensored $1.40$0.20−85% $0.12 $4.40$0.63 1M Chat
GLM 5.3 AbliteratedAbliteratedglm-5.3-abliterated $1.40$0.40−70% $0.16 $4.40$1.33 1M Chat

API compatibility and context

Exact model ID
glm-5.3
Provider
Z.ai
Variant
Standard
Supported API
OpenAI-compatible Chat Completions API (/v1/chat/completions)
Availability
Preview
Context window
1,000,000 tokens
Maximum input
Not published
Maximum output
128,000 tokens

Use GLM 5.3 through the API

Create a RouterHub account, add prepaid credits and create an API key. Set ROUTERHUB_API_KEY locally, then send a first request with the exact model ID.

cURL
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'

Python: install openai with pip. The example requests 256 output tokens and disables automatic retries, so check Usage before resending a paid request.

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ROUTERHUB_API_KEY"],
    base_url="https://routerhub.si/v1",
    timeout=600.0,
    max_retries=0,
)
response = client.chat.completions.create(
    model="glm-5.3",
    messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
    max_tokens=256,
)
print(response.choices[0].message.content)

Coding tools that work with GLM 5.3

Common questions

What is GLM 5.3?

GLM 5.3 is a Z.ai language model served through RouterHub using the OpenAI-compatible Chat Completions API. Its exact API model ID is glm-5.3.

How much does GLM 5.3 cost?

RouterHub charges $0.15 input, $0.1166 cached input and $0.4714 output per million tokens (prices as of 2026-11-08). A typical chat message of about 1,000 input and 500 output tokens costs about 0.039¢. Usage is billed against your prepaid balance.

What is the GLM 5.3 context window?

Context window: 1,000,000 tokens. Maximum input: Not published. Maximum output: 128,000 tokens.

Which API does GLM 5.3 support?

Use the OpenAI-compatible Chat Completions API at https://routerhub.si/v1/chat/completions with the exact model ID glm-5.3 and your RouterHub API key (Authorization: Bearer header).

Which coding tools work with GLM 5.3?

OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent. Each setup guide lists only compatible model IDs.

Can I try GLM 5.3 for free?

GLM 5.3 needs a free RouterHub account with prepaid credits. New accounts get $5 free on their first top-up of $20 or more.

Related models and guides