Back to Blog

How to Merge Images and Audio Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of media processing, the ability to efficiently merge images and audio into engaging videos is crucial for developers, content creators, and automation workflows. FFMPEGAPI.net offers a powerful REST API that simplifies this task, enabling you to create MP4 videos from image/audio pairs with ease. In this article, we'll explore the Image and Audio Merge endpoint and how to implement it in your projects.

What is the Image and Audio Merge Endpoint?

The Image and Audio Merge endpoint allows you to create an MP4 video by combining one or more image/audio pairs. Each image is displayed for the duration of its corresponding audio file, allowing for a seamless audiovisual experience.

  • Supports multiple image/audio pairs.
  • Allows optional image transitions and a slow zoom effect.
  • Easy to use with JSON requests.

Making a Request to the API

To use the Image and Audio Merge functionality, you can send a POST request to the following endpoint:

The request can include arrays of image and audio URLs for multi-pair videos or single image/audio pairs using backward-compatible strings.

  • Endpoint: POST /api/merge_image_audio
  • Content-Type: application/json or multipart/form-data
  • Parameters include image_urls, audio_urls, transition_effect, and more.
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,
    'async': false
}

response = requests.post(url, json=data)
print(response.json())
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, "async": false }'

Benefits of Using FFMPEGAPI.net

FFMPEGAPI.net is designed as a hosted solution for developers, eliminating the need for server setup or FFmpeg infrastructure management. Here are some key advantages:

The API-key authentication ensures secure access for your workflows, making this tool ideal for SaaS apps and content pipelines.

  • No server management required.
  • Fast and efficient media processing.
  • Easy integration into existing applications.

FFMPEGAPI.net provides a seamless solution for merging images and audio into stunning videos with its Image and Audio Merge endpoint. By leveraging this hosted REST API, developers can streamline their workflows, enhance their content pipelines, and focus on what they do best—creating compelling media. Start using FFMPEGAPI.net today and discover the ease of integrating powerful media processing into your applications.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free