参考归档
在线调试
推荐使用 CokeAPI 自带 Playground,无需安装 Apifox 浏览器插件。
Playground
- 登录 https://www.cokeapi.com
- 打开 https://www.cokeapi.com/playground
- 选择控制台里的令牌与可售模型
- 发送一条消息验证
用 curl 自测
curl https://www.cokeapi.com/v1/chat/completions \
-H "Authorization: Bearer sk-你的令牌" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-mini",
"messages": [{"role":"user","content":"ping"}]
}'
model 请换成 https://www.cokeapi.com/pricing 上当前可售名称。
若你坚持用 Apifox / Postman
| 项 | 值 |
|---|---|
| Base URL | https://www.cokeapi.com/v1 |
| Header | Authorization: Bearer sk-你的令牌 |
旧截图里「必须访问 api.openai.com / 安装 Apifox 插件」的说明已不适用。