glm-4GLM-4V-9B is the open-source multimodal model in Zhipu AI’s GLM-4 series. It supports high-resolution (1120×1120) bilingual Chinese–English dialogue across multiple turns, and performs strongly in perception, reasoning, OCR, and chart understanding. Across many multimodal benchmarks, it outperforms models such as GPT-4-turbo-2024-04-09, Gemini 1.0 Pro, Qwen-VL-Max, and Claude 3 Opus.
Select an endpoint and copy a working example for this model.
from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.apertis.ai/v1") response = client.chat.completions.create( model="glm-4", messages=[ {"role": "user", "content": "Hello!"} ], max_tokens=1024, temperature=0.7) print(response.choices[0].message.content) # Optional: Enable context compression to reduce token usage# response = client.chat.completions.create(# model="glm-4",# messages=[{"role": "user", "content": "Hello!"}],# extra_body={"compression": {"enabled": True, "model": "gpt-4.1-mini"}}# )modelmessagesmax_tokenstemperaturetop_pstreamtoolsreasoning_effortstream_optionsthinkingextra_bodyUse these namespaced identifiers in Cursor IDE to avoid conflicts with built-in models.
See how this model compares to others from the same provider.
GLM-5.2 is Z.AI's flagship model for long-horizon task execution, designed to handle complex, project-scale workflows with high reliability. Featuring a 1M-token context window, it can maintain and reason over extensive engineering context, enabling consistent execution across large, multi-stage tasks. Optimized for end-to-end software development, GLM-5.2 follows engineering standards reliably and can manage the full workflow from requirements analysis and implementation to testing and multi-platform deployment, making it well suited for advanced coding agents and large-scale autonomous engineering projects.
GLM-5.1 delivers a major advancement in coding capability, with significant improvements in handling long-horizon tasks. It is designed to operate beyond short interactions, enabling continuous, autonomous execution over extended periods. The model can work independently on a single task for 8+ hours, performing planning, execution, and iterative self-improvement to produce complete, engineering-grade results, making it well suited for complex development workflows and autonomous agent systems.
GLM-5V-Turbo is Z.ai's first native multimodal agent foundation model, designed for vision-based coding and agent-driven workflows. It natively supports image, video, and text inputs, enabling integrated multimodal reasoning and execution. The model excels at long-horizon planning, complex coding, and multi-step task execution, and works seamlessly with agents to complete the full loop of “perceive → plan → execute”, making it well suited for advanced multimodal automation and real-world agent systems.
GLM-5 Turbo is a high-performance model from Z.ai optimized for fast inference and agent-driven workflows. Designed for real-world environments such as OpenClaw scenarios, it delivers strong performance across long execution chains and complex task pipelines. The model features improved instruction decomposition, tool integration, scheduled and persistent execution, and enhanced stability for extended multi-step tasks, making it well suited for autonomous agents and production automation workflows.
See how this model compares to others from the same provider.
GLM-4.7 is Z.AI's newest flagship model, upgraded for stronger programming performance and more reliable multi-step reasoning. It handles complex agent tasks better while offering smoother conversations and improved UI/experience quality.
GLM-5 is Z.AI's flagship open-source foundation model, engineered for complex systems design and long-horizon agent workflows. Built with expert developers in mind, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With strong agentic planning, deep backend reasoning, and iterative self-correction capabilities, GLM-5 extends beyond traditional code generation to support full-system construction and autonomous execution, making it well suited for advanced engineering and agent-driven development environments.
GLM-5.2 is Z.AI's flagship model for long-horizon task execution, designed to handle complex, project-scale workflows with high reliability. Featuring a 1M-token context window, it can maintain and reason over extensive engineering context, enabling consistent execution across large, multi-stage tasks. Optimized for end-to-end software development, GLM-5.2 follows engineering standards reliably and can manage the full workflow from requirements analysis and implementation to testing and multi-platform deployment, making it well suited for advanced coding agents and large-scale autonomous engineering projects.
The GLM-4.5 series is built for agent-style AI, combining reasoning, coding, and tool use. GLM-4.5 has 355B total parameters (32B active), while GLM-4.5-Air is a lighter 106B/12B version. Both support hybrid modes — a “thinking” mode for complex reasoning and tools, and a fast non-thinking mode for quick replies. The models are open-sourced (including FP8 versions) under the MIT license for commercial use, and they rank highly on benchmarks: GLM-4.5 scores 63.2 (3rd overall), while GLM-4.5-Air achieves 59.8 with better efficiency.
Initialized observational baseline with no recorded failures