GLM-4.6 的迭代引入了保留推理和基於回合的推理,以便在複雜的多輪任務上實現更穩定的執行。200K 上下文。
相容 OpenAI——沿用你現有的 SDK
https://api.orcarouter.ai/v1from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key="$ORCAROUTER_API_KEY",
)
response = client.chat.completions.create(
model="z-ai/glm-4.7",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)do_sampleinclude_reasoningmax_tokensreasoningrequest_idresponse_formatstopstreamtemperaturethinkingtool_choicetool_streamtoolstop_puser_id| 輸入 / 1M tokens | $0.600 |
| 輸出 / 1M tokens | $2.20 |
| 快取讀取 / 1M | $0.110 |
| 貨幣 | USD |
基於標價的估算
僅為估算——實際 Token 數取決於供應商的分詞器。
@misc{orcarouter_glm_4_7,
title = {GLM 4.7 API},
author = {Z.ai},
year = {2025},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/z-ai/glm-4.7}
}Z.ai. (2025). GLM 4.7 API. OrcaRouter. https://www.orcarouter.ai/models/z-ai/glm-4.7