Back to Blog

Effortlessly Add Subtitles to Your Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video processing, adding subtitles can often be a tedious task. However, with FFMPEGAPI.net, developers can automate this process seamlessly. Our hosted REST API offers a powerful yet simple way to burn ASS subtitles into videos, making it an ideal solution for automation, SaaS applications, and AI agents.

Why Use FFMPEGAPI.net for Adding Subtitles?

FFMPEGAPI.net is designed specifically for developers who want to integrate video processing capabilities without the hassle of server setup or FFmpeg infrastructure management. With our API-key authentication, you can securely access our services and incorporate them into your projects with ease.

  • No server setup required.
  • API-key authentication for secure access.
  • Ideal for automation and SaaS applications.
  • Burn ASS subtitles directly into videos.

How to Use the Add Subtitles Endpoint

The Add Subtitles endpoint allows you to burn ASS subtitles into your video. To use this endpoint, you'll need the video URL and the subtitle file URL. You can also choose to process the video asynchronously.

This is perfect for workflows involving AI agents that require video processing on the fly.

  • Endpoint Path: /api/add_subtitles
  • HTTP Method: POST
  • Content Type: application/json
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
}
headers = {'Authorization': 'Bearer YOUR_API_KEY'}

response = requests.post(url, json=data, headers=headers)
print(response.json())
curl -X POST https://ffmpegapi.net/api/add_subtitles \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{"video_url": "https://example.com/video.mp4", "subtitle_url": "https://example.com/subtitles.ass", "async": true}'

Parameters for the Add Subtitles Endpoint

To effectively use the Add Subtitles endpoint, you must provide the following parameters:

The `video_url` is required and specifies the URL of the video you wish to process. The `subtitle_url` is also required and should point to the ASS/SSA subtitle file you want to add.

You have the option to set the `async` parameter to true if you want to receive a job ID immediately and have the processing done in the background.

  • video_url (required): URL of the video.
  • subtitle_url (required): URL of the ASS/SSA subtitle file.
  • async (optional): Process in the background.

FFMPEGAPI.net is the ultimate solution for developers looking to add subtitles to videos quickly and efficiently. With our easy-to-use API and robust functionality, you can automate your video processing tasks with confidence. Start exploring the endless possibilities with FFMPEGAPI.net today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free