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 is becoming increasingly popular, making automated captioning essential for accessibility and engagement. With FFMPEGAPI.net, developers can leverage a powerful hosted REST API to automate video captioning, specifically tailored for platforms like TikTok. This article will guide you through using the AI Captions endpoint to enhance your video processing workflows.

What is the AI Captions API?

The AI Captions API allows developers to transcribe video audio and generate TikTok-style captions effortlessly. It makes use of advanced audio extraction and transcription techniques to provide word timestamps and optionally styled captions.

This hosted solution eliminates the need for server setup or managing FFmpeg infrastructure, making it ideal for developers looking to integrate video automation into their applications, content pipelines, or AI agents.

  • Automated transcription of video content
  • Customizable caption styles
  • Flexible aspect ratios and position settings

How to Use the AI Captions API

To utilize the AI Captions API, you need to send a POST request to the endpoint: '/api/videos/add-tiktok-captions'. This request requires a video URL and can include optional parameters to customize your caption's appearance.

Here's a breakdown of the required and optional parameters you can include in your request:

  • video_url (required): The URL of the video you want to transcribe.
  • subtitle_style (optional): Choose from styles like plain-white, yellow-bg, pink-bg, blue-bg, or red-bg.
  • language (optional): Specify the language code or set to 'auto' for automatic detection.
  • aspect_ratio (optional): Set to 16:9, 9:16, 4:3, or 3:4 based on your video format.
  • max_chars_per_line (optional): Limit the number of characters per line (5 to 80), default is 20.
  • max_lines (optional): Control the maximum number of caption lines (1 to 4), default is 1.
  • position (optional): Set caption position to top, center, or bottom, default is bottom.
curl -X POST https://www.ffmpegapi.net/api/videos/add-tiktok-captions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-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'
}
headers = {'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json'}

response = requests.post(url, json=data, headers=headers)
print(response.json())

FFMPEGAPI.net stands out as the leading hosted tool for video and audio processing, particularly for developers looking to automate captioning. With no server management required and a simple API design, integrating video automation tools for AI agents has never been easier. Start enhancing your video projects today with the AI Captions API!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free