Base URL 填 https://kinneng.com/api/v1,请求头使用 Bearer Kin Key,模型 ID 填 glm-5.2。
01
接口与认证
BASE URLhttps://kinneng.com/api/v1
示例模型glm-5.2
AUTHBearer kin_xxx
在控制台创建与管理 Key;不要把完整 Key 放进浏览器前端代码。
本页以 glm-5.2 为示例。调用其他兼容文本模型时,接口地址和 Key 都不用改,只需换成实时模型目录中的模型 ID。
02
Chat Completions 调用示例
cURLKin
curl https://kinneng.com/api/v1/chat/completions \
-H "Authorization: Bearer kin_xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [
{"role": "user", "content": "请解释这段代码"}
],
"stream": true
}'03
Responses API 调用示例
cURLKin
curl https://kinneng.com/api/v1/responses \
-H "Authorization: Bearer kin_xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"input": "写一个安全的文件解析函数",
"stream": true
}'Responses 更适合智能体、多步骤工具工作流和 Codex 兼容接入。
04
GLM 当前价格
| 模型 | 上下文 | 输入 / 百万 Tokens | 输出 / 百万 Tokens | 缓存 / 百万 Tokens |
|---|---|---|---|---|
| GLM 5.1智谱 AI | 205K | ¥5.46 | ¥17.16 | ¥1.02 |
| glm 5.2智谱 AI | 1M | ¥3.97 | ¥12.47 | ¥0.743 |
| glm 5.3智谱 AI | 1.3M | ¥6.36 | ¥19.98 | ¥1.18 |
| glm 5.3 flash智谱 AI | 1.3M | ¥0.620 | ¥2.07 | ¥0.124 |
| Z.ai: GLM 4.5智谱 AI | 131K | ¥4.96 | ¥18.17 | ¥0.909 |
| Z.ai: GLM 4.5 Air智谱 AI | 131K | ¥1.07 | ¥7.02 | ¥0.207 |
| Z.ai: GLM 4.5V智谱 AI | 66K | ¥4.96 | ¥14.87 | ¥0.909 |
| Z.ai: GLM 4.6智谱 AI | 205K | ¥3.55 | ¥14.46 | ¥0.661 |
表格读取 Kin 最近一次同步后的实时展示价;最终费用以实际 Token 用量与结算结果为准。
05
限制与常见错误
400请求参数或格式无效
401Key 无效或已撤销
402可用余额不足
413请求体超过 8 MB
429触发频率或并发限制
503 / 504服务暂不可用或请求超时
每把 Key 每分钟最多 300 次请求;每个账户所有 Key 合计最多 10 个并发请求。