1. APIkey
OpenAI-Hub接口文档
  • 对接说明
  • APIkey
    • 获取 API Key 列表
      GET
    • 搜索 API Key
      GET
    • 获取 API Key 详情
      GET
    • 获取 API Key 明文
      POST
    • 新建 API Key
      POST
    • 修改 API Key
      PUT
    • 删除 API Key
      DELETE
    • 批量删除 API Key
      POST
    • 批量获取 API Key 明文
      POST
  • 消费日志
    • 获取消费日志
    • 获取消费统计
AI模型接口图片异步提交后台管理接口
AI模型接口图片异步提交后台管理接口
  1. APIkey

获取 API Key 明文

POST
/api/token/{id}/key
返回指定 API Key 的明文(sk-xxx...)。
服务端有 CriticalRateLimit 限流(默认 5 次/分钟),且接口禁止缓存。请妥善保存返回值——后续再次调用列表/详情接口时只能拿到脱敏版本。

请求参数

Path 参数

Header 参数

返回响应

🟢200成功
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai-hub.com/api/token/123/key' \
--header 'Authorization: Bearer sk-0ABIEXVjh9****Qckjy' \
--header 'New-Api-User: 1'
响应示例响应示例
{
    "success": true,
    "message": "string",
    "data": {
        "key": "string"
    }
}
上一页
获取 API Key 详情
下一页
新建 API Key
Built with