Skip to content
APMIX.AI

Z.ai (GLM) · Model

GLM 5.4 API

New

GLM 5.4 answers at api.apmix.ai under the id below — one key and one monthly plan, on the OpenAI and Anthropic wire formats your tools already speak. No separate Z.ai (GLM) account, no per-provider bill.

Model idzai/glm-5.4ProMax
Get an API key

At a glance

Provider
Z.ai (GLM)
Included in
Pro, Max — from $14.99/month
Weighted-token cost
1.5× — a 1,000-token exchange costs 1.5K weighted tokens
What a month buys
Pro: 133.3M tokens · Max: 333.3M tokens
Context window
1M tokens
Max output
131.1K tokens
Reasoning
Yes — thinks before it answers
Image input
Supported
Tool calling
Supported
On apmix since
November 23, 2026
See what each plan buys on GLM 5.4

Call GLM 5.4

Set the model to glm-5.4 in any OpenAI- or Anthropic-compatible client. Both base URLs accept the same apmix key.

OpenAI-compatible · Chat Completions
curl https://api.apmix.ai/v1/chat/completions \
  -H "Authorization: Bearer apx_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "glm-5.4", "messages": [{"role": "user", "content": "Hello"}]}'
Anthropic-compatible · Messages
curl https://api.apmix.ai/v1/messages \
  -H "x-api-key: apx_live_YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model": "glm-5.4", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'
Setup guides for Claude Code, Codex CLI, Cursor and more

Questions about GLM 5.4

Which plan includes GLM 5.4?
Pro, Max. Each plan is a monthly allowance of weighted tokens shared across every model and every key; GLM 5.4 counts at 1.5× per token.
How do I use GLM 5.4 in Claude Code, Codex CLI or Cursor?
Point the tool at apmix — https://api.apmix.ai/v1 for OpenAI-compatible clients, https://api.apmix.ai for Anthropic-compatible ones — with your apmix key, and set the model to glm-5.4. The Docs page has copy-paste setup for each tool.

More Z.ai (GLM) models