Back to Blog

Automate Video Editing with FFMPEGAPI.net: Image and Audio Merge

June 2026 FFMPEG API Team

In today’s digital landscape, automating video editing processes can greatly enhance the efficiency of your workflows. FFMPEGAPI.net offers a powerful hosted REST API for merging images and audio, enabling developers to create videos without dealing with the complexities of FFmpeg infrastructure. This article will guide you through using the Image and Audio Merge endpoint of FFMPEGAPI.net and demonstrate how to implement it effectively in your applications.

Understanding the Image and Audio Merge Endpoint

The Image and Audio Merge endpoint allows you to combine image/audio pairs to create an MP4 video. Each image is displayed for the duration of its corresponding audio file, giving you control over how visuals and sounds interact.

You can send requests in JSON format or as multipart/form-data, making integration into your development workflow straightforward.

  • Endpoint Path: /api/merge_image_audio
  • HTTP Method: POST
  • Content Types: application/json or multipart/form-data

Parameters for Merging Images and Audio

To successfully merge images and audio, you need to provide the correct parameters. Here’s a breakdown of the essential ones you can include in your API request.

  • image_urls (optional): Array of image URLs for multi-pair JSON requests.
  • audio_urls (optional): Array of audio URLs, corresponding to the images.
  • image (optional): Single image URL or image file for a single pair.
  • audio (optional): Single audio URL or audio file for a single pair.
  • transition_effect (optional): Specify visual transitions between images.
  • transition_duration (optional): Specify duration for the transition effect.
  • dimensions (optional): Set output dimensions for the video.
  • zoom_effect (optional): Enable or disable slow zoom on images.

Example Request to Merge Images and Audio

Here’s a practical example of how to use the Image and Audio Merge endpoint to create a video from multiple image/audio pairs. This example uses JSON format for the request.

{
  "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
}
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}'

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net provides a seamless experience for video and audio processing without the need for local setup or maintenance of FFmpeg infrastructure. The API-key authentication ensures that your development workflow remains secure and manageable.

Whether you're building automation tools, SaaS applications, content pipelines, or AI agents, FFMPEGAPI.net is designed to cater to developers’ needs, making it the go-to solution for multimedia tasks.

Automating video editing with FFMPEGAPI.net's Image and Audio Merge endpoint provides developers with a robust and flexible solution. By utilizing the easy-to-use API, you can focus on building innovative applications while leaving the complexities of video processing to FFMPEGAPI.net. Start enhancing your projects today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free