Tired of limits? GLM Coding Plan — monthly access to world-class model GLM-4.7, compatible with top coding tools like Claude Code and Cline. All from just $3/month. Try it now →
Getting Started
Get API Key
- Access Z.AI Open Platform, Register or Login.
- Access Billing Page to top up if needed.
- Create an API Key in the API Keys management page.
- Copy your API Key for use.
Choose Model
The platform offers multiple models, and you can select the appropriate model based on your needs. For detailed model introductions, please refer to the Models & Agents.
GLM-4.7
Our latest flagship model, delivering open-source SOTA performance and superior Agentic Coding Experience
GLM-4.6V
New multimodal model with 128K training context window and SOTA vision understanding
GLM-Image
Supports text-to-image generation, achieving open-source state-of-the-art (SOTA) in complex scenarios
CogVideoX-3
New frame generation capabilities that significantly improve image stability and clarity
Choose the Calling Method
Our platform provides various development approaches; you can select the best fit for your project needs and tech stack.
HTTP API
Standard RESTful API, compatible with all programming languages.
Z.AI Python SDK
Official Python SDK, featuring full type hints and async support.
Z.AI Java SDK
Official Java SDK, designed for high concurrency and availability.
OpenAI Python SDK
OpenAI SDK Compatibility, quickly migrating from OpenAI.
API Reference
Complete API documentation with parameter descriptions.