Kling
Counterpart Task Creation
Create advanced lip-sync video tasks via CometAPI Kling POST /kling/v1/videos/advanced-lip-sync, submit audio and counterpart settings to generate synced results.
POST
Create an advanced Kling lip-sync task
Use this endpoint to create an advanced lip-sync task after you already identified faces in the source video.
Before you call it
- Start with Lip-Sync to get the
session_idand availableface_idvalues - Build one or more
face_chooseentries that map each face to an audio segment - Make sure the timing fields describe how the audio should align inside the video
Task flow
Identify faces first
Run Lip-Sync on the source video and keep the returned
session_id plus the target face_id values.Create the advanced lip-sync task
Submit
session_id and the face_choose array through this endpoint.Authorizations
Bearer token authentication. Use your CometAPI key.
Body
application/json