GLM API & Docs

Everything you need to build with GLM through the Z.ai API. Start with the API quickstart to create a key, set the base URL and send your first request in curl, Python or Node, then go deeper with the guides on function calling and JSON output, thinking mode and reasoning effort, context caching, the built-in web search tool, and the rate limits and error codes you will meet in production. Each guide uses the exact model IDs and request parameters from the official documentation, shows working code, and tells you which GLM model to pick for the job. You will also find plain answers on licensing, including which GLM models are open weights under MIT and what the GLM-5.3 License adds, plus a profile of Z.ai, the company formerly known as Zhipu AI. New to GLM? Try any model free in GLM Chat first, then come back here when you are ready to write code.