audio2video - Convert MP3 into MP4 with Images
Converts a mp3 into an mp4 file. Adds a thumbnail and images for given durations. The result is an URL to the mp4 that is available for 48 hours.
url
url
The URL of the audio file. You can use 1001fx uploadasset for temporary asset upload.
Example:
https://api.1001fx.com/testdata/jingle.mp3
images
array<object>
Array of images to show in your video. Notice: The length of your video will be the sum of your video durations. It is recommended that all your images should have the same aspect ratio.
Minimum: 1
Maximum: 10
Example:
[
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1678977739_Changelog3.png&w=828&q=75",
"duration": 2
},
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1680622414_1001fxMakeJS.png&w=828&q=75",
"duration": 2
},
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1680511208_Charts-Blogpost.png&w=828&q=75",
"duration": 2
},
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1679924358_AirtableImages.png&w=828&q=75",
"duration": 2
},
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1679501411_speakerimage17.png&w=828&q=75",
"duration": 2
},
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1679475802_1001fxMake_Live.png&w=828&q=75",
"duration": 2
},
{
"imageUrl": "https://1001fx.com/_next/image?url=https%3A%2F%2Fprod-1001fx-public.b-cdn.net%2Fmisc%2F1679329895_Podcast_Ad_Checker1.png&w=828&q=75",
"duration": 2
}
]
imageUrl
url
The URL of an image to show in your video. You can use 1001fx uploadasset for temporary asset upload.
duration
number
The number of seconds this image should be shown.
thumbnailImageUrl
url
The URL of the thumbnail image. You can use 1001fx uploadasset for temporary asset upload.
Example:
https://api.1001fx.com/testdata/image.jpg
videoResolution
object
Video Resolution of your video. Defaults to 1920x1080px. The resolution should match your image aspect ratio.
Example:
{
"width": 1280,
"height": 720
}
width
number
The width of your video output in px.
Minimum: 1
Maximum: 1920
height
number
The height of your video output in px.
Minimum: 1
Maximum: 1920