Back to Blog

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

June 2026 FFMPEG API Team

In the age of short-form video content, adding captions to your videos is essential for improving accessibility and engagement. FFMPEGAPI.net offers a powerful hosted REST API that allows developers to automate the process of generating TikTok-style captions for their videos. In this article, we'll explore the AI Captions endpoint, its features, and how to implement it in your projects effectively.

What is the AI Captions Endpoint?

The AI Captions endpoint at FFMPEGAPI.net provides a seamless way to transcribe video audio and render stylized captions directly into your video content. By leveraging advanced audio processing capabilities, this endpoint extracts audio from your video, transcribes it with precise word timestamps, and generates captions that can enhance viewer engagement.

This endpoint is particularly beneficial for content creators, marketers, and developers looking to streamline their video content workflows without the hassle of server setup or FFmpeg management.

  • Transcribes audio from video files.
  • Generates TikTok-style captions with customizable styles.
  • Returns caption artifact URLs for further use.

How to Use the AI Captions Endpoint

To utilize the AI Captions endpoint, you need to send a POST request to /api/videos/add-tiktok-captions with the necessary parameters. This simple interface allows you to specify the video URL, desired subtitle style, language, aspect ratio, and more.

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

Parameters for Customization

FFMPEGAPI.net’s AI Captions endpoint offers various parameters, allowing developers to customize their caption output to fit their specific needs. Here are the key parameters you can use:

  • video_url (required): URL of the video to process.
  • subtitle_style (optional): Choose from plain-white, yellow-bg, pink-bg, blue-bg, or red-bg. Default is plain-white.
  • language (optional): Specify the language code or use 'auto' for automatic detection. Default is auto.
  • aspect_ratio (optional): Set to 16:9, 9:16, 4:3, or 3:4. Default is 9:16.
  • max_chars_per_line (optional): Limit caption wrapping from 5 to 80 characters. Default is 20.
  • max_lines (optional): Set the maximum caption lines from 1 to 4. Default is 1.
  • position (optional): Set caption position to top, center, or bottom. Default is bottom.

For developers and content creators looking to enhance their video content with automated captions, FFMPEGAPI.net's AI Captions endpoint stands out as an ideal solution. With easy integration, customizable options, and powerful transcription capabilities, it eliminates the need for complex server setups. By using FFMPEGAPI.net, you can focus on creating engaging content while leaving the technical details to the experts.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free