CreateTask
description
Create a Video Faceswap task
Usage
URL
https://www.vmagic.app/api/create_face_swap_task_api
Header
{
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
}
Params
{
video_url: string, // Video url mp4 format example: https://www.example.com/test.mp4
image_url: string, // image url only support .png format example: https://www.example.com/test_image.png
first_video_time: number, // Select the first x seconds of video to process [3, 6, 9, 10, 15], 0 for all processing, the length of the video to be processed is not more than 20s.
webhook_url?: string // If filled, the url will be requested on task completion with the task results
}
Response
{
data?: {
task_id: string // task_id, query the status of the task by this id, or receive a webhook
},
success: boolean,
errorMsg: string,
error_code: number
}