Back to Blog

Automate Video Editing: Adding Subtitles with FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital landscape, automating video editing tasks can save developers significant time and resources. FFMPEGAPI.net offers a powerful solution through its hosted REST API that simplifies processes like adding subtitles to videos. In this article, we'll explore how to use the Add Subtitles endpoint to enhance your video content efficiently.

Why Use FFMPEGAPI.net for Video Editing?

FFMPEGAPI.net is a hosted REST API for FFmpeg-powered video and audio processing. This means you can integrate sophisticated video editing features without the need for server setup or managing FFmpeg infrastructure. It's especially useful for developers, automation, SaaS applications, content pipelines, and AI agents.

  • No server management required.
  • API-key authentication for secure access.
  • Ideal for automation in various applications.

Understanding the Add Subtitles Endpoint

The Add Subtitles endpoint allows you to burn ASS subtitles into a video file seamlessly. This function is essential for making videos accessible to a wider audience by providing subtitle support.

Here are the key details you need to know about the endpoint:

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

Parameters Required for the API Call

When making a request to the Add Subtitles endpoint, you need to provide the following parameters:

1. **video_url**: The URL of the video you want to edit.

2. **subtitle_url**: The URL of the ASS/SSA subtitle file you want to burn into the video.

3. **async** (optional): If set to true, this will return a job_id immediately and process the request in the background.

Making a Request to Add Subtitles

To utilize the Add Subtitles endpoint, you can use a simple POST request. Below is a practical example using both curl and Python.

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"}'
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())

Automating video editing tasks like adding subtitles is crucial for improving user accessibility and enhancing content delivery. FFMPEGAPI.net provides an easy-to-use, powerful API that allows developers to integrate subtitle functionality into their applications without complex setup. Start automating your video editing process today with FFMPEGAPI.net and unlock the potential of video content.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free