Z.ai API
by Z.ai (Zhipu AI)
API for GLM language, vision, image, video and speech models with built-in web search.
Model hosting and inferenceOfficial MCP server
1. Price
Free tier: GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free. As reported on the official pricing page, checked Oct 27, 2026.
docs.z.ai/guides/overview/pricing2. Commercial use
We have not read this API's terms yet. Until we do, check its terms of service for commercial use and whether it trains on what you send.
z.aiChecked against the maker's official pages, pricing on Oct 27, 2026. Tap a verdict to see its source.How we checkedReport an error
What Z.ai API does
API for GLM language, vision, image, video and speech models with built-in web search.
- Z.ai API is one of 42 APIs in the Model hosting and inference category on AgentGid.
- Its cheapest paid plan ($18 a month) is the 4th cheapest of the 12 here with a monthly plan.
- It is one of 13 that can be started for free.
- It ships an official MCP server, like 5 others here.
- Its official SDK is the 13th most downloaded in the category (42.8K a week).
Z.ai API popularity
SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.
Pricing
GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free
$18 a month
$0.15/1M input, $0.50/1M output (GLM-5.3-Flash); $1.4/1M input, $4.4/1M output (GLM-5.3); Web Search $0.01/use
Price history
- A year of the pricing page in the Internet Archive (1 months): the lowest monthly figure went from $18 (2026-11) to $18 (2026-11).
As reported on the official pricing page, checked Oct 27, 2026. Prices change: confirm before you buy. docs.z.ai/guides/overview/pricing
Use it from an agent
5 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page no, AI assistants allowed yes
Checked Nov 13, 2026.
Official: @z_ai/mcp-server
pip install zai-sdkAlternatives
Z.ai API This page
GPT models for text, vision, tool calling and agents, priced per 1M tokens.
Gemini models for text, image, audio and video input, priced per 1M tokens, with a free tier.
Mistral's open-weight and commercial models via API, priced per 1M tokens.
Fast inference API for open models such as GPT-OSS and Llama, priced per 1M tokens.
Get started
Install the official SDK.
pip install zai-sdkNo step-by-step start for Z.ai API yet: we have not written its hand-checked card. Its official docs are linked at the top.