Z.ai
glm-4.7-flashx
Efficient GLM model for fast reasoning, coding, and agent workflows
聚合模态
渠道
每个渠道均使用输入价格最低的档位参与比较,输入同价时比较输出价格。短横线表示 /api/pricing 未提供该费率。选择渠道会更新下方端点与调用示例。
渠道USD / 1M tokens输入输出缓存读取缓存写入
z-ai/glm-4.7-flashx输入
$0.07 USD / 1M tokens
输出
$0.40 USD / 1M tokens
缓存读取
$0.01 USD / 1M tokens
缓存写入
- USD / 1M tokens
端点
POST
/v1/chat/completionsChat Completions发起调用
当前渠道 z-ai/glm-4.7-flashx
1from openai import OpenAI23client = OpenAI(4 base_url="https://www.realrelay.ai/v1",5 api_key="sk-***",6)78response = client.chat.completions.create(9 model="z-ai/glm-4.7-flashx",10 messages=[{"role": "user", "content": "Hello"}],11)1213print(response.choices[0].message.content)1import OpenAI from "openai";23const client = new OpenAI({4 baseURL: "https://www.realrelay.ai/v1",5 apiKey: process.env.REALRELAY_API_KEY,6});78const response = await client.chat.completions.create({9 model: "z-ai/glm-4.7-flashx",10 messages: [{ role: "user", content: "Hello" }],11});1213console.log(response.choices[0].message.content);1curl https://www.realrelay.ai/v1/chat/completions \2 -H "Authorization: Bearer $REALRELAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "z-ai/glm-4.7-flashx",6 "messages": [{ "role": "user", "content": "Hello" }]7 }'价格与可用性为 2026年10月4日 发布的数据。
能力
推理结构化输出工具调用
输入
文本
输出
文本
