🟢 GLM-4 API Access

Zhipu AI's GLM-4 family — top-tier code generation and Chinese language understanding. One API key, instant access.

Get API Key →

GLM-4 Model Family

⚡ GLM-4-Flash

Lightning-fast inference, perfect for high-throughput applications. Permanently free tier available.

🧠 GLM-4-Air

Balanced performance with strong reasoning capabilities. Great for production workloads.

💻 Code Generation

GLM-4 excels at code generation, ranking in the top tier among Chinese LLMs for coding tasks.

🇨🇳 Chinese NLP

Native-level Chinese understanding with excellent performance on Chinese NLP benchmarks.

Quick Start — OpenAI Compatible

from openai import OpenAI

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

response = client.chat.completions.create(
    model="glm-4-flash",  # or glm-4-air
    messages=[{"role": "user", "content": "用Python写一个快速排序"}]
)
print(response.choices[0].message.content)

Pricing

Model Input / 1M tokens Output / 1M tokens
GLM-4-Flash¥1.00 (~$0.14)¥1.00 (~$0.14)
GLM-4-Air¥2.00 (~$0.28)¥2.00 (~$0.28)

Start Using GLM-4 Today

One API key for GLM-4 + 10 more models from China's top AI labs.

Get API Key →