v47

latestOpenAPI 3.0.2raw.githubusercontent.com2026-08-01360485.4 KB
Video Projects

Auto Subtitle Generator

Automatically generate subtitles for your video in multiple languages.

post/v1/auto-subtitle-generator

Request body

namestring

Give your video a custom name for easy identification.

start_secondsnumber float required

Start time of your clip (seconds). Must be ≥ 0.

end_secondsnumber float required

End time of your clip (seconds). Must be greater than start_seconds.

Example request

{
  "name": "My Auto Subtitle video",
  "end_seconds": 15,
  "assets": {
    "video_file_path": "api-assets/id/1234.mp4"
  },
  "style": {
    "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"
    }
  }
}

Response

Success

idstring required

Unique ID of the video. Use it with the Get video Project API to fetch status and downloads.

credits_chargedinteger required

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.

Example response

{
  "id": "cuid-example",
  "credits_charged": 450
}