Zhipu's newest flagship (April 2026). Dramatically enhanced coding. Autonomously plans, executes, and iterates for up to 8 hours in a single task, delivering engineering-grade results.
curl https://aiapi-pro.com/v1/chat/completions \
-H "Authorization: Bearer $NOVAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [{"role":"user","content":"Build a todo app in Python Flask"}]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://aiapi-pro.com/v1",
api_key="YOUR_NOVAI_API_KEY",
)
resp = client.chat.completions.create(
model="glm-5.1",
messages=[{"role":"user","content":"Build a todo app in Python Flask"}],
)
print(resp.choices[0].message.content)