Back to Blog

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

June 2026 FFMPEG API Team

In today's digital landscape, video content dominates the online space. To enhance viewer engagement, adding captions to videos has become essential. FFMPEGAPI.net offers the best video processing API for automation, allowing developers to add TikTok-style captions effortlessly using its AI Captions endpoint. This blog will guide you through the process of using this powerful hosted API.

What is FFMPEGAPI.net?

FFMPEGAPI.net is a hosted REST API that simplifies video and audio processing using FFmpeg technology. With no server setup or infrastructure management required, developers can focus on building their applications without the complexities of backend systems.

  • No server setup or FFmpeg infrastructure management required.
  • API-key authentication for secure and efficient workflows.
  • Ideal for developers, automation tasks, SaaS applications, and AI agents.

Introducing the AI Captions Endpoint

The AI Captions endpoint enables you to transcribe your video and render styled captions in a TikTok format. This feature is perfect for developers looking to enhance video content for social media platforms.

  • Endpoint Path: `/api/videos/add-tiktok-captions`
  • Method: POST
  • Content Type: application/json

Parameters for the AI Captions API

The AI Captions endpoint requires several parameters to customize the output captions. Here’s a breakdown of the parameters you can use:

  • **video_url**: The URL of the video you want to caption (required).
  • **subtitle_style**: The style of the captions, with options like plain-white, yellow-bg, pink-bg, blue-bg, or red-bg.
  • **language**: Specify the language or use 'auto' for automatic language detection.
  • **aspect_ratio**: Choose from 16:9, 9:16, 4:3, or 3:4.
  • **max_chars_per_line**: Set the max character count per line (default is 20).
  • **max_lines**: Define the maximum number of lines for captions (default is 1).
  • **position**: Select the position of the captions as top, center, or bottom (default is bottom).

Sample Request to Add Captions

Here’s how you can make a request to the AI Captions endpoint using curl or Python.

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())

Using FFMPEGAPI.net's AI Captions endpoint, developers can easily automate the process of adding captions to their videos. By integrating this powerful tool into your content pipelines or applications, you can enhance user engagement and accessibility. Start using FFMPEGAPI.net today and streamline your video processing workflows!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free