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 key,然后向 https://api.sandbase.ai 的 Chat Completions API (/v1/chat/completions) 发送请求,模型 ID 使用“z-ai/glm-5.4”。本页的请求示例展示了准确的请求负载。

Z.ai GLM 5.4 的价格是多少?

每 100 万输入 token $1.40、每 100 万输出 token $4.40,按请求从您的 SandBase 余额中扣费。若有折扣,会在本页的定价中显示。

Z.ai GLM 5.4 的上下文窗口是多少?

上下文为 1M 个 token,每次响应最多输出 128K 个 token。

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

Z.ai GLM 5.4 支持 视觉(图像输入), 推理, 函数调用, 结构化输出。完整列表请参见上方 Specifications。

我需要单独的 Z.ai 账户吗?

不需要。一个 SandBase API key 和余额即可让您使用 Z.ai GLM 5.4 以及目录中的其他模型;您无需单独注册 Z.ai。