Create a lipsync task
API that converts text or audio files to vivid videos of a single people speaking. Creating a video through this endpoint costs 5 credits for every 30 seconds.
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:
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
API ID, from your settings page.
API Key, from your settings page.
Body
The aspect ratio of the video
16x9
- Ratio 16 91x1
- Ratio 1 19x16
- Ratio 9 16
16x9
, 1x1
, 9x16
The avatar id to be used for lipsync, you can get the list of accents from /api/voices endpoint.
Use your own audio file url for lipsync instead of the voiceover generated by us from text input. Either audio or text is required. If both are provided, audio will be used
The url of the background asset image
1024
Caption offset x is horizontaly relative to the center of the canvas in percentage, range from -0.5 to 0.5, default to 0
Caption offset y is vertically relative to the center of the canvas in percentage, range from -0.5 to 0.5, default to -0.4, which is 40% below center
The style of the captions
normal-black
- NORMAL_BLACKnormal-white
- NORMAL_WHITEnormal-red
- NORMAL_REDnormal-blue
- NORMAL_BLUEneo
- NEObrick
- BRICKfrenzy
- FRENZYverana
- VERANAmustard
- MUSTARDglow
- GLOWmint
- MINTcoolers
- COOLERSbilo
- BILOtoons
- TOONSdeep-blue
- DEEP_BLUEmystique
- MYSTIQUEcaution
- CAUTIONduality
- DUALITY
normal-black
, normal-white
, normal-red
, normal-blue
, neo
, brick
, frenzy
, verana
, mustard
, glow
, mint
, coolers
, bilo
, toons
, deep-blue
, mystique
, caution
, duality
The creator id associated with the lipsync request, you can get the list of creators from /api/personas endpoint.
When true, the background will be transparent and subtitles will not be rendered on the video. Default is false.
The name of the lipsync request.
255
Whether to include captions in the output video. Default is true, video without caption.
Whether to include background music in the output video. Default is true, video without music.
The text to be used for voiceover
3600
The webhook URL to be called upon completion of the lipsync request
200
Response
The aspect ratio of the video
16x9
- Ratio 16 91x1
- Ratio 1 19x16
- Ratio 9 16
16x9
, 1x1
, 9x16
Credits used in this api call
The reason for failure, if the lipsync request failed
Is the video hidden in the website projects page
The media job associated with the lipsync request.
Output video
Preview video
Preview audio
Status of the lipsync request
The avatar id to be used for lipsync, you can get the list of accents from /api/voices endpoint.
The url of the background asset image
1024
Caption offset x is horizontaly relative to the center of the canvas in percentage, range from -0.5 to 0.5, default to 0
Caption offset y is vertically relative to the center of the canvas in percentage, range from -0.5 to 0.5, default to -0.4, which is 40% below center
The style of the captions
normal-black
- NORMAL_BLACKnormal-white
- NORMAL_WHITEnormal-red
- NORMAL_REDnormal-blue
- NORMAL_BLUEneo
- NEObrick
- BRICKfrenzy
- FRENZYverana
- VERANAmustard
- MUSTARDglow
- GLOWmint
- MINTcoolers
- COOLERSbilo
- BILOtoons
- TOONSdeep-blue
- DEEP_BLUEmystique
- MYSTIQUEcaution
- CAUTIONduality
- DUALITY
normal-black
, normal-white
, normal-red
, normal-blue
, neo
, brick
, frenzy
, verana
, mustard
, glow
, mint
, coolers
, bilo
, toons
, deep-blue
, mystique
, caution
, duality
The creator id associated with the lipsync request, you can get the list of creators from /api/personas endpoint.
When true, the background will be transparent and subtitles will not be rendered on the video. Default is false.
The name of the lipsync request.
255
Whether to include captions in the output video. Default is true, video without caption.
Whether to include background music in the output video. Default is true, video without music.
The text to be used for voiceover
3600
The webhook URL to be called upon completion of the lipsync request
200