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
API 호출 시 어떤 ID든 사용할 수 있습니다.
zhipu/glm-5.2ONEHOP_KEY 자리 표시자를 귀하의 API key로 교체하세요. 생성하기 →
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)