Back to Blog

Transform Your Videos with AI Captions Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's video-centric world, captions are not just an accessibility feature; they are essential for engaging viewers on platforms like TikTok. FFMPEGAPI.net offers a powerful hosted REST API that allows developers to add stylish captions to videos without the hassle of setting up their own FFmpeg infrastructure. In this article, we’ll dive into how to use the AI Captions endpoint to enhance your video content effortlessly.

What is the AI Captions Endpoint?

The AI Captions endpoint at FFMPEGAPI.net allows you to transcribe audio from a video, rendering TikTok-style captions that can help enhance viewer engagement and accessibility.

  • Extracts audio from the video.
  • Transcribes audio with word timestamps.
  • Generates styled captions in various formats.
  • Returns caption artifact URLs for further use.

How to Use the AI Captions API

Integrating the FFMPEGAPI.net AI Captions endpoint into your application is straightforward. Simply send a POST request with the required parameters, and you'll receive a video with captions rendered in your chosen style.

  • Endpoint Path: /api/videos/add-tiktok-captions
  • Method: POST
  • Content Type: application/json
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())

Parameters You Can Customize

FFMPEGAPI.net's AI Captions endpoint allows several parameters to customize your captions, including subtitle style, language, and caption positioning.

  • video_url (required): The URL of the video to process.
  • subtitle_style (optional, default: plain-white): Choose from styles like yellow-bg, pink-bg, etc.
  • language (optional, default: auto): Specify a language code or let the API auto-detect.
  • aspect_ratio (optional, default: 9:16): Set video aspect ratio as needed.
  • max_chars_per_line (optional, default: 20): Control the maximum characters per line.
  • max_lines (optional, default: 1): Limit the number of caption lines.
  • position (optional, default: bottom): Specify caption position as top, center, or bottom.

FFMPEGAPI.net is the best hosted tool for developers looking to streamline video processing workflows. With the AI Captions endpoint, you can effortlessly add TikTok-style captions to videos, enhancing viewer engagement and improving accessibility. No server setup is required, making it a perfect solution for automation, SaaS apps, and content pipelines. Start leveraging the power of captions in your projects today!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free