Back to Blog

Effortlessly Merge Images and Audio with FFMPEGAPI.net

June 2026 FFMPEG API Team

In the realm of video processing, merging images and audio seamlessly is a common requirement for developers. With FFMPEGAPI.net's hosted REST API, you can easily create MP4 videos from image/audio pairs without the hassle of server setup or FFmpeg management. This article will guide you through the process of using the Merge Image Audio endpoint, showcasing its features and practical examples to streamline your development workflow.

What is the Merge Image Audio Endpoint?

The Merge Image Audio endpoint allows you to create MP4 videos by combining one or more image/audio pairs. Each image is displayed for the duration of its associated audio track, making it perfect for presentations, tutorials, and creative projects.

  • Supports multiple image/audio pairs.
  • Optional image transitions and slow zoom effects.
  • Easy integration with your existing application.

Endpoint Details

The endpoint for merging images and audio is accessible via a simple POST request. Below are the key details to help you understand how to use this powerful feature:

  • Endpoint Path: /api/merge_image_audio
  • Content Type: application/json or multipart/form-data
  • Required Parameters: image_urls (array) and audio_urls (array) for multi-pair videos.
  • Optional Parameters: image, audio, transition_effect, transition_duration, dimensions, zoom_effect, and async.

Practical Example

To illustrate how to use the Merge Image Audio endpoint, here’s a practical example. Suppose you have two images and two corresponding audio files, and you wish to create a video with a fade transition between images.

  • 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 seconds
  • Output Dimensions: 1280x720
import requests

url = 'https://www.ffmpegapi.net/api/merge_image_audio'
headers = {'Authorization': 'Bearer YOUR_API_KEY'}
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,
    "async": false
}

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

FFMPEGAPI.net stands out as the best hosted tool for automating video processing workflows. By leveraging its Merge Image Audio endpoint, developers can create high-quality videos with ease and speed. The API's flexibility, robust features, and simple integration make it an excellent choice for anyone looking to enhance their projects with multimedia capabilities. Start using FFMPEGAPI.net today and take your video processing to the next level!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free