跳转到内容

在线 API 测试

这里不会保存你的 key(不会写进浏览器存储,也不会拼到 URL)。

小提示:如果提示“模型不存在”,通常是模型名写错了,去 模型列表 复制一个再试。

如果你在浏览器里遇到“跨域/CORS”拦截,说明你的 API 还没放行 docs.su8.codes。这时先用 curl 跑通最稳:

API Key
接口
模型
消息
curl 预览
curl 'https://su8.codes/codex/v1/responses' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -d '{
  "model": "gpt-5.2",
  "input": [
    {
      "type": "message",
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "你好"
        }
      ]
    }
  ],
  "stream": true
}'