The "Talking Face" API has been renamed to the "LipSync" API to more accurately reflect its core functionality. All features and endpoints remain unchanged, and existing integrations will continue to function as expected.
The LipSync API generates a talking avatar from audio and video inputs. The resulting avatar mirrors the facial expressions and vocal tone of a real person while providing support for multiple languages.
taskId.Enum: application/json
Bearer authentication token. Example: Bearer {{APIKey}}.
The URL of the vocal audio file.
The URL of the source video.
The URL of the original audio. If the billing duration cannot be determined from this file, the task will fail.
Specifies the width of the output video. If set to 0, the output will maintain the source video's width.
Specifies the height of the output video. If set to 0, the output will maintain the source video's height.
Enables facial clarity and sharpness enhancement: 0 for disabled, 1 for enabled.
Specifies the frame rate (Default: 25 fps). Use "original" to match the input video(capped at 60 fps).
Billing: If set to "original", the cost scales from the base 1 credits/s to: (input FPS / 25) * 1 credits/s.
Returns 0 for success, or a specific error code.
Returns "success" or a descriptive error message.
The unique identifier for the task. Use this ID with the Polling API to retrieve the generated output.
Use the Polling API to retrieve the processing results.
Alternatively, you can enable Callback to receive task results automatically upon completion.
{
"code": 0,
"message": "success",
"data": {
"task": {
"taskId": "b08337dc08d7428daa64b3d5e61b8350",
"status": 3,
},
"videos" : [{
"videoUrl": "https://dreamface-resource-aigc.oss-us-east-1.aliyuncs.com/apiDocsAdmin/2025-4-1744793368637-talkface_result.mp4",
"videoType":"mp4"
}]
}
}curl -X POST 'https://api.newportai.com/api/async/lipsync' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer {{key}}" \
-d '{
"srcVideoUrl": "https://d2t5pyzt5qvy2d.cloudfront.net/api/static_resource/prod/default/mq0MSmKgPGQQsxS9UovqH.mp4",
"audioUrl": "https://d2t5pyzt5qvy2d.cloudfront.net/api/static_resource/prod/default/AoOVLxqINsl1dTAAhnmAW.wav",
"videoParams": {
"video_width": 1920,
"video_height": 1080,
"video_enhance": 1
}
}'{
"code":0,
"message":"success",
"data":{
"taskId":"b08337dc08d7428daa64b3d5e61b8350"
}
}