glm-5.2-fast-preview

Alibaba Cloud Singapore International text model; available through the dedicated GLM/Kimi channel after validation.

模型 ID: glm-5.2-fast-preview · 类型: chat · 厂商: Zhipu

可用端点: /v1/chat/completions · /v1/messages · /v1/responses

定价

输入 (每 1M tokens)$1.96 USD
输出 (每 1M tokens)$6.16 USD
缓存命中 (每 1M tokens)$0.392 USD

能力

import os

from openai import OpenAI

client = OpenAI(api_key=os.environ["ROUTER_API_KEY"], base_url="https://api.router.ai/v1")
resp = client.chat.completions.create(
    model="glm-5.2-fast-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

常见问题

glm-5.2-fast-preview 在 国际云宝子(Ai) 上的价格是多少?

glm-5.2-fast-preview (`glm-5.2-fast-preview`) 按用量计费, $1.96/1M in · $6.16/1M out (美元)。最新价格见 https://ai.yunbaozi.com/models/glm-5.2-fast-preview。

怎么通过 国际云宝子(Ai) 调用 glm-5.2-fast-preview?

向 https://api.router.ai/v1/chat/completions 发请求, 带请求头 `Authorization: Bearer <你的 API Key>`, body 里 `"model": "glm-5.2-fast-preview"`。接口与 OpenAI 兼容, 用任何 OpenAI SDK 只需把 base_url 改成 https://api.router.ai/v1, 其余代码不用动。

glm-5.2-fast-preview 支持哪些接口端点?

glm-5.2-fast-preview 可通过以下端点调用: /v1/chat/completions; /v1/messages; /v1/responses.

glm-5.2-fast-preview 的上下文窗口有多大?

glm-5.2-fast-preview 最多接受 1,048,576 个输入 token, 最多返回 131,072 个输出 token。超出输入上限的请求会在到达模型前被拒绝。

glm-5.2-fast-preview 支持哪些能力?

glm-5.2-fast-preview 支持: function_calling, prompt_caching, reasoning, structured_output.

glm-5.2-fast-preview 是哪家厂商的模型?

glm-5.2-fast-preview 是 Zhipu 的 chat 模型, 通过 国际云宝子(Ai) 网关调用, 与其他所有模型共用同一个 API Key。

通过 国际云宝子(Ai) 的 OpenAI 兼容接口调用 (API Base: https://api.router.ai/v1). AI agent 可经 MCP (https://mcp.router.ai/mcp) 查看模型目录并直接调用任意文本模型; 图像、视频等其他模态请走上面的 API.

API 文档 · 全部模型