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 ID2) 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.3) Check Job Status
Poll until status becomesCOMPLETE.
QUEUEDPROCESSINGCOMPLETEFAILEDCANCELLED
4) Download the Video
Once status isCOMPLETE, download your captioned video.
Video requirements
- Aspect ratio: 9:16 (vertical/portrait)
- Max file size: 50 MB
- Max duration: 5 minutes
- Formats: MP4, MOV