生成对口型(Lipsync)视频

POST /openapi/v2/video/lip_sync/generate

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

概览

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

参数

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

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "video_media_id": {
        "type": "integer",
        "description": "必传 source_video_id 或 video_media_id 通过pixverse 生成的视频"
      },
      "source_media_id": {
        "type": "integer",
        "description": "必传 source_video_id 或 video_media_id. 通过用户上传的视频"
      },
      "audio_media_id": {
        "type": "integer",
        "description": "必传audio_media_id 或 lip_sync_tts_speaker_id + lip_sync_tts_conent. 使用用户上传的音频"
      },
      "lip_sync_tts_speaker_id": {
        "type": "string",
        "description": "必传audio_media_id 或 lip_sync_tts_speaker_id + lip_sync_tts_conent. 使用我们的TTS 服务. 通过接口获取TTS 音色."
      },
      "lip_sync_tts_content": {
        "type": "string",
        "description": "必传audio_media_id 或 lip_sync_tts_speaker_id + lip_sync_tts_conent 使用我们的TTS 服务"
      }
    },
    "x-apifox-orders": [
      "video_media_id",
      "source_media_id",
      "audio_media_id",
      "lip_sync_tts_speaker_id",
      "lip_sync_tts_content"
    ]
  },
  "required": true,
  "mediaType": "",
  "examples": [
    {
      "name": "示例 1",
      "value": "{\r\n    \"video_media_id\": 0,\r\n    //\"source_media_id\":0,\r\n    //\"audio_media_id\":0,\r\n    \"lip_sync_tts_speaker_id\": \"auto\",\r\n    \"lip_sync_tts_content\": \"hello this is harry, where are you from?\"\r\n}",
      "mediaType": "application/json"
    }
  ],
  "oasExtensions": ""
}

响应

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