GLM-4.5的後繼產品,其上下文窗口擴展至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.6",
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_6,
title = {GLM 4.6 API},
author = {Z.ai},
year = {2025},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/z-ai/glm-4.6}
}Z.ai. (2025). GLM 4.6 API. OrcaRouter. https://www.orcarouter.ai/models/z-ai/glm-4.6