首尾帧生成视频

POST /openapi/v2/video/transition/generate

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

概览

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

参数

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

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "duration": {
        "type": "integer",
        "description": "视频生成时长\nv.3.5/v4/v4.5 : 5/8 (v3.5 1080p 无法使用 8)\nv5 : 5/8\nv5.5/v5.6 : 5/8/10 (1080p 无法使用 10)\nv6/c1 : 1~15"
      },
      "first_frame_img": {
        "type": "integer",
        "description": "上传图片后获取的img_id"
      },
      "last_frame_img": {
        "type": "integer",
        "description": "上传图片后获取的img_id"
      },
      "model": {
        "type": "string",
        "description": "模型 \"v3.5\",\"v4\",\"v4.5\", \"v5\",\"v5.5\",\"v5.6\",\"v6\",\"c1\""
      },
      "motion_mode": {
        "type": "string",
        "description": "\"normal\",\"fast\". \"fast\" 不支持 8s, \"v5\" 不支持此字段"
      },
      "prompt": {
        "type": "string",
        "description": "2048 Characters 以内"
      },
      "quality": {
        "type": "string",
        "description": "\"360p\",\"540p\",\"720p\",\"1080p\""
      },
      "sound_effect_switch": {
        "type": "boolean",
        "description": "v5 以下 or 有template_id时可使用.true, false\n如果想一起使用sound_effect 请传为true"
      },
      "sound_effect_content": {
        "type": "string",
        "description": "可输入想要的音效, 如果不填写会根据视频内容生成音效"
      },
      "lip_sync_tts_switch": {
        "type": "boolean",
        "description": "true, false\n如果想一起使用对口型 请传为true"
      },
      "lip_sync_tts_content": {
        "type": "string",
        "description": "~140Chracters (UTF-8). 可输入想要的tts 内容\n可适用范围 : \"v3.5\",\"v4\",\"v4.5\",\"v5\""
      },
      "lip_sync_tts_speaker_id": {
        "type": "string",
        "description": "获取TTS 音色后的id\n可适用范围 : \"v3.5\",\"v4\",\"v4.5\",\"v5\""
      },
      "seed": {
        "type": "integer",
        "description": "可传随机数 0 - 2147483647"
      },
      "generate_audio_switch": {
        "type": "boolean",
        "description": "支持 v5.5, v5.6, v6,c1 使用 / 控制开关Audio. true: Audio on , false: Audio off"
      }
    },
    "required": [
      "duration",
      "first_frame_img",
      "last_frame_img",
      "model",
      "prompt",
      "quality"
    ],
    "x-apifox-orders": [
      "duration",
      "first_frame_img",
      "last_frame_img",
      "model",
      "motion_mode",
      "prompt",
      "quality",
      "generate_audio_switch",
      "sound_effect_switch",
      "sound_effect_content",
      "lip_sync_tts_switch",
      "lip_sync_tts_content",
      "lip_sync_tts_speaker_id",
      "seed"
    ]
  },
  "required": true,
  "mediaType": "",
  "examples": [
    {
      "name": "示例 1",
      "value": "{\r\n    \"prompt\": \"trasnfrom into character\",\r\n    \"model\": \"v4.5\",\r\n    \"duration\": 5,\r\n    \"quality\": \"540p\",\r\n    \"motion_mode\": \"normal\",\r\n    \"seed\": 937433858,\r\n    \"first_frame_img\": 0,\r\n    \"last_frame_img\": 0\r\n}",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

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