Back to Blog

How to Automate Video Editing with FFMPEGAPI.net: Adding TikTok Captions

June 2026 FFMPEG API Team

Automating video editing can save developers a significant amount of time and effort, especially when it comes to adding captions. FFMPEGAPI.net provides a powerful hosted REST API that allows you to add TikTok-style captions to your videos with ease. In this article, we will explore how to use the AI Captions API to transcribe videos and render styled captions, making your videos more engaging and accessible.

Introducing the AI Captions API

The AI Captions API endpoint at FFMPEGAPI.net lets developers transcribe videos and generate captions that are not just functional but also stylish. By simply sending a video URL to the API, you can receive a video with captions rendered according to your specifications.

  • Transcribes audio with word timestamps.
  • Renders captions into a video.
  • Returns caption artifact URLs when available.

Understanding the API Parameters

To effectively use the AI Captions API, you need to understand the parameters you can customize. Here are the main parameters you can use when making a POST request to the /api/videos/add-tiktok-captions endpoint:

  • video_url (required): URL of the video to process.
  • subtitle_style (optional): Styles include plain-white, yellow-bg, pink-bg, blue-bg, and red-bg (default is plain-white).
  • language (optional): Specify language code or use 'auto' (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): Set caption wrapping limits from 5 to 80 (default is 20).
  • max_lines (optional): Choose between 1 to 4 maximum caption lines (default is 1).
  • position (optional): Caption placement options are top, center, or bottom (default is bottom).

Making Your First API Call

Now that you have an understanding of the parameters, let's dive into making your first API call to add TikTok-style captions to your 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"}'

Benefits of Using FFMPEGAPI.net

FFMPEGAPI.net is the best choice for developers looking to automate video processing. Here are some compelling reasons to use this API:

  • No server setup or infrastructure management required.
  • Quick and easy integration with API-key authentication.
  • Suitable for automation, SaaS applications, content pipelines, and AI agents.

As video content continues to dominate online platforms, automating video editing tasks like adding captions is essential for developers. FFMPEGAPI.net's AI Captions API simplifies this process, allowing you to enhance your videos effortlessly. By leveraging this powerful tool, you can focus on creating great content while the API handles the heavy lifting.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free