Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

GLM 5.4

z-ai/glm-5.4

GLM-5.4 is Z.ai's flagship model for complex software engineering, long-horizon agent work and code-driven tasks such as game building, video editing and 3D modeling. It is the first GLM built on a Loop Transformer, which runs 28 shared layers of the GLM-5 base model twice to reason more deeply without adding parameters. It always runs with reasoning enabled, accepts text, image, video and file input, and supports a 1M-token context window with up to 128K output tokens.

規格

輸入價格
$1.40美元/100 萬 token
輸出價格
$4.40美元/100 萬 token
快取讀取
$0.26美元/100 萬 token
上下文視窗
1M
最大輸出
128K
Modalities
文字, 圖片文字
發布時間
2026年11月23日
新上線
功能
  • 聊天: 支援
  • 視覺: 支援
  • 推理: 支援
  • 結構化輸出: 支援
  • 函式呼叫: 支援
  • 音訊輸入: 不支援

Prices in 美元/100 萬 token

可用

快速接入

import os

import requests

headers = {"Authorization": f"Bearer {os.environ['SANDBASE_API_KEY']}"}
payload = {
    "model": "z-ai/glm-5.4",
    "messages": [
        {
            "role": "user",
            "content": "Hello",
        },
    ],
    "max_tokens": 2048,
}
response = requests.post(
    "https://api.sandbase.ai/v1/chat/completions",
    headers=headers,
    json=payload,
)
response.raise_for_status()
print(response.json())

問題

常見問題

我要如何透過 SandBase 呼叫 Z.ai GLM 5.4?

先建立一組 SandBase API 金鑰,接著使用模型 ID「z-ai/glm-5.4」向 https://api.sandbase.ai 的 Chat Completions API (/v1/chat/completions) 發送請求。此頁的請求範例會顯示完整的 payload。

Z.ai GLM 5.4 的費用是多少?

每 100 萬個輸入 token $1.40、每 100 萬個輸出 token $4.40,費用會依每次請求從您的 SandBase 餘額中扣除。若有折扣,會顯示在本頁的價格資訊中。

Z.ai GLM 5.4 的 context window 是多少?

1M 個 context token,每次回應最多可輸出 128K 個 output token。

Z.ai GLM 5.4 支援哪些功能?

Z.ai GLM 5.4 支援 視覺辨識(圖片輸入), 推理, 函式呼叫, 結構化輸出。完整清單請參閱上方的 Specifications。

我需要另外申請 Z.ai 帳號嗎?

不需要。一組 SandBase API 金鑰與餘額即可讓您存取 Z.ai GLM 5.4 以及目錄中的其他模型;您不需要另外註冊 Z.ai。