Back to Blog

Boost Your SaaS with AI-Powered Captions using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the age of video content, providing accessibility and enhancing viewer engagement is crucial. With FFMPEGAPI.net, developers can seamlessly integrate AI-generated captions into their applications, ensuring that videos not only reach a wider audience but also comply with accessibility standards. This article will explore how to use the AI Captions endpoint of the FFMPEGAPI.net REST API to transcribe videos and add TikTok-style captions.

Understanding the AI Captions Endpoint

The AI Captions endpoint allows developers to transcribe audio from videos and render styled captions. This not only improves accessibility but also enhances user engagement by making content more consumable.

Using the endpoint is straightforward, and it requires just a few parameters to get going.

  • Method: POST
  • Path: /api/videos/add-tiktok-captions
  • Content Type: application/json

Required Parameters for the API Call

To successfully make a call to the AI Captions endpoint, you need to provide the following parameters:

The most critical parameter is the video URL, which points to the video you want to process.

  • video_url (string, required): The URL of the video.
  • subtitle_style (string, optional): Choose styles like plain-white or yellow-bg.
  • language (string, optional): Define the language of the audio, or use 'auto'.
  • aspect_ratio (string, optional): Set the aspect ratio to 16:9, 9:16, etc.
  • max_chars_per_line (integer, optional): Limit caption length from 5 to 80 characters.
  • max_lines (integer, optional): Set maximum caption lines from 1 to 4.
  • position (string, optional): Define the position of captions - top, center, or bottom.

Making Your First API Call

Now that we have a grasp on the parameters, let’s see how to make a call to the API. Below is an example using curl and Python.

This example demonstrates how to send a request to generate captions for a video.

curl -X POST https://www.ffmpegapi.net/api/videos/add-tiktok-captions \ 
-H 'Content-Type: application/json' \ 
-d '{ "video_url": "https://example.com/video.mp4", "subtitle_style": "yellow-bg", "position": "bottom" }'
import requests

url = 'https://www.ffmpegapi.net/api/videos/add-tiktok-captions'
data = {
    'video_url': 'https://example.com/video.mp4',
    'subtitle_style': 'yellow-bg',
    'position': 'bottom'
}
response = requests.post(url, json=data)
print(response.json())

Integrating AI-generated captions into your SaaS application is made easy with FFMPEGAPI.net. The hosted REST API allows you to focus on development without worrying about server setup or FFmpeg management. By utilizing the AI Captions endpoint, you can enhance video accessibility, comply with standards, and improve user engagement. Start leveraging the power of AI in your applications today by visiting FFMPEGAPI.net!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free