API2D
  1. Custom Key 操作
API2D
  • OpenAI
    • 聊天接口 /v1/chat/completions
      POST
    • 内容补全接口 /v1/completions
      POST
    • 文本编辑 /v1/edits
      POST
    • 向量生成 /v1/embeddings
      POST
    • 图片生成 /v1/images/generations
      POST
    • 余额查询
      GET
    • 文本转音频
      POST
    • 音频转文本
      POST
    • 音频转文本并翻译为英文
      POST
  • 向量数据库
    • 生成 uuid
      GET
    • 查询searchable_id
      POST
    • 写入向量
      POST
    • 基于向量搜索
      POST
    • 删除单条记录
      POST
    • 删除某个 uuid 对应的所有向量数据
      POST
    • 删除当前用户写入过的所有向量数据
      POST
    • 查询数据
      POST
  • Azure
    • 文字 => 语音
    • 语音 => 文字
  • 开发者计划
    • 分组操作
      • 创建分组
      • 获取所有分组
      • 获取单个分组
      • 删除分组
      • 修改分组
    • Custom Key 操作
      • 获取分组内的所有 key
        POST
      • 创建 key
        POST
      • 更新 key
        POST
      • 启用/禁用 key
        POST
      • 删除 key
        POST
      • 转入/转出点数
        POST
      • 批量转入点数
        POST
      • 批量设置请求频率上限
        POST
      • 搜索 key
        POST
    • 生成 API Token
      POST
    • 查询点数消耗
      POST
  • Claude
    • 聊天接口
  • Stable Diffusion
    • Stable Diffusion 图片生成
    • [新] Stable Diffusion Core 图片生成
    • [新] Stable Diffusion 3 图片生成/图片修改
  • Gemini 2
    • 聊天接口
  1. Custom Key 操作

删除 key

POST
/custom_key/remove

请求参数

Header 参数
Content-Type
string 
必需
默认值:
application/json
Authorization
string 
必需
Bearer 你的forwardKey/customKey/API Token
默认值:
Bearer fk....
Body 参数application/json
key
string 
必需
示例
{
  "key": "fk18xxxx"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://oa.api2d.net/custom_key/remove' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "key": "fk18xxxx"
}'

返回响应

🟢200OK
application/json
Body
object {0}
示例
{
  "code": 0,
  "data": {
    "custom_key": {
      "id": 103317,
      "uid": 186009,
      "key": "...",
      "enabled": 0,
      "point": 0,
      "minute_times": 60,
      "last_access_time": null,
      "type_id": "43",
      "created_at": "2023-04-26T01:07:00.000000Z",
      "updated_at": "2023-05-27T04:22:44.000000Z",
      "daily_times": 0,
      "daily_quota": 10000,
      "note": "",
      "monthly_times": 0,
      "monthly_quota": 300000
    }
  }
}
上一页
启用/禁用 key
下一页
转入/转出点数
Built with