| Input length | Input / 1M | Output / 1M | Cache hit / 1M |
|---|---|---|---|
| — - 32k | $0.12 | $0.479 | $0.025 |
| 32k - 200k | $0.159 | $0.558 | $0.032 |
GLM 5.1 CN 在 NextModel 中是什么?
GLM 5.1 CN 是 NextModel 目录中的 Z Ai 模型,常用于 General chat via Z Ai、API workloads 工作负载。当前展示价格为输入 $0.12 / 1M tokens、输出 $0.479 / 1M tokens 每 100 万 token,上下文窗口为 — token。
适用场景
- General chat via Z Ai
- API workloads
OpenAI 兼容调用示例
保持 OpenAI SDK 调用方式不变,把 base_url 改为 NextModel,并使用模型目录 ID z-ai--glm-5.1-cn。
Python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="z-ai/glm-5.1-cn",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)相似替代项
Z Ai目录
GLM 5 CN
80Available through the NextModel gateway via Z Ai.
适用场景General chat via Z Ai, API workloads
路由已配置
流式输出
平台整理NextModel gateway catalog (Go origin)
Z Ai目录
Available through the NextModel gateway via Z Ai.
适用场景General chat via Z Ai, API workloads
路由已配置
流式输出
平台整理NextModel gateway catalog (Go origin)
Moonshotai目录
Available through the NextModel gateway via Moonshotai.
适用场景General chat via Moonshotai, API workloads
路由已配置
流式输出
平台整理NextModel gateway catalog (Go origin)
常见问题