GLM 5.2
zai-org/glm-5.2

GLM-5.2 是智谱(Z.AI)最新一代旗舰大模型,面向长程自主任务设计,可在单个任务上持续工作长达 8小时——从初始规划、执行,到迭代优化与生产级成果交付,自主完成端到端工作流。其编码与 agentic 能力比肩国际一线闭源旗舰,在持续执行、复杂工程优化与真实开发场景中表现尤为突出;上下文窗口由上一代的 200K 扩展至 1M。是驱动高级智能体(Agent)与长程编码助手的理想基座模型。

Model price

Input /Mt Output /Mt
UncachedCache read
¥8/Mt¥2/Mt¥28/Mt

Sample Code

Copy
1base_url="https://api.ppio.com/openai"
2api_key="<YOUR_API_KEY>"
3
4curl "$base_url/v1/chat/completions" \
5  -H "Content-Type: application/json" \
6  -H "Authorization: Bearer $api_key" \
7  -d @- << 'EOF'
8{
9    "model": "zai-org/glm-5.2",
10    "messages": [
11        
12        {
13            "role": "user",
14            "content": "Hi there!"
15        }
16    ],
17    "response_format": { "type": "text" }
18}
19EOF
20  

Model Information

Context window:

1M

Maximum output tokens:

131.1K

Modality:

Input:
Text
Output:
Text

Supported features

Function CallingSupported
Structured OutputSupported
reasoningSupported

API Integration Guide

Base URL:

https://api.ppio.com/openai

Messages protocol Base URL:

https://api.ppio.com/anthropic

API Endpoints:

/v1/chat/completions

Model ID:

zai-org/glm-5.2

Usage tierRPMTPM
T1550000000
T210050000000
T3100050000000
T4300050000000
T5600050000000
With more cost-effective products and services
Help you unleash boundless innovation and lead the new era of intelligence
Inquire now