GLM 5.4, Z.ai's latest flagship model, is now available through Baseten Model APIs. It has a 1M-token context window, accepts image and video input, and always reasons, defaulting to high depth. Set reasoning_effort to low, high, or max to control reasoning depth.
Send requests to zai-org/GLM-5.4 through Baseten's OpenAI-compatible endpoint:
curl https://inference.baseten.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $BASETEN_API_KEY" \
-d '{
"model": "zai-org/GLM-5.4",
"messages": [{"role": "user", "content": "Explain the CAP theorem in three sentences."}],
"reasoning_effort": "high"
}'For more information, see our Model APIs docs.