Zhipu AI's GLM-4 family — top-tier code generation and Chinese language understanding. One API key, instant access.
Get API Key →Lightning-fast inference, perfect for high-throughput applications. Permanently free tier available.
Balanced performance with strong reasoning capabilities. Great for production workloads.
GLM-4 excels at code generation, ranking in the top tier among Chinese LLMs for coding tasks.
Native-level Chinese understanding with excellent performance on Chinese NLP benchmarks.
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)
| 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) |
One API key for GLM-4 + 10 more models from China's top AI labs.
Get API Key →