Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
This model always redirects to the latest GLM model from Z.ai.
GLM Latest costs $1.25/M input tokens and $4.40/M output tokens, with separate rates for Cache Read at $0.26/M tokens.
GLM Latest has a 1,310,720 token context window. It supports up to 131,072 completion tokens.
Yes. GLM Latest accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
GLM 5.3 Flash, GLM 5.2, GLM 5.1 and 10 more are other text models from Z.ai.
GLM Latest was released on August 19, 2026.