Back to Blog

Automate Video Editing with FFMPEGAPI.net: Merging Images and Audio Effortlessly

June 2026 FFMPEG API Team

In today's digital world, automating video editing tasks has become essential for developers looking to streamline workflows. FFMPEGAPI.net offers a powerful and user-friendly hosted REST API that allows you to merge images and audio seamlessly. This article explores how you can leverage the '/api/merge_image_audio' endpoint to create engaging videos effortlessly.

Understanding the '/api/merge_image_audio' Endpoint

The '/api/merge_image_audio' endpoint is designed to combine one or more image/audio pairs into a single MP4 video. Each image is displayed for the duration of its corresponding audio track, making it perfect for creating videos from slideshows or presentations.

  • Create videos from multiple image/audio pairs.
  • Customize transitions between images.
  • Add a slow zoom effect to enhance visuals.
{
  "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
}

Key Features of the Merge Image and Audio API

FFMPEGAPI.net provides a robust set of features that make video editing straightforward and accessible for developers of all skill levels. Here are some highlighted features:

You can send either JSON requests using arrays for multiple pairs or legacy strings for single image/audio pair processing.

  • Support for image URLs and audio URLs for multi-pair videos.
  • Backward compatibility for single image/audio processing.
  • Variety of transition effects including fade, wipe, and slide.

Using the API in Your Projects

Integrating FFMPEGAPI.net into your development projects is simple. You just need to authenticate using your API key and make a POST request to the '/api/merge_image_audio' endpoint. Here's how you can do it using CURL:

This example demonstrates how to merge images and audio into a single video file.

curl -X POST https://ffmpegapi.net/api/merge_image_audio \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-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
}'

With FFMPEGAPI.net's '/api/merge_image_audio' endpoint, automating your video editing tasks has never been easier. By leveraging this powerful API, developers can create high-quality videos with customizable features quickly and efficiently. Whether you’re building automation tools, SaaS applications, or content pipelines, FFMPEGAPI.net is the go-to solution for all your FFmpeg-powered video processing needs.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free