Background Customizations
Customize AI video backgrounds with transparency, scrolling websites, or custom video sources.
Transparent Background
You can enable a transparent background for the video by setting the transparent_background
parameter to true
.
This feature is only available when the fast
parameter is set to true
, and the output will be generated exclusively in .webm format.
Website Background
You can set a website as the background for your generated video by using the background_url
field. Simply provide the URL of the website you’d like to use, making sure it is publicly accessible and correctly formatted.
The resulting video will feature the website as a background, with the content scrolling vertically from top to bottom.
Background Scroll
You can configure the background scroll by adjusting the scroll distance, pattern, and whether the scroll should loop back to the top by adjusting the following parameter:
properties.background_scroll
: Enable or disable background scrolling.properties.background_scroll_type
: Defines the scroll pattern when background scrolling is enabled, with two options:human
(mimics natural scrolling with pauses) andsmooth
(continuous uniform scrolling).properties.background_scroll_depth
: Determines how far the background video will scroll down the webpage, with two options:middle
(scrolls to the middle of the page) orbottom
(scrolls all the way to the end).properties.background_scroll_return
: Defines the behavior after reaching the scroll depth set bybackground_scroll_depth
, with two options:return
(scrolls back up) orhalt
(pauses at the specified depth).
Custom Video Background
You can also set a custom video background by providing a direct, publicly accessible link (e.g., from an S3 bucket) to the background_source_url
parameter.