GLM-4 API — Access Zhipu AI Globally

Use China's most powerful open models via OpenAI-compatible API
GLM-4-Flash is completely FREE — GLM-4-Air from just $0.10/M tokens

Get Free 50K Tokens →

GLM Model Pricing

ModelInput PriceOutput PriceNote
GLM-4-FlashFREEFREEUnlimited free
GLM-4-Air$0.10/M tokens$0.10/M tokensBest value

Why GLM-4?

Zhipu AI's GLM-4 series is one of China's top foundation models, excelling at:

Quick Start

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://eaf9553505eeb8f5-115-190-107-107.serveousercontent.com/v1"
)

# GLM-4-Flash is FREE!
response = client.chat.completions.create(
    model="glm-4-flash",
    messages=[{"role": "user", "content": "Hello GLM!"}]
)
print(response.choices[0].message.content)

International Access Without Chinese Account

Zhipu AI's official API (bigmodel.cn) requires Chinese ID verification and Chinese bank card. AI Token Hub provides the same GLM-4 models with:

Start Free — GLM-4-Flash is Free →