Back to Blog

Automate Video Editing: Adding Subtitles with FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital content landscape, automation is key to efficient workflows, especially when it comes to video editing. If you’re a developer seeking to automate the addition of subtitles to videos, FFMPEGAPI.net offers a robust solution that requires no server setup. This article will guide you through the process of using the FFMPEGAPI.net API to burn subtitles into videos seamlessly.

Why Use FFMPEGAPI.net for Video Processing?

FFMPEGAPI.net provides a hosted REST API that simplifies video and audio processing without the need for complex infrastructure management. This is particularly advantageous for developers, SaaS applications, and automation solutions.

  • No server setup required, making it easy for developers.
  • API-key authentication ensures secure access.
  • Supports automation for content pipelines and AI agents.

Understanding the Add Subtitles Endpoint

The core functionality for your automation needs lies in the 'Add Subtitles' endpoint. This endpoint allows you to burn ASS subtitles into a video quickly and efficiently.

Endpoint Details

The 'Add Subtitles' endpoint is a POST request at the path '/api/add_subtitles'. It requires two main parameters: the video URL and the subtitle file URL. Optionally, you can request the operation to process asynchronously.

  • Method: POST
  • Path: /api/add_subtitles
  • Content Type: application/json
import requests

url = 'https://www.ffmpegapi.net/api/add_subtitles'
data = {
    'video_url': 'https://example.com/video.mp4',
    'subtitle_url': 'https://example.com/subtitles.ass'
}

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

Parameters for the Add Subtitles Endpoint

When using the Add Subtitles endpoint, you need to provide the following parameters:

1. **video_url**: The URL of the video you want to edit. This parameter is required.

2. **subtitle_url**: The URL of the ASS/SSA subtitle file. This is also a required parameter.

3. **async**: An optional boolean parameter. If set to true, it returns a job_id immediately and processes the request in the background.

curl -X POST https://www.ffmpegapi.net/api/add_subtitles \
-H 'Content-Type: application/json' \
-d '{"video_url":"https://example.com/video.mp4", "subtitle_url":"https://example.com/subtitles.ass"}'

FFMPEGAPI.net provides a powerful, user-friendly solution for automating video editing tasks such as adding subtitles. With no need for server management and a straightforward API, developers can enhance their content workflows efficiently. If you're looking to automate video processing, consider FFMPEGAPI.net for your next project.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free