Back to Blog

Automate Video Captions with FFMPEGAPI.net: A Complete Guide

June 2026 FFMPEG API Team

In today’s digital landscape, video content is king. Automating the process of adding captions enhances accessibility and viewer engagement. With FFMPEGAPI.net, developers can easily integrate video automation tools for AI agents, streamline content pipelines, and enhance user experience through our powerful API.

Understanding the AI Captions Endpoint

FFMPEGAPI.net provides a robust solution for adding captions to videos through our AI Captions endpoint. This endpoint transcribes audio from a video and renders TikTok-style captions, making it perfect for content creators looking to enhance their engagement on platforms like TikTok.

  • Transcribes audio with word timestamps.
  • Renders styled captions into the video.
  • Returns caption artifact URLs for further use.
  • Supports various customization options for captions.

How to Use the AI Captions Endpoint

To utilize the AI Captions feature, developers need to send a POST request to the following endpoint:

The endpoint path is /api/videos/add-tiktok-captions, and it requires a video URL along with optional parameters to customize the caption styles.

  • Endpoint: /api/videos/add-tiktok-captions
  • Method: POST
  • Content Type: application/json
curl -X POST https://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://ffmpegapi.net/api/videos/add-tiktok-captions' \nheaders = {'Content-Type': 'application/json'} \ndata = {"video_url": "https://example.com/video.mp4", "subtitle_style": "yellow-bg", "position": "bottom"} \nresponse = requests.post(url, json=data, headers=headers) \nprint(response.json())

Parameters for Customization

The AI Captions endpoint offers several parameters that allow developers to customize their captions according to their needs. Here's a breakdown of the available parameters:

  • video_url (string): Required - The URL of the video to transcribe.
  • subtitle_style (string): Optional - Choose from plain-white, yellow-bg, pink-bg, blue-bg, or red-bg.
  • language (string): Optional - Language code or 'auto' for automatic detection.
  • aspect_ratio (string): Optional - Options include 16:9, 9:16, 4:3, or 3:4.
  • max_chars_per_line (integer): Optional - Limits caption characters from 5 to 80.
  • max_lines (integer): Optional - Maximum lines of captions from 1 to 4.
  • position (string): Optional - Choose from top, center, or bottom.

FFMPEGAPI.net is the ideal solution for developers looking to automate video captioning effortlessly. With our API-key authentication, there’s no need for server setup or FFmpeg management, allowing you to focus on building your applications. Start using the AI Captions endpoint today to enhance your video content with ease!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free