GLM-4.6 是智谱最新的旗舰模型,其总参数量 355B,激活参数 32B,上下文提升至 200K,8 大权威基准全面提升,稳居国产模型首位。在编程、推理、搜索、写作、智能体应用等核心能力均完成对 GLM-4.5 的超越。
Model price
| Input /Mt | Output /Mt | ||
|---|---|---|---|
| Uncached | Cache read | Cache write (5m) | |
| ¥4/Mt | ¥0.8/Mt | ¥0.8/Mt | ¥16/Mt |
Sample Code
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-4.6",
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:
204.8K
Maximum output tokens:
131.1K
Modality:
Supported features
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-4.6
API Key:
Create & retrieve your API KeyRate Limits
| Usage tier | RPM | TPM |
|---|---|---|
| T1 | 10 | 50000000 |
| T2 | 100 | 50000000 |
| T3 | 1000 | 50000000 |
| T4 | 3000 | 50000000 |
| T5 | 6000 | 50000000 |
Common tool integrations
Feature tutorials