CreateTask
description
Create a Video2Video task
Usage
URL
https://www.vmagic.app/api/create_video2video_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
video_style: string, // Video style, retrieved from QueryStyleList
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.
open_face_hd: boolean, // Enable or disable Face Clarity Optimization
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
}