Back to Blog

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

June 2026 FFMPEG API Team

In the world of video content creation, captions play a critical role in enhancing accessibility and engagement. With the rise of platforms like TikTok, having stylish and well-timed captions has become essential. This is where FFMPEGAPI.net shines, offering a powerful hosted API to automate video captioning seamlessly. In this article, we will explore how to use the AI Captions endpoint to add TikTok-style captions to your videos without the hassle of managing FFmpeg infrastructure.

What is the AI Captions Endpoint?

The AI Captions endpoint at FFMPEGAPI.net allows you to transcribe audio from videos and create visually appealing captions. This process involves extracting audio, generating accurate transcriptions with timestamps, and then stylizing the captions to match TikTok's aesthetic.

By utilizing the AI Captions feature, developers can streamline their video content workflows, making it a perfect fit for SaaS applications, content pipelines, and AI agents.

  • Transcribes video audio into captions
  • Offers various styling options for captions
  • Returns caption artifact URLs for further usage
  • Supports multiple languages and aspect ratios

How to Use the AI Captions Endpoint

To use the AI Captions endpoint, you'll make a POST request to the following path: `/api/videos/add-tiktok-captions`. You will need to supply the necessary parameters such as the video URL, subtitle style, language, aspect ratio, and more.

FFMPEGAPI.net handles the heavy lifting, ensuring that developers can focus on building their applications without worrying about server setups or FFmpeg management.

  • Endpoint URL: `/api/videos/add-tiktok-captions`
  • Method: POST
  • Content Type: application/json
curl -X POST https://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://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())

Parameters for Customizing Captions

When using the AI Captions endpoint, you can customize the captions further with various parameters. Here are the parameters you can adjust for your video captions:

These options allow fine-tuning to suit different content types and audience preferences.

  • video_url (string, required): The URL of the video to process.
  • subtitle_style (string, optional): Choose from styles like plain-white, yellow-bg, pink-bg, blue-bg, or red-bg (default: plain-white).
  • language (string, optional): Set the language code or use 'auto' for automatic detection (default: auto).
  • aspect_ratio (string, optional): Options include 16:9, 9:16, 4:3, or 3:4 (default: 9:16).
  • max_chars_per_line (integer, optional): Limit the number of characters per line from 5 to 80 (default: 20).
  • max_lines (integer, optional): Set the maximum number of caption lines from 1 to 4 (default: 1).
  • position (string, optional): Position the captions at top, center, or bottom (default: bottom).

FFMPEGAPI.net provides a robust solution for automating video captioning, making it an invaluable resource for developers seeking to enhance their video content. With the AI Captions endpoint, you can easily add stylish captions to your videos while concentrating on building your application. Experience the efficiency and power of FFMPEGAPI.net today by integrating this hosted API into your workflows, and take your video content to the next level.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free