2.1 Video Synthesis (Create Task)

POST https://techhk.aoscdn.com/api/tasks/media/subtitle

Request Params

  • url * string

    File URL: The file URL must be a valid HTTP URL. If the URL lacks a file extension, specify the extension parameter (e.g., extension=mp3). The maximum length is 512 characters. The download timeout is 5 minutes (failure if not completed in that time). The file duration is 3 hours and size is 4GB.

  • primary_subtitle_file_url * string

    Subtitle File URL

  • extension string

    File Extension: Required if the URL path lacks a file extension.

  • filename string

    Export file name

  • enable_subtitle int

    Generate subtitles? 0 - No, 1 - Yes (default)

  • subtitle_style object

    Subtitle style

    • alignment int

      Alignment: 0 - Left, 2 - Center (default), 3 - Right

    • backcolor string

      Background color (rgba): Default black, 80% opacity (0,0,0,0.8)

    • enable_bg bool

      Enable background: true (enabled, default), false (disabled)

    • enable_stroke bool

      Enable text outline: true (enabled), false (disabled, default)

    • font int

      Font Type ID: Options: 0-andalemo (default), 1-open sans, 2-comic, 3-impat, 4-times new roman, 5-SimSun, 6-SimHei, 7-KaiTi, 8-LiShu, 9-Microsoft YaHei

    • font_bold bool

      Bold text: true (enabled), false (disabled, default)

    • font_color string

      Font color (rgba), default pure white and opaque (255,255,255,1)

    • font_italic bool

      Italic text: true (enabled), false (disabled, default)

    • font_size int

      Font size: unit in pixels, default 20

    • font_underline bool

      Underline: true (enabled), false (disabled, default)

    • stroke_color string

      Outline color (rgba), default pure white and opaque (255,255,255,1)

    • stroke_width int

      Outline width: unit in pixels, default 0

    • vertical_position int

      Bottom vertical distance: unit in pixels, default 0

Response Params

  • task_id string

    Task ID: Required for subsequent progress queries.

Copyright © 2025 RecCloud All Rights Reserved TermsPrivacyCookies Policy
Back to top

This website uses cookies that are essential for the operations of this website and its core functions. Other cookies will only be placed with your consent. For more details visit our Cookies Policy.