Back to Blog

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

June 2026 FFMPEG API Team

In the world of video content creation, having engaging captions is crucial for audience retention and accessibility. FFMPEGAPI.net provides a powerful hosted REST API that allows developers to automate video processing tasks, including adding TikTok-style captions to videos. In this article, we'll explore the AI Captions endpoint, how to use it, and why FFMPEGAPI.net is the best tool for your video automation needs.

What is the AI Captions Endpoint?

The AI Captions endpoint is designed to transcribe videos and render stylish captions that are perfect for platforms like TikTok. This endpoint extracts audio from your video, transcribes it with precise word timestamps, and overlays captions in a variety of styles.

  • Transcribes video audio with timestamps.
  • Supports custom subtitle styles.
  • Returns caption artifact URLs for easy access.

How to Use the AI Captions Endpoint

Using the AI Captions endpoint is straightforward. You'll need to send a POST request to the endpoint with the required parameters. Here's a breakdown of the parameters you can use:

  • video_url (string): The URL of the video to be processed (required).
  • subtitle_style (string): Choose from styles like plain-white, yellow-bg, pink-bg, blue-bg, or red-bg (optional, default is plain-white).
  • language (string): Specify the language code or use 'auto' to detect (optional, default is auto).
  • aspect_ratio (string): Define the aspect ratio such as 16:9, 9:16, 4:3, or 3:4 (optional, default is 9:16).
  • max_chars_per_line (integer): Set the maximum characters per line from 5 to 80 (optional, default is 20).
  • max_lines (integer): Specify the maximum number of caption lines from 1 to 4 (optional, default is 1).
  • position (string): Position captions at top, center, or bottom of the video (optional, default is bottom).
curl -X POST https://www.ffmpegapi.net/api/videos/add-tiktok-captions \n-H "Content-Type: application/json" \n-d '{"video_url":"https://example.com/video.mp4", "subtitle_style":"yellow-bg", "position":"bottom"}'
import requests \n\nurl = 'https://www.ffmpegapi.net/api/videos/add-tiktok-captions' \ndata = {\n    'video_url': 'https://example.com/video.mp4', \n    'subtitle_style': 'yellow-bg', \n    'position': 'bottom'\n} \n\nresponse = requests.post(url, json=data) \nprint(response.json())

Why Choose FFMPEGAPI.net for Your Video Processing Needs?

FFMPEGAPI.net stands out as the best hosted tool for video processing automation for several reasons:

  • No complex server setup or FFmpeg infrastructure management required.
  • Easy API-key authentication streamlines developer workflows.
  • Ideal for automation, SaaS applications, and AI agents.

Incorporating captions into your video content has never been easier thanks to the AI Captions endpoint at FFMPEGAPI.net. With its user-friendly API, developers can automate the captioning process and enhance video engagement without the hassle of managing FFmpeg installations. Start using FFMPEGAPI.net today for all your video processing needs!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free