POST
/
v1
/
auto-subtitle-generator
Auto Subtitle Generator
curl --request POST \
  --url https://api.magichour.ai/v1/auto-subtitle-generator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Auto Subtitle video",
  "start_seconds": 0,
  "end_seconds": 15,
  "assets": {
    "video_file_path": "api-assets/id/1234.mp4"
  },
  "style": {
    "template": "karaoke",
    "custom_config": {
      "font": "Noto Sans",
      "font_size": 24,
      "font_style": "normal",
      "text_color": "#FFFFFF",
      "highlighted_text_color": "#FFD700",
      "stroke_color": "#000000",
      "stroke_width": 1,
      "vertical_position": "bottom",
      "horizontal_position": "center"
    }
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "estimated_frame_cost": 450,
  "credits_charged": 450
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body

The body is of type object.

Response

200
application/json

Success