智谱 · 6 models · multi-supplier bidding · get a key
How do I use the GLM 智谱 API and what does it cost? Create a key in the console: OpenAI protocol sets base_url to https://321ai.cc/v1; Anthropic protocol (Claude Code) sets ANTHROPIC_BASE_URL to https://321ai.cc. This page lists 6 GLM 智谱 models with live market floor prices from competing suppliers (data date 2026-11-20; machine-readable: https://321ai.cc/api/public/model-prices). Failures never billed, platform fee 0.
Zhipu GLM family — Chinese flagship with strong agent/tool-calling.
| Model | Market floor price | Channels |
|---|---|---|
| glm-5.3-flash | <$0.0001 in · <$0.0001 out / 1M tok | 223 |
| glm-5.3 | $0.0063 in · $0.0198 out / 1M tok | 203 |
| glm-5.2 | $0.003305 in · $0.011598 out / 1M tok | 108 |
| glm-5.3-flashx | $0.009749 in · $0.032934 out / 1M tok | 63 |
| glm-5.1 | $0.015 in · $0.052637 out / 1M tok | 47 |
| glm-5 | $0.015 in · $0.048 out / 1M tok | 14 |
Floor across suppliers; per-supplier quotes on the marketplace. Every model page has a .md machine-readable twin.
Set base_url to https://321ai.cc/v1; pick any model above as model.
from openai import OpenAI
client = OpenAI(api_key="YOUR_KEY", base_url="https://321ai.cc/v1")
resp = client.chat.completions.create(
model="glm-5.3-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
All 6 GLM 智谱 models are quoted by multiple suppliers; this page shows the market floor price per model, refreshed live (data date 2026-11-20). Per-supplier quotes and upstream self-check records are on the marketplace page.
OpenAI protocol: set base_url to https://321ai.cc/v1 and use the key generated in your console; model name is any of the GLM 智谱 models listed above. Existing SDKs need no code changes.
Multiple suppliers quote every model, so smart routing avoids failing channels automatically; merchants publish upstream self-check samples, and failed requests are never billed.
Registration includes free trial credit — call real models before you top up. Sign up: https://321ai.cc/ui/new/#/register