Skip to content

Face Recognition

POST https://www.kkiai.com/kling/v1/videos/identify-face

Request Parameters

Authorization

Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.

Example: Authorization: Bearer ********************

Header Parameters

Parameter NameTypeRequiredDescriptionExample
Content-TypestringOptionalapplication/json
AuthorizationstringOptionalBearer {{YOUR_API_KEY}}

Body Parameters (application/json)

Parameter NameTypeRequiredDescription
video_idstringOptionalThe ID of the video generated by Kling AI; used to specify the video and determine whether the video is available for lip-sync service; either this or the video_url parameter must be filled, but not both can be empty or both have values; only supports videos generated within 30 days with a duration not exceeding 60 seconds
video_urlstringOptionalThe retrieval URL of the uploaded video; used to specify the video and determine whether the video is available for lip-sync service; either this or the video_id parameter must be filled, but not both can be empty or both have values; video files support .mp4/.mov formats, file size not exceeding 100MB, video duration not exceeding 60s and not less than 2s, only supports 720p and 1080p, with both width and height between 512px and 2160px; if the above validation fails, error codes and information will be returned; the system will validate the video content, and if there are issues, error codes and information will be returned

Request Example

json
{
    "video_id": "827297867148050499",
    "video_url": ""
}

cURL Example

bash
curl --location --request POST 'https://www.kkiai.com/kling/v1/videos/identify-face' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "video_id": "827297867148050499",
    "video_url": ""
}'

Response

🟢 200 Success

Response Example

json
{}