Image to Video I/O
Learn how to configure input and output to use the Image to Video API.
Intro
The Image to Video API allows you to turn a simple product photo into an animated visual asset.
Cost
- 35 credits per 5 second video. 
- 70 credits per 10 second video. 
Rate limits
- 1 generation per 1 second. 
- 15 generations per 1 minute. 
Limitations
- Only one input image can be processed per request. 
- Only one video can be generated per request. 
- Each side of the input image should be greater than or equal to 300px. 
- Input image format should be JPG, PNG, WEBP, HEIC or HEIF. 
Input
URL of the input image should be from 1 to 512 characters. The image must be accessible by our system.
{
    "input": "https://letsenhance.io/docs/assets/samples/burger.jpg"
}Connected storage
You can connect Cloud Storage and use it as a source for images. Currently, our API supports AWS S3 and Google Cloud Storage.
After connecting your Cloud Storage, you can refer the storage name as an input.
{
    "input": "storage://storage-name/input-path/input.png"
}Output
Configuring output is optional. By default, you may omit the output option from the request payload. In this case, our system stores the result in a temporary bucket with a lifespan of 24 hours and provides a public URL to the video.
Alternatively, you can use a connected Cloud Storage: just configure the path to the folder where you want to store results.
{
    "output": "storage://storage-name/output-path/output.mp4"
}You can also specify a folder output, in this case a unique filename will be generated for the output.
{
    "output": "storage://storage-name/output-path/"
}Last updated
