返回模型调用 API 参考
POST/v1/videos/characters

创建一个来自上传视频的角色

API Key multipart/form-data

请求示例

curl -X POST https://top.qingyuntop.ai/v1/videos/characters \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}"

请求参数

参数位置类型必填说明示例
name请求体string定义角色名称。 最大长度80 最小长度1可爱的小鱼
video请求体file用于创建角色的视频文件。目前角色上传时,2 到 4 秒的短片段效果最佳 16:9 或 9:16,分辨率为 720p 到 1080p。角色源视频在匹配要求输出的画面比例时效果最佳。如果宽高比不同,角色可能会显得拉伸或变形。一个视频最多可包含两个角色。 file://C:\Users\Administrator\Desktop\下载.mp4

返回响应 (200)

此部分没有定义参数。

响应示例

{
    "id": "video_5c6a605a-30c0-4a6a-9dbd-d1d6cfdd9980",
    "object": "video",
    "model": "sora-2",
    "status": "queued",
    "progress": 0,
    "created_at": 1761622232,
    "seconds": "10",
    "size": "1280x720"
}
来源原始接口定义(用于追溯)

以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。

{
  "id": 495899730,
  "name": "创建一个来自上传视频的角色",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/v1/videos/characters",
  "tags": [],
  "status": 1,
  "requestBody": {
    "type": "multipart/form-data",
    "parameters": [
      {
        "id": "JneOMkZTMb",
        "name": "name",
        "required": true,
        "enable": true,
        "description": "定义角色名称。\n\n最大长度80  \n最小长度1",
        "type": "string",
        "sampleValue": "可爱的小鱼"
      },
      {
        "id": "MspMEqG0Yi",
        "name": "video",
        "required": true,
        "enable": true,
        "description": "用于创建角色的视频文件。目前角色上传时,2 到 4 秒的短片段效果最佳 16:9 或 9:16,分辨率为 720p 到 1080p。角色源视频在匹配要求输出的画面比例时效果最佳。如果宽高比不同,角色可能会显得拉伸或变形。一个视频最多可包含两个角色。\n\n",
        "type": "file",
        "schema": {
          "format": "binary",
          "type": "string"
        },
        "sampleValue": "file://C:\\Users\\Administrator\\Desktop\\下载.mp4"
      }
    ],
    "examples": [],
    "mediaType": "",
    "oasExtensions": "",
    "required": false,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": []
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 158664648,
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {},
        "x-apifox-orders": []
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": []
    }
  ],
  "responseExamples": [
    {
      "name": "成功示例",
      "responseId": 158664648,
      "data": "{\r\n    \"id\": \"video_5c6a605a-30c0-4a6a-9dbd-d1d6cfdd9980\",\r\n    \"object\": \"video\",\r\n    \"model\": \"sora-2\",\r\n    \"status\": \"queued\",\r\n    \"progress\": 0,\r\n    \"created_at\": 1761622232,\r\n    \"seconds\": \"10\",\r\n    \"size\": \"1280x720\"\r\n}",
      "description": "",
      "oasKey": "",
      "oasExtensions": "",
      "id": "019fc09b-0b1f-742f-b946-387e3a07b227"
    }
  ],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92436134,
  "ordering": 6,
  "responsibleId": 0,
  "commonResponseStatus": {},
  "advancedSettings": {
    "disabledSystemHeaders": {}
  },
  "customApiFields": {},
  "oasExtensions": "",
  "mockScript": {},
  "createdAt": "2026-08-02T03:53:34.000Z",
  "updatedAt": "2026-08-06T12:15:55.000Z",
  "creatorId": 2863449,
  "editorId": 2863449,
  "creatorUserId": 2863449,
  "editorUserId": 2863449,
  "responseChildren": [],
  "visibility": "INHERITED",
  "securityScheme": {},
  "callbacks": ""
}