Supported asset types
The follow file extensions are supported by our APIs:Video
mp4, m4v, mov, webm
Audio
mp3, mpeg, wav, aac, aiff, flac
Image
png, jpg, jpeg, webp, avif, jp2, tiff, bmp
gif extension is only supported by face swap API’s video_file_path field.Available options for assets
You have two options when it come to using input files:- Pass a URL as the input (simplest)
- Upload to our storage (do not require hosting files yourself)
Passing a file URL
This is the simplest method if you have the files hosted somewhere. When calling our APIs, you can simply pass the URL as thevideo_file_path, image_file_path, or audio_file_path.
For Example
Upload to Magic Hour storage
To upload assets for video generation, you’ll need to follow these steps:- Request upload URLs for your assets, you need to specify the file extension and the type of the file.
- Upload the files to the provided URLs by sending a PUT request.
- Use the
file_pathvalue from the original upload url response in your API calls.
The upload file function is only available in the following SDKs:
- Python SDK v0.36.0 or later.
- Node SDK v0.37.0 or later.