Home / Guides / Models

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 tokensMaker's own priceHereSaving
Input$1.4$1.32335%
Cached input$0.26$0.24585%
Output$4.4$4.1595%

GLM-5.3 Flash price

USD per 1M tokensMaker's own priceHereSaving
Input$0.15$0.14185%
Cached input$0.03$0.02845%
Output$0.5$0.47265%
  • 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.3GLM-5.3 Flash
Best forHard coding and agent tasksEveryday chat, extraction, high volume
Context windowAbout 1M tokensAbout 1M tokens
Longest answer128K tokens128K tokens
InputTextText, images, video and files
Tool calls, structured output, thinkingYesYes

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"
  }
}

Related guides