Skip to main content

Overview

With the Mirage API, you can automatically transcribes your video’s audio and renders beautifully animated captions directly onto the video. Choose from a variety of caption templates to match your brand or creative vision.

Prerequisites

Create an API key in the platform dashboard.

1) Choose a Caption Template

Adding captions to videos requires a caption template. Browse all available templates in the caption templates gallery or fetch them programatically. Example Template: Heat
Caption Template ID

2) Add Captions to a Video

Submit your video along with a caption template ID. You can either upload a video file directly or reference an existing video ID from a previous generation.
Response (example)

3) Check Job Status

Poll until status becomes COMPLETE.
Status values
  • QUEUED
  • PROCESSING
  • COMPLETE
  • FAILED
  • CANCELLED

4) Download the Video

Once status is COMPLETE, download your captioned video.

Video requirements

  • Aspect ratio: 9:16 (vertical/portrait)
  • Max file size: 50 MB
  • Max duration: 5 minutes
  • Formats: MP4, MOV

API Reference

Last modified on July 29, 2026