GLM-5.4
glm-5.4reasoning dialGLM-5.4 by Z.ai is available through model.lol's OpenAI-, Anthropic- and Gemini-compatible API under the model id glm-5.4. It costs $0.34 per million input tokens and $1.1 per million output tokens ($0.062 per million cached input tokens), charged per token from a prepaid balance. That is 76% below Z.ai's official API price. Context window: 1,048,576 tokens. Supports the reasoning dial: append -low, -medium, -high, -thinking, -nothinking to the id.
- Input
- $0.34per 1M tokens
- Output
- $1.1per 1M tokens
- Cached input
- $0.062per 1M tokens
- Vs official price
- −76%input price
- Context window
- 1M1,048,576 tokens
| Vendor | Z.ai |
|---|---|
| Prompt-cache writes | $0.425 (5 min) / $0.68 (1 hour) per 1M tokens: 1.25× and 2× the input price |
| Reasoning dial | glm-5.4-low glm-5.4-medium glm-5.4-high glm-5.4-thinking glm-5.4-nothinking |
| Added to the catalog | 2026-11-28 |
| Catalog entry updated | 2026-11-29 |
Prices are what a prepaid model.lol balance is charged per token; every answer reports the exact amount in usage.cost. A refused or moderated request also carries a violation fee (see billing). Signed-in accounts in a pricing group see their group rate on /pricing.
Call it
$ curl https://api.model.lol/v1/chat/completions \ -H "Authorization: Bearer ml-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.4", "messages": [{"role": "user", "content": "hi"}] }'
OpenAI SDKs: base_url = https://api.model.lol/v1. Anthropic SDKs and POST /v1/messages take the same id, and so does Claude Code:
export ANTHROPIC_BASE_URL=https://api.model.lol export ANTHROPIC_AUTH_TOKEN=ml-your-key claude --model glm-5.4
Gemini SDKs, the Responses API, streaming and tool calls: see the docs.