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
| Model | Input Price | Output Price | Note |
|---|---|---|---|
| GLM-4-Flash | FREE | FREE | Unlimited free |
| GLM-4-Air | $0.10/M tokens | $0.10/M tokens | Best value |
Zhipu AI's GLM-4 series is one of China's top foundation models, excelling at:
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)
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: