通过 CometAPI Kling POST /kling/v1/videos/advanced-lip-sync 创建高级对口型视频任务,提交音频和对口型设置以生成同步结果。
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/advanced-lip-sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "806556222048190514",
"face_choose": [
{
"face_id": "0",
"sound_file": "https://cdn1.suno.ai/e5c97078-3260-4354-a3a6-1d7249262a48.mp3",
"sound_start_time": "1200",
"sound_end_time": "5000",
"sound_insert_time": "0"
}
]
}
'{
"code": 123,
"message": "<string>",
"data": {
"task_id": "<string>",
"task_status": "<string>",
"created_at": 123,
"updated_at": 123
}
}session_id 和可用的 face_id 值face_choose 条目,将每张人脸映射到对应的音频片段先识别人脸
session_id 以及目标 face_id 值。Bearer token authentication. Use your CometAPI key.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/advanced-lip-sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "806556222048190514",
"face_choose": [
{
"face_id": "0",
"sound_file": "https://cdn1.suno.ai/e5c97078-3260-4354-a3a6-1d7249262a48.mp3",
"sound_start_time": "1200",
"sound_end_time": "5000",
"sound_insert_time": "0"
}
]
}
'{
"code": 123,
"message": "<string>",
"data": {
"task_id": "<string>",
"task_status": "<string>",
"created_at": 123,
"updated_at": 123
}
}