GLM-5.3 and GLM-5.3 Flash API pricing
Updated 2026-10-18 · Zhipu AI's flagship and its fast multimodal sibling: prices next to Zhipu's own, which one to use, code samples.
Connection details
- Base URL (OpenAI compatible)
- https://api.aifans.fan/v1
- Base URL (Anthropic compatible)
- https://api.aifans.fan
- API key
- Create one in the console; it starts with sk- (no account yet? sign up)
- Recommended models
- deepseek-v4.1-flash, deepseek-v4-pro (all models and prices)
GLM-5.3 is Zhipu AI's flagship model for coding, agents and long-context work; GLM-5.3 Flash is its fast, low-cost sibling with native multimodal input. Both are available here through OpenAI- and Anthropic-compatible APIs: use glm-5.3 or glm-5.3-flash as the model name.
GLM-5.3 price
| USD per 1M tokens | Maker's own price | Here | Saving |
|---|---|---|---|
| Input | $1.4 | $1.3233 | 5% |
| Cached input | $0.26 | $0.2458 | 5% |
| Output | $4.4 | $4.159 | 5% |
GLM-5.3 Flash price
| USD per 1M tokens | Maker's own price | Here | Saving |
|---|---|---|---|
| Input | $0.15 | $0.1418 | 5% |
| Cached input | $0.03 | $0.0284 | 5% |
| Output | $0.5 | $0.4726 | 5% |
- Pay as you go per token; failed calls are never billed.
- Thinking is billed as output tokens.
- Online top-ups carry a payment processing fee of 5.5% (minimum $0.8), added at checkout and shown before you pay; it is not part of your credit.
Which one to use
| GLM-5.3 | GLM-5.3 Flash | |
|---|---|---|
| Best for | Hard coding and agent tasks | Everyday chat, extraction, high volume |
| Context window | About 1M tokens | About 1M tokens |
| Longest answer | 128K tokens | 128K tokens |
| Input | Text | Text, images, video and files |
| Tool calls, structured output, thinking | Yes | Yes |
Call it with the OpenAI SDK
# pip install openai
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.aifans.fan/v1")
resp = client.chat.completions.create(
model="glm-5.3",
messages=[{"role": "user", "content": "Hello"}],
max_tokens=1000,
)
print(resp.choices[0].message.content)Use it in Claude Code
Put this in ~/.claude/settings.json; the Claude Code guide has the details.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.aifans.fan",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_MODEL": "glm-5.3",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.3",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3",
"CLAUDE_CODE_SUBAGENT_MODEL": "glm-5.3"
}
}