对口型
接口: POST https://4zapi.com/kling/v1/videos/lip-sync
1、生成视频 2、此接口要求视频id或视频url 使用视频id,需要在父任务账号上使用,请尽快操作避免资源包过期。 官方文档:https://app.klingai.com/cn/dev/document-api/apiReference/model/videoTolip
系统提供多种音色可供选择,具体音色效果、音色ID、音色语种对应关系点此查看
参数
Content-Type(header, string, 必填): 请求体 Content-Type,一般为 application/jsonAccept(header, string, 必填): 期望的响应 Content-TypeAuthorization(header, string, 必填): Bearer API Key
请求体 (application/json)
input(object, 必填): 输入内容
请求示例
{
"input": {
"mode": "std",
"text": "今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好今天天气很好",
"video_id": "827964097668337738",
"video_url": "https://example.com/sample.mp4",
"voice_id": "girlfriend_1_speech02",
"voice_language": "zh"
}
}