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.40/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,048,576 token context window. It supports up to 131,072 completion tokens.
Yes. GLM Latest accepts tools and tool_choice for function calling. It supports response_format for JSON output, without JSON-schema enforcement.
GLM 5.2, GLM 5.1, GLM 5V Turbo and 9 more are other text models from Z.ai.
GLM Latest was released on August 19, 2026.