生成延长(Extend)视频

POST /openapi/v2/video/extend/generate

MethodPOST
Path/openapi/v2/video/extend/generate
Typehttp
Status1
Module2102810
Folder86260306

概览

MethodPOST
Path/openapi/v2/video/extend/generate
Typehttp
Status1
Module2102810
Folder86260306

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "2bHS3xcvPk",
      "enable": true,
      "name": "Content-Type",
      "sampleValue": "application/json"
    },
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "Uph5Bw3hH7",
      "enable": true,
      "name": "API-KEY",
      "sampleValue": "{{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "source_video_id": {
        "type": "integer",
        "description": "必传source_video_id 或 video_media_id"
      },
      "video_media_id": {
        "type": "integer",
        "description": "必传source_video_id 或 video_media_id"
      },
      "prompt": {
        "type": "string",
        "description": "2048 Characters 以内"
      },
      "seed": {
        "type": "integer"
      },
      "quality": {
        "type": "string",
        "description": "\"360p\",\"540p\",\"720p\",\"1080p\""
      },
      "duration": {
        "type": "integer",
        "description": "视频生成时长\nv.3.5/v4/v4.5 : 5/8 (v3.5 1080p 无法使用 8)\nv5 : 5/8\nv5.5 : 5/8/10 (1080p 无法使用 10)"
      },
      "model": {
        "type": "string",
        "description": "模型 \"v3.5\",\"v4\",\"v4.5\",\"v5\",“v5.5“,\"v6\""
      },
      "motion_mode": {
        "type": "string",
        "description": "\"normal\",\"fast\". \"fast\" 不支持 8s, \"v5\" 不支持此字段"
      },
      "water_mark": {
        "type": "boolean"
      },
      "style": {
        "type": "string",
        "description": "风格,可选:\"anime\"、\"3d_animation\"、\"day\"、\"cyberpunk\"、\"comic\",如非必要可不传"
      }
    },
    "required": [
      "prompt",
      "quality",
      "duration",
      "model",
      "water_mark"
    ],
    "x-apifox-orders": [
      "source_video_id",
      "video_media_id",
      "prompt",
      "quality",
      "duration",
      "model",
      "motion_mode",
      "water_mark",
      "style",
      "seed"
    ]
  },
  "required": true,
  "mediaType": "",
  "examples": [
    {
      "name": "示例 1",
      "value": "{\r\n    \"source_video_id\": 123123,\r\n    //\"video_media_id\":123123,\r\n    \"prompt\": \"across the universe\",\r\n    \"seed\": 123123,\r\n    \"quality\": \"540p\",\r\n    \"duration\": 8,\r\n    \"model\": \"v5\",\r\n    \"motion_mode\": \"normal\",\r\n    \"water_mark\": false\r\n}",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 150877188,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {}
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": []
  }
]