Back to Blog

Enhancing Your Video Content with AI Captions Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In today’s digital landscape, video content dominates engagement across platforms. Adding captions not only makes your videos more accessible but also enhances viewer interaction. FFMPEGAPI.net offers an efficient hosted REST API to transcribe videos and add stylish TikTok-style captions seamlessly. In this article, we’ll explore how to use the AI Captions endpoint to supercharge your video content.

What is the AI Captions Endpoint?

The AI Captions endpoint at FFMPEGAPI.net allows developers to transcribe video audio and render styled captions, making it perfect for social media platforms like TikTok. It extracts audio, provides word timestamps, and can even return caption artifact URLs when available.

  • Transcribes video audio for captions.
  • Supports various subtitle styles.
  • Returns caption artifact URLs.

How to Use the AI Captions API

Using the AI Captions API is straightforward. Below, we outline the necessary parameters and provide an example request.

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

url = 'https://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())

Parameters for the AI Captions API

When making requests to the AI Captions API, you can customize several parameters to tailor the output to your needs.

  • video_url (required): The URL of the video.
  • subtitle_style (optional): Choose from styles like plain-white, yellow-bg, pink-bg, blue-bg, or red-bg (default: plain-white).
  • language (optional): Specify language code or use auto (default: auto).
  • aspect_ratio (optional): Options include 16:9, 9:16, 4:3, or 3:4 (default: 9:16).
  • max_chars_per_line (optional): Set from 5 to 80 characters (default: 20).
  • max_lines (optional): Limit caption lines from 1 to 4 (default: 1).
  • position (optional): Set caption position as top, center, or bottom (default: bottom).

FFMPEGAPI.net provides developers with a powerful and easy-to-use hosted REST API for video processing. With the AI Captions endpoint, you can quickly add engaging captions to your videos without the need for complex server setups or FFmpeg management. This makes it the ideal solution for SaaS applications, automation tasks, and content creation pipelines. Start enhancing your video content today by leveraging the capabilities of FFMPEGAPI.net.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free