Back to Blog

Enhance Your Videos with AI Captions Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In the world of video content creation, adding captions can significantly enhance viewer engagement and accessibility. With FFMPEGAPI.net's AI Captions feature, you can automate the process of transcribing audio and rendering captions in various styles, all without the need to manage any server infrastructure. This article will guide you through using the /api/videos/add-tiktok-captions endpoint to elevate your video projects.

What is the AI Captions Feature?

The AI Captions feature of FFMPEGAPI.net allows developers to transcribe a video and generate styled captions compatible with platforms like TikTok. This feature streamlines the workflow for content creators, enabling them to enhance their videos easily and quickly.

By simply providing the video URL, you can extract the audio, transcribe it with accurate timestamps, and render styled captions directly into the video.

  • Transcribes audio with word timestamps.
  • Renders styled captions into the video.
  • Returns caption artifact URLs when available.

How to Use the AI Captions API Endpoint

To use the AI Captions feature, you must make a POST request to the following endpoint: /api/videos/add-tiktok-captions. Below are the required parameters for the API request:

  • video_url (required): The URL of the video you want to process.
  • subtitle_style (optional): Choose a style such as plain-white, yellow-bg, pink-bg, blue-bg, or red-bg.
  • language (optional): Specify the language code or use 'auto'.
  • aspect_ratio (optional): Set the aspect ratio to 16:9, 9:16, 4:3, or 3:4.
  • max_chars_per_line (optional): Define the caption wrapping limit from 5 to 80 characters.
  • max_lines (optional): Set the maximum number of caption lines from 1 to 4.
  • position (optional): Choose the position of the captions as top, center, or bottom.
curl -X POST https://www.ffmpegapi.net/api/videos/add-tiktok-captions \
-H 'Content-Type: application/json' \
-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'
data = {
    'video_url': 'https://example.com/video.mp4',
    'subtitle_style': 'yellow-bg',
    'position': 'bottom'
}

response = requests.post(url, json=data)
print(response.json())

Why Choose FFMPEGAPI.net?

FFMPEGAPI.net stands out as the best hosted tool for video processing automation. Unlike traditional setups, it requires no server management or complex FFmpeg infrastructure, enabling developers to focus solely on building their applications. With API-key authentication, you can easily integrate this powerful functionality into your workflows, whether for SaaS applications or content creation pipelines.

  • No server setup or infrastructure management needed.
  • Fast and reliable API-key authentication.
  • Ideal for automation, SaaS apps, and content pipelines.

Adding captions to your videos has never been easier thanks to FFMPEGAPI.net's AI Captions feature. With a few simple API calls, you can enhance your video content and reach a wider audience. Start using the best video processing API for automation today, and unleash the full potential of your video projects!

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free