品牌
智谱 GLM
模型详情
通过无限星河AI(Infistar)调用 智谱 GLM 的 glm-4.7-flashx:查看精确模型 ID、兼容端点(openai)、透明人民币价格与快速接入示例。
精确模型 IDglm-4.7-flashx
智谱 GLM
openai
text
按实际 Token 用量结算
输入 ¥0.5 / 输出 ¥3(每百万 tokens),缓存读取 ¥0.1
官方价:输入 ¥0.5 / 输出 ¥3
使用统一 API Key 通过 POST /v1/chat/completions 调用 glm-4.7-flashx:
curl https://infistar.cc/v1/chat/completions \
-H "Authorization: Bearer $INFISTAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-4.7-flashx","messages":[{"role":"user","content":"Hello"}]}'from openai import OpenAI
client = OpenAI(api_key="YOUR_INFISTAR_KEY", base_url="https://infistar.cc/v1")
res = client.chat.completions.create(model="glm-4.7-flashx", messages=[{"role": "user", "content": "Hello"}])
print(res.choices[0].message.content)模型和价格可能调整。请登录账户确认可用模型,并在调用前查看当前价格。