README.md
September 3, 2025 · View on GitHub
GLM-CookBook
Welcome to the GLM API Beginner’s Repository 📘. This is an open-source tutorial book of introductory code for the GLM API.
Updates 🔥
- 🔥 GLM-4.5 is now integrated with Claude Code, see GLM-4.5 Claude Code Integration Guide.
Quick Start 🚀
- Install dependencies
pip install -r requirements.txt
- Configure your Z.AI account, or your openrouter account.
Repository Structure 📂
We have categorized multiple folders, each containing their own content. You can check them out according to your needs!
-
basicThe most fundamental content to help you get familiar with basic API calls. -
visionAPI calls related to vision models and drawing models. -
vibecodingExamples of using the GLM series models for code development. -
finetuneFine-tuning GLM models. -
demoSome fun little projects that might inspire you.agentSee how powerful the conference demo agent is!dataData required to run the demos.
-
assetSome related image materials.
You can quickly understand the structure of this repository through the image below. I will update the latest experiments and teaching content of the Zhipu AI SDK as soon as possible.

SDK Open Source 🔧
The Z.AI SDK is now open source. If you want to directly modify our SDK, you can do so at the following repositories:
If you want to contribute SDKs for other languages to the official repository, feel free to submit a PR.