视频延长

POST /kling/v1/videos/video-extend

MethodPOST
Path/kling/v1/videos/video-extend
Typehttp
Status1
Module2102810
Folder46920504

说明

1、生成视频 2、此接口要求传入任务id和视频id 此接口属于子任务,需要在父任务账号上使用,请尽快操作避免资源包过期。 官方文档:https://docs.qingque.cn/d/home/eZQClW07IFEuX1csc-VejdY2M#section=h.8fzev2i9nkje

概览

MethodPOST
Path/kling/v1/videos/video-extend
Typehttp
Status1
Module2102810
Folder46920504

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "id": "NQs7bxnpZf",
      "name": "Content-Type",
      "required": true,
      "description": "",
      "type": "string",
      "enable": true,
      "sampleValue": "application/json"
    },
    {
      "id": "qb8tEQbCty",
      "name": "Accept",
      "required": true,
      "description": "",
      "type": "string",
      "enable": true,
      "sampleValue": "application/json"
    },
    {
      "required": true,
      "description": "",
      "type": "string",
      "id": "gBxcCbXhsa",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "video_id": {
        "type": "string",
        "title": "视频ID",
        "description": "支持通过文本、图片和视频延长生成的视频的ID(原视频不能超过3分钟)"
      },
      "prompt": {
        "type": "string",
        "title": "正向文本提示词",
        "description": "不能超过2500个字符词"
      }
    },
    "required": [
      "video_id"
    ],
    "x-apifox-orders": [
      "video_id",
      "prompt"
    ]
  },
  "required": false,
  "mediaType": "",
  "examples": [
    {
      "value": "{\n\n    \"video_id\": \"827942411241803822\",\n    \"prompt\": \"场景放大\"\n}",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 808523371,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "request_id": {
          "type": "string"
        },
        "data": {
          "type": "object",
          "properties": {
            "task_id": {
              "type": "string"
            },
            "task_status": {
              "type": "string"
            },
            "created_at": {
              "type": "integer"
            },
            "updated_at": {
              "type": "integer"
            }
          },
          "required": [
            "task_id",
            "task_status",
            "created_at",
            "updated_at"
          ]
        }
      },
      "required": [
        "code",
        "message",
        "request_id",
        "data"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 808523371,
    "data": "{\r\n    \"code\": 0,\r\n    \"message\": \"SUCCEED\",\r\n    \"request_id\": \"d57c7fa4-9f49-4bd5-8fb1-a840bb466d3d\",\r\n    \"data\": {\r\n        \"task_id\": \"815336423632572487\",\r\n        \"task_status\": \"submitted\",\r\n        \"created_at\": 1762419870395,\r\n        \"updated_at\": 1762419870395\r\n    }\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 724021076
  }
]