Lipsyncs
Create a lipsync task
POST
/
api
/
lipsyncs
/
About Request Data Structure of Webhook
When the ‘create a lipsync task’ interface is requested, if the ‘webhook_url’ is passed in the parameters, the program will initiate a POST request to this network address when the task succeeds or fails, with the following content:
{
'id': 'string',
'status': 'string',
’failed_reason’: 'string',
'output': 'string',
}
Arguments:
id
(string): The unique identifier of the jobstatus
(string): The status of the job. Possible values arepending
,in_queue
,running
,failed
,done
failed_reason
(string): The reason of the failure if the job failedoutput
(string): The URL of the video if the job is done
Authorizations
X-API-ID
string
headerrequiredAPI ID, from your settings page.
X-API-KEY
string
headerrequiredAPI Key, from your settings page.
Body
name
string | null
text
string | null
audio
string | null
creator
string
requiredaspect_ratio
enum<string>
16:9
- Ratio 16 91:1
- Ratio 1 19:16
- Ratio 9 16
Available options:
16:9
, 1:1
, 9:16
webhook_url
string | null
Response
201 - application/json
id
string
requiredname
string | null
text
string | null
creator
string
requiredoutput
string | null
requiredaspect_ratio
enum<string>
16:9
- Ratio 16 91:1
- Ratio 1 19:16
- Ratio 9 16
Available options:
16:9
, 1:1
, 9:16
created_at
string
requiredupdated_at
string
requiredprogress
number
requiredfailed_reason
string | null
requiredstatus
enum<string>
requiredpending
- Pendingin_queue
- In Queuerunning
- Runningfailed
- Faileddone
- Done
Available options:
pending
, in_queue
, running
, failed
, done
audio_url
string | null
requiredwebhook_url
string | null