# Z.ai API

> API for Z.ai's GLM language, vision and image models

Source: https://talira.ai/catalog/z-ai-api-jz4sedv7
Every listing: https://talira.ai/catalog.md

- Kind: SaaS
- Types: API
- Categories: [ai / llm / model access](https://talira.ai/categories/ai/llm/model-access)
- Licence: proprietary[^2]
- Pricing: Usage-based, free tier[^1][^2]
- Pricing notes: Per million tokens: GLM-5.3 $1.40 input, $0.26 cached input, $4.40 output; GLM-5.3-Flash $0.15 / $0.03 / $0.50; GLM-5.3-FlashX $0.37 / $0.075 / $1.25. GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free. Web search $0.01 a use; GLM-Image $0.015 an image. The GLM Coding Plan is a separate subscription from $18 a month.
- Free tier: yes[^1][^2]
- Cloud hosted: yes[^2]
- API: yes[^2]
- Made by: [Z.ai](https://talira.ai/orgs/z-ai.md)

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](https://talira.ai/catalog/glm-5-3-gd1p2h9w.md) 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.

## Links

- Website: https://docs.z.ai/
- Docs: https://docs.z.ai/

## 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

## Trust

Overall: 0.34 out of 1.
Signals: maintenance 0.27, adoption 0.66, backing 0.30, extensibility 0.20.

- latest package release 5 months ago (PyPI zai-sdk 0.2.3)
- 204k package downloads a month (PyPI)
- made by Z.ai

## Related

- Works with [GLM-5.3](https://talira.ai/catalog/glm-5-3-gd1p2h9w.md)
- Works with [GLM-5](https://talira.ai/catalog/glm-5-5gj4eynh.md)

## Alternatives

- [Ollama](https://talira.ai/catalog/ollama-gr2tx5nn.md): Start building with open models, locally or in the cloud
- [DeepSeek API](https://talira.ai/catalog/deepseek-api-sapc02q3.md): DeepSeek's own API for its language models, compatible with OpenAI's and Anthropic's formats
- [OpenRouter](https://talira.ai/catalog/openrouter-7b9zt83p.md): One API for text, image, video, and audio models.
- [Hyperbolic](https://talira.ai/catalog/hyperbolic-m7n8r345.md): GPU rental, managed Kubernetes and an OpenAI-compatible inference API
- [SambaCloud](https://talira.ai/catalog/sambacloud-94d10yrc.md): Fast inference API for open models on SambaNova's own chips

## Sources

[^1]: https://docs.z.ai/guides/overview/pricing (checked 27 Nov 2026)
[^2]: https://docs.z.ai/llms.txt (checked 27 Nov 2026)
