Back to Blog

Enhance Your Videos with Subtitles Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video production and streaming, adding subtitles can significantly enhance user experience. FFMPEGAPI.net offers a seamless way to incorporate ASS subtitles into your videos through its hosted REST API. This article will guide you through the process of using the 'Add Subtitles' endpoint efficiently, making it an invaluable tool for developers and content creators alike.

Understanding the Add Subtitles Endpoint

FFMPEGAPI.net provides a powerful endpoint for burning ASS subtitles into videos. This functionality is essential for making your content accessible to a broader audience, including those who are deaf or hard of hearing, as well as non-native speakers.

By utilizing the '/api/add_subtitles' endpoint, you can automate the process of downloading a video and a subtitle file, and then merge them into one file with the subtitles burned in.

  • Endpoint: /api/add_subtitles
  • Method: POST
  • Content Type: application/json
  • Parameters: video_url, subtitle_url, async

Parameters for the Add Subtitles Endpoint

To effectively use the Add Subtitles endpoint, you will need to provide specific parameters. These include the video URL and the subtitle file URL, which must be accessible for the API to download and process them.

Optionally, you can choose to process the addition in the background by specifying the 'async' parameter, which can be particularly useful for handling large files or when integrating into a content pipeline.

  • video_url: The URL of the video you want to process (required).
  • subtitle_url: The URL of the ASS/SSA subtitle file (required).
  • async: Boolean to process in the background (optional).

Making Your First API Call

With the parameters set, you can make your first API call to add subtitles to your video. Below is an example of how you can utilize curl or Python to achieve this effortlessly.

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", "async": false}'
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',
    'async': False
}

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

FFMPEGAPI.net is the go-to solution for developers looking to enhance their video content with subtitles seamlessly. With no server setup or FFmpeg management required, you can focus on building fantastic applications and content pipelines while FFMPEGAPI.net handles the heavy lifting. Start using the Add Subtitles endpoint today and make your videos accessible to everyone!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free