cURL
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 } } ] } }
分析视频中的人脸,返回 session_id 和人脸列表。session_id 是对口型生成接口的必填参数。
session_id
本接口为同步调用,结果立即返回,无需轮询。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
待分析视频的公网 URL,视频中须包含至少一张清晰可见的人脸。 与 video_id 二选一必填。
video_id
"https://example.com/person-speaking.mp4"
Kling 之前生成的视频 ID(如文生视频或图生视频任务的结果)。 与 video_url 二选一必填。
video_url
"860260754053148756"
人脸检测成功
0
"SUCCEED"
Show child attributes