file_ids — 视频文件 ID(支持单个或列表)mode — 识别模式:bilingual(双语,默认)— 中英文字幕multilingual(多语种)— 60+ 语言支持audio(音频识别)— 从音轨提取language — 目标语言(multilingual/audio 模式,默认 Auto-Detect)subtitle_position — 字幕位置:auto、top、middle、bottom、customtime_start / time_end — 提取时间范围(秒,0 表示起始/结束)app-key: ********************{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"file_ids": "string",
"mode": "bilingual",
"language": "Auto-Detect",
"subtitle_position": "auto",
"y_offset_start": 0,
"y_offset_end": 1,
"time_start": 0,
"time_end": 0,
"callback_data": "string"
}curl --location 'https://api.jieshuo.cn/v1/tasks/ocr-extraction' \
--header 'x-code;' \
--header 'app-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"file_ids": "string",
"mode": "bilingual",
"language": "Auto-Detect",
"subtitle_position": "auto",
"y_offset_start": 0,
"y_offset_end": 1,
"time_start": 0,
"time_end": 0,
"callback_data": "string"
}'{
"code": 10000,
"message": "Success",
"data": {
"task_id": "string",
"status": 0,
"estimated_points": 0,
"message": "Task created"
}
}