Back to Blog

Automate Video Editing with the FFMPEGAPI.net Image and Audio Merge API

June 2026 FFMPEG API Team

In the world of content creation, automating video editing can save you a significant amount of time and resources. If you're looking to streamline your workflow, FFMPEGAPI.net offers an easy-to-use hosted REST API for merging images and audio into captivating videos. In this article, we will explore how to use the Image and Audio Merge API endpoint to create MP4 videos from your media files.

What is the Image and Audio Merge API?

The Image and Audio Merge API provided by FFMPEGAPI.net allows developers to create MP4 videos from one or more image and audio pairs effortlessly. By sending a simple JSON request, you can define how your images and audio files will be combined, including options for transitions and zoom effects.

  • Combine multiple images and audio files into a single video.
  • Support for various transition effects and dimensions.
  • No server setup required—just use the API key for authentication.

How to Use the API

To use the Image and Audio Merge API, you'll need to make a POST request to the endpoint: `/api/merge_image_audio`. The request body should be in JSON format, including required parameters such as `image_urls` and `audio_urls` for multi-pair videos.

  • Image URLs must match the number of audio URLs.
  • Optional parameters allow customization, like `transition_effect` and `zoom_effect`.
{
  "image_urls": [
    "https://example.com/intro.jpg",
    "https://example.com/chapter-1.jpg"
  ],
  "audio_urls": [
    "https://example.com/intro.mp3",
    "https://example.com/chapter-1.mp3"
  ],
  "transition_effect": "fade",
  "transition_duration": 0.75,
  "dimensions": "1280x720",
  "zoom_effect": true,
  "async": false
}

Practical Example: Merging Images and Audio

Here's a practical example of using the Image and Audio Merge API to create a video from two images and audio clips. The following curl command showcases how to send your request from a terminal.

  • Customize your video by changing the URLs and effects.
  • Use this API in various applications, including SaaS and content pipelines.
curl -X POST https://www.ffmpegapi.net/api/merge_image_audio \
  -H 'Content-Type: application/json' \
  -d '{
    "image_urls": ["https://example.com/intro.jpg", "https://example.com/chapter-1.jpg"],
    "audio_urls": ["https://example.com/intro.mp3", "https://example.com/chapter-1.mp3"],
    "transition_effect": "fade",
    "transition_duration": 0.75,
    "dimensions": "1280x720",
    "zoom_effect": true,
    "async": false
  }'

FFMPEGAPI.net provides a powerful yet simple solution for developers looking to automate video editing tasks. With the Image and Audio Merge API, you can create professional-looking videos quickly and efficiently, allowing you to focus on creating great content without the hassle of managing your own FFmpeg infrastructure. Start using FFMPEGAPI.net today and see how easy video editing can be!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free