API for Z.ai's GLM language, vision and image models
SaaSfree
The Z.ai API is Z.ai's developer platform for its GLM models, billed per million tokens. It serves the GLM-5 family, including GLM-5.3 and its cheaper Flash and FlashX variants, plus older GLM-4 models, vision models, GLM-Image for image generation and a speech recognition model, with cached input billed at a lower rate and some Flash models free. It has official Python and Java SDKs, works with the OpenAI Python SDK, and offers a built-in web search tool. Z.ai also sells a GLM Coding Plan subscription for using its models in coding agents such as Claude Code and OpenCode.
Problems it solves
- call Zhipu's GLM models from my app
- a cheaper model API for coding and tool use than the big US labs
- use GLM through the OpenAI SDK I already have
Features
- GLM-5.3, GLM-5.3-Flash and FlashX, GLM-5 and GLM-4 models
- vision, image generation and speech recognition models
- cached input at a lower per-token rate
- official Python and Java SDKs; works with the OpenAI Python SDK
- built-in web search tool
Capabilities
| Has an API | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Z.ai API does.
- Ollama Start building with open models, locally or in the cloud
- DeepSeek API DeepSeek's own API for its language models, compatible with OpenAI's and Anthropic's formats
- OpenRouter One API for text, image, video, and audio models.
- Hyperbolic GPU rental, managed Kubernetes and an OpenAI-compatible inference API
- SambaCloud Fast inference API for open models on SambaNova's own chips
