Usa la API de Kling Lip-Sync (POST /kling/v1/videos/identify-face) para detectar rostros en un video e impulsar flujos de trabajo precisos de generación de video con sincronización labial.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/identify-face \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://replicate.delivery/xezq/lZfr3rskBEVLDCytear4lUo92fOpAcoblFWzk6e06WEnC3PTB/tmpny051d_c.mp4"
}
'{
"code": 123,
"message": "<string>",
"request_id": "<string>",
"data": {
"session_id": "<string>",
"face_data": [
{
"face_id": "<string>",
"face_image": "<string>",
"start_time": 123,
"end_time": 123
}
]
}
}session_id que agrupa el resultado actual de detección de rostrosface_data con uno o más rostros detectadosface_id, imagen de vista previa y rango de tiempoBearer token authentication. Use your CometAPI key.
Public URL of the video to analyze for face identification.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/identify-face \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://replicate.delivery/xezq/lZfr3rskBEVLDCytear4lUo92fOpAcoblFWzk6e06WEnC3PTB/tmpny051d_c.mp4"
}
'{
"code": 123,
"message": "<string>",
"request_id": "<string>",
"data": {
"session_id": "<string>",
"face_data": [
{
"face_id": "<string>",
"face_image": "<string>",
"start_time": 123,
"end_time": 123
}
]
}
}