Back to Blog

Automate Video Captioning with FFMPEGAPI.net's AI Captions Endpoint

June 2026 FFMPEG API Team

In today's digital landscape, video content reigns supreme. Whether for social media, marketing, or education, the demand for engaging video is higher than ever. FFMPEGAPI.net provides a powerful hosted REST API designed specifically for video and audio processing, allowing developers to automate workflows without the hassle of server management. One of the standout features is the AI Captions endpoint, which effortlessly transcribes videos and adds stylish captions. Let's explore how you can leverage this API in your projects.

What is the AI Captions Endpoint?

The AI Captions endpoint on FFMPEGAPI.net allows you to transcribe videos and overlay captions that are styled for platforms like TikTok. This means you can take any video URL, and with just a few parameters, generate a video with captions that are not only accurate but visually appealing.

  • Transcribes audio with word timestamps.
  • Renders styled captions into the video.
  • Returns URLs for caption artifacts when available.

How to Use the AI Captions Endpoint

To use the AI Captions endpoint, you'll perform a POST request to /api/videos/add-tiktok-captions. The request requires a video URL and allows for customization with optional parameters like subtitle style, language, aspect ratio, and more.

  • Endpoint Path: /api/videos/add-tiktok-captions
  • HTTP Method: POST
  • Content Type: application/json
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())
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"}'

Parameter Details

The AI Captions endpoint offers several parameters that enhance the functionality of captioning. Here’s a closer look at what you can customize:

  • video_url: The URL of the video to be processed (required).
  • subtitle_style: Choose from plain-white, yellow-bg, pink-bg, blue-bg, or red-bg (default is plain-white).
  • language: Specify the language for transcription (default is auto).
  • aspect_ratio: Set the video aspect ratio (options: 16:9, 9:16, 4:3, or 3:4).
  • max_chars_per_line: Limit the number of characters per caption line (default is 20).
  • max_lines: Set the maximum number of caption lines (default is 1).
  • position: Choose the position of the captions (top, center, or bottom; default is bottom).

In conclusion, FFMPEGAPI.net's AI Captions endpoint is a game-changer for developers looking to automate video captioning workflows. With its easy-to-use REST API, you can integrate powerful video processing capabilities into your applications without the need for extensive server management. Whether you are building a content pipeline, a SaaS application, or enhancing an AI agent, FFMPEGAPI.net provides the tools necessary for seamless video and audio processing. Start leveraging the best video processing API for automation today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free