Back to Blog

Automate Video Editing with FFMPEGAPI.net: AI Captions for TikTok

June 2026 FFMPEG API Team

In the age of social media, video content is king. Captivating your audience with engaging videos often requires adding captions, especially for platforms like TikTok. With FFMPEGAPI.net, you can automate this process using our AI Captions API, which transcribes your video audio and generates styled captions quickly and easily.

What is the AI Captions API?

The AI Captions API on FFMPEGAPI.net allows developers to transcribe videos and render TikTok-style captions with ease. This endpoint is designed to eliminate the need for manual captioning, saving time and effort for developers working on content pipelines or automated workflows.

You simply provide the video URL, and the API handles the extraction of audio, transcription, and caption rendering, all while offering customization options for styling and positioning.

  • Transcribes audio with word timestamps
  • Generates styled captions for TikTok
  • Returns caption artifact URLs for further use

How to Use the AI Captions API

To get started with the AI Captions API, you'll need to make a POST request to the endpoint: /api/videos/add-tiktok-captions. Below are the required and optional parameters you can use:

This API requires a video URL, but you can customize several options to fit your needs, such as subtitle style, language, and aspect ratio.

  • Required: video_url (string) - The URL of the video.
  • Optional: subtitle_style (string) - Choose from plain-white, yellow-bg, pink-bg, blue-bg, or red-bg.
  • Optional: language (string) - Specify a language code or use 'auto'.
  • Optional: aspect_ratio (string) - Select from 16:9, 9:16, 4:3, or 3:4.
  • Optional: max_chars_per_line (integer) - Limit characters per line from 5 to 80.
  • Optional: max_lines (integer) - Set the maximum number of caption lines from 1 to 4.
  • Optional: position (string) - Choose caption position: top, center, or bottom.
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())

Benefits of Using FFMPEGAPI.net

FFMPEGAPI.net simplifies the video processing workflow by providing a hosted REST API without the need for server setup or FFmpeg infrastructure management. With API-key authentication, developers can integrate video editing capabilities seamlessly into their applications.

This hosted solution is perfect for automation, SaaS applications, content pipelines, and AI agents, making it an invaluable tool for developers looking to enhance their video content.

  • Eliminates server management and setup complexity
  • API-key authentication ensures secure access
  • Ideal for a range of applications from automation to content creation

FFMPEGAPI.net's AI Captions API is the ideal solution for automating video editing tasks, particularly for platforms like TikTok. By leveraging this powerful API, developers can enhance their applications with dynamic captioning features, saving time and improving user engagement. Start using FFMPEGAPI.net today and revolutionize your video processing workflow.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free