zhipu/glm-5.2
Zhipu (Z.ai) GLM-5.2 is a 744B sparse-MoE flagship (40B active) with a usable 1M-token context window and 131K max output. Adds two thinking-effort levels (High / Max) for complex multi-step coding. Beats GPT-5.5 on several long-horizon coding benchmarks. Accessed via OpenAI-compatible interface.
المصدر: official_x0.5 · تم التحقق في 2026-06-17
قراءة الكاش $0.130/M · كتابة الكاش $—/M
يمكنك استخدام أي من المعرّفَين لاستدعاء هذا النموذج.
zhipu/glm-5.2استبدل placeholder الـ ONEHOP_KEY بمفتاح API الخاص بك. إنشاء مفتاح →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="zhipu/glm-5.2",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)