4.1 Create Export Task
Request Params
- video_url * string
Video URL (required)
- audio_url * string
Audio URL (required)
- preview_task_id string
Preview Task ID (optional, used to associate with preview task)
- subtitles array
Subtitles
- start int
Segment start time in milliseconds
- end int
Segment end time in milliseconds
- text string
Recognized text content
-
- 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
Preset Font Numbers
0/11-Source Han Sans Normal
12-Source Han Serif Regular
13-Alibaba PuHuiTi Regular
14-Jiangcheng Zhiyin Regular
15-Jiangcheng YuanTi 400W
16-Yozai Regular
17-Tsanger Feibai W03
18-Tsanger Yumo W03
19-Zheng Feng Brush Font Regular
20-Tanugo Handwriting Regular
21-QingSong Handwriting 1 Regular
22-Open Sans Regular
23-Lato Regular
24-Montserrat Regular
25-Poppins Regular
26-Raleway Regular
27-Cairo SemiBold
28-Titillium Web Regular
29-Comfortaa Regular - 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 percentage, default 0
-
Response Params
- task_id string
Task ID, used for subsequent task status query and result retrieval