Back to Blog

How to Programmatically Add TikTok-Style Captions to Your Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

Adding captions to videos can significantly enhance viewer engagement. With FFMPEGAPI.net, developers can programmatically add TikTok-style captions to their videos without the hassle of managing servers or infrastructure. This article will guide you through using the AI Captions feature to automate the captioning process seamlessly.

What is the AI Captions Endpoint?

FFMPEGAPI.net offers a powerful AI Captions endpoint, which allows you to transcribe video audio and render stylish captions. This REST API endpoint simplifies the process, letting developers focus on building applications without worrying about server setup.

The AI Captions endpoint processes the video from a provided URL, extracts audio, and transcribes it with word timestamps. It also generates styled captions and returns URLs for the caption artifacts.

  • Hosted REST API for easy integration
  • Supports multiple subtitle styles
  • Handles language detection automatically
  • Allows customization of caption appearance and position

How to Use the AI Captions API

To utilize the AI Captions feature, you need to make a POST request to the endpoint at `/api/videos/add-tiktok-captions`. The API requires certain parameters to function correctly, which include the video URL and optional styling options for your captions.

  • Required parameter: video_url (string)
  • Optional parameters: subtitle_style, language, aspect_ratio, max_chars_per_line, max_lines, position
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"}'

Parameters Explained

The AI Captions API accepts several parameters for tailoring the captions to your needs. Here's a breakdown of the most important ones:

  • video_url: The URL of the video to process (required).
  • subtitle_style: Choose a style for the captions (default is 'plain-white'). Options include 'yellow-bg', 'pink-bg', 'blue-bg', and more.
  • language: Specify the language of the captions or set to 'auto' for automatic detection.
  • aspect_ratio: Define the video's aspect ratio (default is '9:16').
  • max_chars_per_line: Control the maximum number of characters per line (default is 20).
  • max_lines: Set the maximum number of caption lines (default is 1).
  • position: Specify the caption's position on the screen (default is 'bottom').

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net stands out because it eliminates the need for server management while providing a robust video processing solution. With API-key authentication, developers can easily integrate this tool into their workflows, whether for automation, SaaS apps, content pipelines, or AI agents.

By leveraging FFMPEGAPI.net, you can focus on building innovative applications while leaving the heavy lifting of video processing to the experts.

  • No server setup required
  • Efficient and scalable video/audio processing
  • Designed for developer convenience
  • API key authentication ensures secure access

In conclusion, adding TikTok-style captions to your videos has never been easier with FFMPEGAPI.net's AI Captions endpoint. This powerful tool allows you to enhance your video content programmatically, all while avoiding the complexities of server management. Start using FFMPEGAPI.net today to streamline your video processing workflows.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free