Back to Blog

Automate Video Editing with FFMPEGAPI.net: Adding Subtitles via REST API

June 2026 FFMPEG API Team

In today’s digital age, video content is king, and enhancing your videos with subtitles can improve accessibility and engagement. FFMPEGAPI.net provides developers with a powerful solution to automate video editing tasks, such as adding subtitles, through its hosted REST API. In this article, we will explore how to use the 'Add Subtitles' endpoint to seamlessly integrate subtitle burning into your video processing workflows.

What is FFMPEGAPI.net?

FFMPEGAPI.net is a hosted REST API designed for FFmpeg-powered video and audio processing. It eliminates the need for server setup or management of FFmpeg infrastructure, allowing developers to focus on building their applications.

  • No server setup required
  • API-key authentication for secure access
  • Ideal for various use cases including automation, SaaS applications, and AI agents

Overview of the Add Subtitles Endpoint

The 'Add Subtitles' endpoint allows you to burn ASS/SSA subtitles directly into a video. This is particularly useful for creating accessible content or for audiences who prefer reading along.

With just a few parameters, you can upload a video and its corresponding subtitle file, and the API will handle the processing for you.

  • Endpoint Path: POST /api/add_subtitles
  • Content Type: application/json
  • Supports both synchronous and asynchronous processing

How to Use the Add Subtitles Endpoint

To use the Add Subtitles endpoint, you need to send a POST request with the required parameters: video_url and subtitle_url. Optionally, you can include the 'async' parameter to process the request in the background.

  • video_url: The URL of the video to be processed (required)
  • subtitle_url: The URL of the ASS/SSA subtitle file (required)
  • async: Process the request in the background (optional)
curl -X POST https://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", "async":true}'
import requests

url = 'https://ffmpegapi.net/api/add_subtitles'
data = {'video_url': 'https://example.com/video.mp4', 'subtitle_url': 'https://example.com/subtitles.ass', 'async': True}
response = requests.post(url, json=data)
print(response.json())

Using FFMPEGAPI.net's Add Subtitles endpoint, developers can easily automate the process of adding subtitles to videos. The flexibility of the API allows for integration into various applications, making it an ideal choice for those looking to enhance their video content effortlessly. With its ease of use and robust features, FFMPEGAPI.net stands out as the best hosted tool for video and audio processing workflows.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free