Auto Subtitle Generator API Reference - Magic Hour Docs
Automatically generate subtitles for your video in multiple languages.
Documentation Index
Fetch the complete documentation index at: https://magichour-update-openapi-spec.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".
Body
Body
Start time of your clip (seconds). Must be ≥ 0.
x >= 00
End time of your clip (seconds). Must be greater than start_seconds.
x >= 0.115
Provide the assets for auto subtitle generator
Style of the subtitle. At least one of .style.template or .style.custom_config must be provided.
- If only
.style.templateis provided, default values for the template will be used. - If both are provided, the fields in
.style.custom_configwill be used to overwrite the fields in.style.template. - If only
.style.custom_configis provided, then all fields in.style.custom_configwill be used.
To use custom config only, the following custom_config params are required:
.style.custom_config.font.style.custom_config.text_color.style.custom_config.vertical_position.style.custom_config.horizontal_position
Give your video a custom name for easy identification.
"My Auto Subtitle video"
Response
Success
Success
Unique ID of the video. Use it with the Get video Project API to fetch status and downloads.
"cuid-example"
The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
If video generation fails, credits will be refunded, and this field will be updated to include the refund.
450