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/search

请求参数

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

示例代码

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/search' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type_id": 105
}'

返回响应

🟢200OK
application/json
Body
object {0}
示例
{
    "code": 0,
    "data": {
        "custom_key_type_array": [
            {
                "id": 290,
                "created_at": "2023-05-27T04:08:49.000000Z",
                "updated_at": "2023-05-27T04:08:49.000000Z",
                "uid": 186009,
                "name": "2",
                "private_key": "...",
                "count": 0,
                "total_points": 0
            },
            {
                "id": 86,
                "created_at": "2023-04-26T01:11:18.000000Z",
                "updated_at": "2023-04-26T01:11:18.000000Z",
                "uid": 186009,
                "name": "22",
                "private_key": "...",
                "count": 0,
                "total_points": 0
            },
            {
                "id": 43,
                "created_at": "2023-04-19T15:02:36.000000Z",
                "updated_at": "2023-04-19T15:02:36.000000Z",
                "uid": 186009,
                "name": "river-ai",
                "private_key": "...",
                "count": 16,
                "total_points": 74994
            },
            {
                "id": 1,
                "created_at": "2023-04-14T21:57:48.000000Z",
                "updated_at": "2023-04-14T21:57:48.000000Z",
                "uid": 186009,
                "name": "测试",
                "private_key": "...",
                "count": 13,
                "total_points": 716
            }
        ]
    }
}
修改于 2024-06-17 13:10:05
上一页
修改分组
下一页
创建 key
Built with