Z.aiChat Completions

GLM 5.4 Uncensored API

GLM 5.4 Uncensored from Z.ai, served through RouterHub on the OpenAI-compatible Chat Completions API.

On this page

GLM 5.4 Uncensored API pricing

Pay per token from prepaid credits. No subscription.

USD per 1 million tokens
Token typeRouterHub
Input$0.40
Output$1.257
Cached input$0.07429
Cache write$0.40

Compatible with the tools you already use

One key, one base URL. OpenAI and Anthropic compatible.

GLM 5.4 Uncensored uses Chat Completions. See the tools that support this model.

Start for free

Plus up to $5 bonus credit on your first top-up.

Context window and API compatibility

GLM 5.4 Uncensored uses the OpenAI-compatible Chat Completions API over POST /v1/chat/completions and has a context window of 1,000,000 tokens. Use model ID glm-5.4-uncensored in requests.

Exact model ID
glm-5.4-uncensored
Provider
Z.ai
Variant
Uncensored
Supported API
OpenAI-compatible Chat Completions API (/v1/chat/completions)
Availability
Available
Context window
1,000,000 tokens
Maximum input
Not published
Maximum output
128,000 tokens
Input types
text
Coding tools
OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent

Make your first API request

Set ROUTERHUB_API_KEY locally, then send a request with the exact model ID below.

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.4-uncensored","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'

Python: install openai with pip. This example requests 256 output tokens and disables automatic retries. 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.4-uncensored",
    messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
    max_tokens=256,
)
print(response.choices[0].message.content)

Compare GLM 5.4 variants

RouterHub token prices, USD per 1 million tokens
Model / exact API IDInput / 1MCached / 1MOutput / 1MContextActions
GLM 5.4glm-5.4 $0.30 $0.056 $0.94 1M Chat
GLM 5.4 UncensoredUncensoredglm-5.4-uncensored $0.40 $0.074 $1.26 1M Chat

Common questions

What is GLM 5.4 Uncensored?

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

How much does GLM 5.4 Uncensored cost?

RouterHub charges $0.40 input, $0.07429 cached input and $1.257 output per million tokens (prices as of 2026-11-22). A typical chat message of about 1,000 input and 500 output tokens costs about 0.10¢. Usage is billed against your prepaid balance.

What is the GLM 5.4 Uncensored context window?

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

Which API does GLM 5.4 Uncensored support?

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

Which coding tools work with GLM 5.4 Uncensored?

OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent. These tools support this model’s Chat Completions endpoint with the configurations in their setup guides.

Can I try GLM 5.4 Uncensored for free?

GLM 5.4 Uncensored 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