glm-4.7
关于 glm-4.7
GLM-4.7 is Zhipu (GLM)'s latest flagship model. Targeting Agentic Coding scenarios, it strengthens coding capabilities, long-horizon task planning, and tool coordination, achieving leading performance among open-source models on multiple current public benchmarks. General capabilities are improved, with more concise and natural responses and more immersive writing.
各路由分组价格
创建 Key 时可在控制台选择分组,状态实时来自路由。 查看各分组实时状态 →
| 分组 | 分组状态 | 模型状态 | 倍率 | 输入 | 输出 | 缓存读取 | 缓存写入 |
|---|---|---|---|---|---|---|---|
Alibaba-1 | … | ×0.845 | $0.5915 | $2.76 | $0.3549 | — | |
Alibaba-2 | … | ×1.2675 | $0.8872 | $4.141 | $0.5323 | — | |
Alibaba-3 | … | ×1.859 | $1.301 | $6.073 | $0.7808 | — |
USD / 百万 Token
长上下文计价
- 输入超过 32,000 Token:输入 ×1.3334,输出 ×1.143
- 输入超过 32,000 Token:输入 ×2,输出 ×2
支持的接口
openai
一个请求调用 glm-4.7
兼容 OpenAI SDK 及任何 OpenAI 格式的客户端,把 Key 换成你自己的即可。
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="glm-4.7",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "glm-4.7",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);关于 glm-4.7 的常见问题
glm-4.7 在 NixAPI 上多少钱?
在 Alibaba-1 分组下,输入低至每百万 Token $0.5915,输出低至每百万 Token $2.76,比官方价低约 16%。按量付费,以美元计价,没有月最低消费。
如何调用 glm-4.7?
把任意兼容 OpenAI 格式的客户端指向 https://api.nixapi.com/v1,使用你的 NixAPI Key,并把 model 设为 "glm-4.7" 即可。
哪些路由分组提供 glm-4.7?
glm-4.7 可在 3 个路由分组中使用:Alibaba-1、Alibaba-2、Alibaba-3。其中 Alibaba-1 分组价格最低。