Back to Blog

How to Add TikTok Captions to Your Videos with FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's fast-paced content creation landscape, adding captions to videos has become essential, especially for platforms like TikTok. FFMPEGAPI.net offers a powerful and user-friendly solution to transcribe your videos and generate styled captions effortlessly. This article will guide you through using the AI Captions API to enhance your video content pipeline.

What is the AI Captions API?

The AI Captions API is a hosted service provided by FFMPEGAPI.net designed for quick and efficient video captioning. It uses advanced audio transcription to extract spoken words from videos, offering you a comprehensive solution to add captions that can enhance viewer engagement.

With the AI Captions API, you can customize the styling of the captions to match your video's aesthetic, ensuring a seamless integration with your content.

  • Transcribes audio with word timestamps.
  • Generates styled captions for videos.
  • Returns caption artifact URLs for easy access.

How to Use the AI Captions API

To utilize the AI Captions API, you need to send a POST request to the endpoint. The endpoint path for adding TikTok captions is `/api/videos/add-tiktok-captions`. You'll need to provide a video URL and any optional parameters for customization.

  • Specify the `video_url` for the video you want to caption.
  • Choose a `subtitle_style` like 'yellow-bg' or 'plain-white'.
  • Set the `language` parameter to auto or a specific language code.
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())

API Parameters Explained

When calling the AI Captions API, several parameters can be adjusted to suit your needs. Below are the key parameters along with their descriptions:

These parameters allow you to control the look and feel of the captions while ensuring they are tailored to the content of your video.

  • `video_url`: The URL of the video you want to transcribe (required).
  • `subtitle_style`: Choose from styles like 'plain-white', 'yellow-bg', etc. (default: 'plain-white').
  • `language`: Specify the language for transcription (default: 'auto').
  • `aspect_ratio`: Set aspect ratios like 16:9 or 9:16 (default: '9:16').
  • `max_chars_per_line`: Control caption wrapping from 5 to 80 characters (default: 20).
  • `max_lines`: Set the maximum number of caption lines from 1 to 4 (default: 1).
  • `position`: Position captions at top, center, or bottom (default: 'bottom').

FFMPEGAPI.net stands out as the premier hosted tool for video and audio processing, offering developers a robust solution for adding TikTok-style captions to their videos. By integrating the AI Captions API into your content pipeline, you can enhance user engagement and streamline your video production workflow. Whether you're building SaaS applications, automation tools, or managing large content pipelines, FFMPEGAPI.net makes video captioning fast, efficient, and straightforward.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free