Iteration on GLM-4.6 introducing retained reasoning and round-based reasoning for more stable execution on complex multi-turn tasks. 200K context.
OpenAI-compatible — keep the SDK you already use
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| Input / 1M tokens | $0.600 |
| Output / 1M tokens | $2.20 |
| Cache read / 1M | $0.110 |
| Currency | USD |
Estimate based on list price
Estimate only — actual token counts depend on the provider's tokenizer.
@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