GLM 5.2 Fast Preview API

GLM-5.2-Fast-Preview 是智谱 AI 旗舰模型 GLM-5.2 的高速版本,支持 1M 超长上下文,模型能力对齐 GLM-5.2 标准版,具备逻辑推理、长文本理解与代码生成能力。通过推理加速优化,输出 TPS 可达 GLM-5.2 标准版的 1.5~2 倍,显著提升输出速度,适用于实时对话、Agent 多轮调用、流式代码生成等对输出速度敏感的场景。

glm-5.2-fast-preview

代码示例

from openai import OpenAI

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

快速开始 · Failover · 注册 / 登录 · 全部模型