What this API does
Create the same Lip Sync you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
Good for
How it works (3 steps)
file_path.complete, then download the result from downloads.Key options
face_swap_mode, start_seconds/end_seconds, or a text promptCost
Credits are only charged for the frames that actually render. You’ll see an estimate when the job is queued, and the final total after it’s done.
For detailed examples, see the product page.
Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".
Body
Start time of your clip (seconds). Must be ≥ 0.
x >= 00
End time of your clip (seconds). Must be greater than start_seconds.
x >= 0.115
Provide the assets for lip-sync. For video, The video_source field determines whether video_file_path or youtube_url field is used
Give your video a custom name for easy identification.
"My Lip Sync video"
height is deprecated and no longer influences the output video's resolution.
Output resolution is determined by the minimum of:
This field is retained only for backward compatibility and will be removed in a future release.
width is deprecated and no longer influences the output video's resolution.
Output resolution is determined by the minimum of:
This field is retained only for backward compatibility and will be removed in a future release.
Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
x >= 112
Attributes used to dictate the style of the output
Success
Success
Unique ID of the video. Use it with the Get video Project API to fetch status and downloads.
"cuid-example"
Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
450
The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
If video generation fails, credits will be refunded, and this field will be updated to include the refund.
450