用户自助控制台 — 查看配额与 API 信息
⚠️ 请妥善保管,Key 仅在此页展示
curl https://ai.shimiaocheng.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.2","messages":[{"role":"user","content":"你好"}]}'
curl https://ai.shimiaocheng.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.2","messages":[{"role":"user","content":"你好"}],"stream":true}'
import requests
response = requests.post(
"https://ai.shimiaocheng.top/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"model":"glm-5.2", "messages":[{"role":"user","content":"你好"}]}
)
print(response.json())