zhipu/glm-5.2
此入口保留 zhipu/glm-5.2 的 URL 和 API 调用名,请求转发到 GLM-5.3。新接入请使用 zhipu/glm-5.3。推理始终开启,支持 low、high、max 三档 reasoning_effort,不要传 thinking.type=disabled。
来源: official_2026_10_x0.70 · 核验于 2026-10-13
缓存读 $0.182/M · 缓存写 —/M
API 调用时用任一 ID 都可以。
zhipu/glm-5.2把 ONEHOP_KEY 占位符替换为你的 API Key。 创建 →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="zhipu/glm-5.2",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)最近 30 天 173 次请求