MODELS / Z.AI

GLM 5.4

GLM-5.4 on Baseten is Z.ai's first Loop Transformer model, served in fp8, built for coding and agentic work. It accepts text and image input and supports always-on reasoning, tool calling, structured outputs, and automatic prefix caching, with a 1,048,576-token context window.

TEXTREASONINGIMPLICIT-CACHINGSTRUCTURED-OUTPUTTOOL-USEVISION
1.0M
CONTEXT WINDOW
262.1K
MAX OUTPUT TOKENS
$1.40
INPUT PRICE / 1M TOKENS
$4.40
OUTPUT PRICE / 1M TOKENS
QUICKSTART
PROTOCOL:
OPENAI COMPATIBLE
STREAMING:
SUPPORTED

Call it in one request.

OpenAI-compatible: change the base URL, and the setup is complete.

curl https://enterprise.blackbox.ai/v1/chat/completions \
  -H "Authorization: Bearer $BLACKBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "blackboxai/zai/glm-5.4",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
SPECIFICATIONS
CONTEXT:
1.0M
PROVIDER:
Z.AI
TYPE:
TEXT

The full spec sheet.

Context, pricing, modalities, routing, and deployment: everything GLM 5.4 supports, in one table.

MODEL ID
blackboxai/zai/glm-5.4
DEVELOPED BY
Z.AI
MODEL TYPE
Text
RELEASED
Dec 1, 2026
CONTEXT WINDOW
1.0M
MAX OUTPUT TOKENS
262.1K
INPUT MODALITIES
text, image
OUTPUT MODALITIES
text
INPUT PRICE
$1.40 / 1M tokens
OUTPUT PRICE
$4.40 / 1M tokens
CACHE READ
$0.14 / 1M tokens
REASONING
Supported
DATA RETENTION
Standard retention
DEDICATED DEPLOYMENT
Enterprise · single-tenant
SUPPORTED PARAMETERS
max_tokenstemperaturestoptoolstool_choicereasoninginclude_reasoningresponse_formatstructured_outputs