Back to Blog

Enhance Your SaaS Application with AI Captions Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital landscape, adding value to your video content is essential, especially for SaaS applications. One effective way to do this is by incorporating AI-powered captions, making your videos accessible and engaging. FFMPEGAPI.net offers a robust and easy-to-use hosted REST API that allows developers to transcribe videos and render captions effortlessly. In this article, we will explore how to utilize the AI Captions endpoint to enhance your video content.

Understanding the AI Captions Endpoint

The AI Captions feature in FFMPEGAPI.net allows you to transcribe video audio and generate styled captions suitable for platforms like TikTok. With just a simple POST request, you can send your video URL and receive a rendered video with captions, making it an invaluable tool for developers looking to improve user engagement.

  • Transcribes audio and generates captions with timestamps
  • Supports various subtitle styles
  • Outputs captions in supported languages
  • Flexible aspect ratio options for video rendering

How to Use the AI Captions API

To use the AI Captions endpoint, you will send a POST request to the path `/api/videos/add-tiktok-captions`. Here are the required parameters for your request:

  • video_url: The URL of the video to process (required)
  • subtitle_style: Choose a style from plain-white, yellow-bg, pink-bg, blue-bg, or red-bg (optional, defaults to plain-white)
  • language: Set language code or 'auto' for auto-detection (optional, defaults to auto)
  • aspect_ratio: Specify aspect ratio as 16:9, 9:16, 4:3, or 3:4 (optional, defaults to 9:16)
  • max_chars_per_line: Limit on characters per caption line from 5 to 80 (optional, defaults to 20)
  • max_lines: Set maximum number of caption lines from 1 to 4 (optional, defaults to 1)
  • position: Define caption position as top, center, or bottom (optional, defaults to 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())

Integrating AI captions into your SaaS applications is made simple and efficient with FFMPEGAPI.net. This hosted REST API eliminates the need for server management, allowing developers to focus on enhancing their applications without the hassle of FFmpeg infrastructure. By utilizing the AI Captions endpoint, you can provide engaging and accessible video content, ensuring your users have an enriched experience. Start integrating FFMPEGAPI.net into your projects today and take your video content to the next level.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free