Back to Blog

Automate Video Editing with FFMPEGAPI.net's Image and Audio Merge

June 2026 FFMPEG API Team

In the world of content creation, automating video editing can save you countless hours. With the rise of API-driven solutions, developers can streamline their workflows by leveraging powerful tools like FFMPEGAPI.net. This article will guide you on how to merge images and audio into an MP4 video using the Image and Audio Merge endpoint of FFMPEGAPI.net.

Why Use FFMPEGAPI.net for Video Editing?

FFMPEGAPI.net is a hosted REST API that simplifies video and audio processing without the need for server setup or management of FFmpeg infrastructure. This allows developers to focus on building their applications while taking advantage of powerful video editing capabilities.

  • No server setup or maintenance required.
  • API-key authentication for secure access.
  • Perfect for automation, SaaS applications, and content pipelines.

Overview of the Image and Audio Merge Endpoint

The Image and Audio Merge endpoint allows developers to create MP4 videos from one or more image/audio pairs. Each image is displayed for the duration of its corresponding audio track, making it easy to create engaging video content.

  • Endpoint Path: /api/merge_image_audio
  • Method: POST
  • Supports multiple image and audio pairs using JSON requests.

Using the Image and Audio Merge API

To use the Image and Audio Merge API, you need to send a POST request to the endpoint with the appropriate parameters. You can provide either single pairs of images and audio or multiple pairs using arrays.

  • image_urls: Array of image URLs for multi-pair requests.
  • audio_urls: Array of audio URLs for multi-pair requests.
  • Optional parameters for transitions and zoom effects.
{
  "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 how you can easily create a video using curl or Python. For instance, if you want to merge two images with their corresponding audio files, you can use the following examples.

  • Use cURL for quick testing and integration.
  • Python examples can be used for automation in your scripts.
curl -X POST https://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
}'
import requests

url = 'https://ffmpegapi.net/api/merge_image_audio'
data = {
  "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
}

response = requests.post(url, json=data)
print(response.json())

FFMPEGAPI.net offers a robust and easy-to-use API for automating video editing tasks. By leveraging the Image and Audio Merge endpoint, developers can quickly create engaging video content without the hassle of managing FFmpeg infrastructure. Start streamlining your video processing workflows today with FFMPEGAPI.net!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free