Back to Blog

How to Add Subtitles to Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

Adding subtitles to videos can enhance accessibility and engagement. With FFMPEGAPI.net, developers can easily integrate subtitle burning capabilities into their applications without worrying about server setups or FFmpeg management. This article explores how to use the Add Subtitles endpoint to burn ASS subtitles into any video.

Why Use FFMPEGAPI.net for Subtitle Processing

FFMPEGAPI.net provides a simple, hosted solution for video and audio processing that is perfect for developers. By using our REST API, you can focus on building your applications without needing to manage FFmpeg infrastructure yourself.

  • No server setup required.
  • API-key authentication for secure access.
  • Ideal for automation, SaaS applications, and content pipelines.

Understanding the Add Subtitles Endpoint

The Add Subtitles endpoint allows you to burn ASS/SSA subtitles directly into a video. This is accomplished by making a POST request to the /api/add_subtitles path. The API will download both the video and the subtitle files, then process the video to include the subtitles.

This feature is particularly useful for developers who need to automate video processing workflows in their applications.

Parameters for the Add Subtitles Endpoint

When using the Add Subtitles endpoint, you need to provide specific parameters in your request. The following parameters are required:

- **video_url**: The URL of the video you want to add subtitles to.

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

- **async**: This optional parameter allows you to return a job ID immediately and process the video in the background.

  • video_url (string, required): The URL of the video.
  • subtitle_url (string, required): The URL of the ASS/SSA subtitle file.
  • async (boolean, optional): Process the job asynchronously.

Example Request to Add Subtitles

Here is a practical example of how to use the Add Subtitles endpoint with a sample video and subtitle URL. You can test this using curl or Python requests.

For example, to use curl, you can structure your command like this:

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())

FFMPEGAPI.net offers an unparalleled experience for developers looking to add subtitles to videos seamlessly. With our hosted REST API, you can eliminate the complexity of managing FFmpeg infrastructure and focus on delivering quality video content. Try the Add Subtitles endpoint today and see how easy it is to enhance your videos with subtitles.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free