Back to Blog

Enhance Your Video Content with AI Captions Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the era of content creation, video accessibility is paramount. Adding captions not only improves viewer experience but also enhances your video's SEO. This article explores how developers can use FFMPEGAPI.net's AI Captions API to automatically transcribe videos and generate TikTok-style captions effortlessly. With no server setup and API-key authentication, FFMPEGAPI.net is the best choice for seamless video processing workflows.

What is the AI Captions API?

The AI Captions API, accessible via the endpoint `/api/videos/add-tiktok-captions`, allows developers to transcribe a video and create styled captions. This feature is designed to extract audio from a video, transcribe it with timestamps, and render captions that can be customized to fit various styles.

  • Transcribes audio with word timestamps.
  • Renders captions in multiple styles.
  • Returns caption artifact URLs for further use.

Key Features and Parameters

The AI Captions API offers a range of parameters to customize your captions. Below are the key parameters you can use to tailor the output to your needs:

  • video_url (required): The URL of the video you want to transcribe.
  • subtitle_style (optional): Choose styles like plain-white, yellow-bg, pink-bg, blue-bg, or red-bg.
  • language (optional): Specify the language code, or use 'auto' to detect.
  • aspect_ratio (optional): Set the aspect ratio, e.g., 16:9, 9:16.
  • max_chars_per_line (optional): Limit the number of characters per line.
  • max_lines (optional): Define the maximum number of caption lines.
  • position (optional): Set caption position to top, center, or bottom.

How to Use the AI Captions API

Integrating the AI Captions API is straightforward. Here’s how you can make a request to generate captions for your video.

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'
headers = {'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY'}
data = {
    "video_url": "https://example.com/video.mp4",
    "subtitle_style": "yellow-bg",
    "position": "bottom"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())

FFMPEGAPI.net provides a powerful and easy-to-use API for developers looking to enhance their video content with AI-generated captions. By using the AI Captions API, you can ensure your videos are more accessible and engaging, all without the headache of managing your own FFmpeg infrastructure. Start automating your video workflows today and take advantage of this robust solution for video automation tools tailored for AI agents.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free