GLM 5.4 is now available on the FastMetal API
GLM 5.4 is available on the FastMetal API and in chat as glm-5.4. Z.ai opened its API to developers on December 2, 2026, and it is now the flagship of the GLM line.
What's new
- A looped Transformer. Z.ai says the model runs 28 layers of the GLM-5 base model twice, and claims performance comparable to models with 2 to 3 trillion parameters. That is the lab's own claim.
- Image input alongside text. We checked it with real images before launch.
- A 1M-token context window, enough for a large codebase or a full document set.
- Tool calling and strict JSON schema output, both checked with real requests. Use
tool_choice: "auto"for tools: forcing a specific function by name does not work on this model yet. - It reasons before answering, and reasoning tokens count as output tokens.
How to use it
Call it through the OpenAI-compatible API with the model id glm-5.4.
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Authorization: Bearer $FASTMETAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.4",
"messages": [{"role": "user", "content": "Suggest three improvements to this screen layout."}]
}'
It is also in the chat model list, where you can attach images to a message.
Pricing
Billed per million input and output tokens, with a lower rate for cached input. The current rates are on the model page. FastMetal is prepaid, so you are never charged beyond the balance you loaded.
See real answers first
The model page shows GLM 5.4's actual answers to FastMetal's shared set of prompts, next to answers from GLM 5.3 and other models.
Browse every model in the catalog, or see how billing works on the pricing page.