Skip to main content
POST
/
kling
/
v1
/
videos
/
identify-face
Identify Face
curl --request POST \
  --url https://www.anyfast.ai/kling/v1/videos/identify-face \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_url": "https://example.com/person-speaking.mp4",
  "video_id": "860260754053148756"
}
'
{
  "code": 0,
  "message": "SUCCEED",
  "data": {
    "session_id": "abc123-session-id",
    "face_list": [
      {
        "face_id": "face_001",
        "face_rect": {
          "x": 120,
          "y": 80,
          "width": 200,
          "height": 250
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
video_url
string

Public URL of the video to analyze. The video must contain at least one clearly visible human face. Required if video_id is not provided.

Example:

"https://example.com/person-speaking.mp4"

video_id
string

ID of a video previously generated by Kling (e.g. from a text-to-video or image-to-video task result). Required if video_url is not provided.

Example:

"860260754053148756"

Response

Face detection successful

code
integer
Example:

0

message
string
Example:

"SUCCEED"

data
object