apiKey: ********************{
"videoUrl": "https://example.com/video.mp4",
"fontSize": "12",
"primaryColor": "&HFFFFFF&",
"marginV": "10",
"text": "这是字幕文本",
"isFontAuto": 1,
"isFontBold": 1,
"textStrokeColor": "&H000000&",
"textStrokeWidth": "1",
"selectFont": 1,
"textBgColor": "&H000000&",
"subtitleAnimation": 1,
"highlightColor": "&HFFFF00&",
"highlightWords": "重要,关键",
"scaleWords": "标题,重点",
"scaleValue": 1
}curl --location --request POST '/api/subtitle/generateSmart' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"videoUrl": "https://example.com/video.mp4",
"fontSize": "12",
"primaryColor": "&HFFFFFF&",
"marginV": "10",
"text": "这是字幕文本",
"isFontAuto": 1,
"isFontBold": 1,
"textStrokeColor": "&H000000&",
"textStrokeWidth": "1",
"selectFont": 1,
"textBgColor": "&H000000&",
"subtitleAnimation": 1,
"highlightColor": "&HFFFF00&",
"highlightWords": "重要,关键",
"scaleWords": "标题,重点",
"scaleValue": 1
}'{
"errorMessage": "string",
"code": 0,
"aboutUrl": "string",
"traceId": "string",
"taskID": "task_123456789",
"outputUrl": "https://example.com/output/subtitle.srt",
"statusUrl": "https://example.com/status/task_123456789"
}