Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
识别人脸、创建 Kling 对口型任务并查询生成的视频。
session_id
face_id
face_choose[].audio_id
face_choose[].sound_file
id
POST /kling/v1/videos/advanced-lip-sync
curl --request POST \ --url https://www.anyfast.ai/kling/v1/videos/advanced-lip-sync \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "session_id": "923976763809071143", "face_choose": [ { "face_id": "0", "sound_file": "https://example.com/speech.mp3", "sound_start_time": 0, "sound_end_time": 3000, "sound_insert_time": 1000, "sound_volume": 1.0, "original_audio_volume": 1.0 } ], "watermark_info": {"enabled": false} }'
Bearer YOUR_API_KEY
data.face_data[].face_id
sound_file
audio_id
0
2
{ "code": 0, "message": "", "request_id": "", "data": { "task_id": "asyntask_AhmnzEDa847dDNcIR4sQ385evWXR44V7", "task_status": "submitted", "created_at": 1788321762398, "updated_at": 1788321762398 } }
submitted
GET /kling/v1/videos/advanced-lip-sync/{task_id}
curl --request GET \ --url https://www.anyfast.ai/kling/v1/videos/advanced-lip-sync/asyntask_AhmnzEDa847dDNcIR4sQ385evWXR44V7 \ --header 'Authorization: Bearer YOUR_API_KEY'
{ "code": 0, "message": "", "data": { "task_id": "asyntask_AhmnzEDa847dDNcIR4sQ385evWXR44V7", "task_status": "succeed", "task_result": { "videos": [ { "url": "https://example.com/lip-sync-result.mp4", "duration": "12" } ] }, "created_at": 1788321762000, "updated_at": 1788322364000 } }
processing
succeed
failed
POST /kling/v1/videos/identify-face
curl --request POST \ --url https://www.anyfast.ai/kling/v1/videos/identify-face \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "video_url": "https://example.com/person-speaking.mp4" }'
video_id
video_url
{ "code": "0", "message": "SUCCEED", "requestId": "request_01J8K7H4T7FQ6V6K6A", "data": { "session_id": "926174688823869522", "face_data": [ { "face_id": "0", "face_image": "https://example.com/detected-face.png", "start_time": 0, "end_time": 12000 } ], "final_unit_deduction": "0.05", "final_balance_deduction": { "quota": "0", "list_price": "0" } } }
face_choose[].face_id
此页面对您有帮助吗?