GLM-5.2 是 Z.ai 最新的旗舰模型,面向长程任务场景,相比 GLM-5.1 在长程任务能力上有显著提升。该 753B 模型支持稳定的 1M-token 上下文,具备更强的编程能力,并支持多种 thinking effort levels,以在性能和延迟之间进行灵活平衡。GLM-5.2 引入 IndexShare 架构优化,在 1M 上下文长度下将 per-token FLOPs 降低 2.9 倍,同时改进 MTP layer 以支持 speculative decoding,使 acceptance length 最高提升 20%
curl https://api.yourplatform.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "undefined",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'