Appearance
故障排查
1. 确认地址
text
https://api.xai.kg/v11
如果客户端支持查看请求日志,确认最终请求地址是:
text
https://api.xai.kg/v1/chat/completions1
2. 确认 Token
Token 应放在请求头:
http
Authorization: Bearer YOUR_API_KEY1
3. 发送短流式请求
bash
curl -N https://api.xai.kg/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [
{ "role": "user", "content": "Reply exactly: pong" }
],
"stream": true
}'1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
4. 对照日志
如果日志出现请求,继续根据错误码处理。如果日志没有请求,回到客户端配置和网络代理排查。