Welcome to the GLM API Beginner’s Repository 📘. This is an open-source tutorial book of introductory code for the GLM API.
- 🔥 GLM-4.5 is now integrated with Claude Code, see GLM-4.5 Claude Code Integration Guide.
- Install dependencies
pip install -r requirements.txt
- Configure your Z.AI account, or your openrouter account.
We have categorized multiple folders, each containing their own content. You can check them out according to your needs!
-
basic
The most fundamental content to help you get familiar with basic API calls. -
vision
API calls related to vision models and drawing models. -
vibecoding
Examples of using the GLM series models for code development. -
finetune
Fine-tuning GLM models. -
demo
Some fun little projects that might inspire you.agent
See how powerful the conference demo agent is!data
Data required to run the demos.
-
asset
Some 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.
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.