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.
Kaynak: official_x0.5 · Doğrulandı: 2026-06-17
Cache okuma $0.130/M · Cache yazma $—/M
API çağrısında her iki ID de kullanılabilir.
zhipu/glm-5.2ONEHOP_KEY yer tutucusunu API key'inizle değiştirin. Oluşturun →
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)