mode=one_stop):video_composing_task_id — 视频合成任务 IDmode=staged):file_id — 剪辑数据文件 IDclip_data — 剪辑数据内容(≤500KB)template_names — 要应用的模板名称列表(通过 GET /v1/resources/visual-templates 获取)template_params — 各模板的自定义参数app-key: ********************{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"mode": "one_stop",
"video_composing_task_id": "string",
"file_id": "string",
"clip_data": {
"property1": "string",
"property2": "string"
},
"template_names": [
"string"
],
"template_params": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"callback_data": "string"
}curl --location 'https://api.jieshuo.cn/v1/tasks/magic-video' \
--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"
},
"mode": "one_stop",
"video_composing_task_id": "string",
"file_id": "string",
"clip_data": {
"property1": "string",
"property2": "string"
},
"template_names": [
"string"
],
"template_params": {
"property1": {
"property1": "string",
"property2": "string"
},
"property2": {
"property1": "string",
"property2": "string"
}
},
"callback_data": "string"
}'{
"code": 10000,
"message": "Success",
"data": {
"task_id": "string",
"status": 0,
"estimated_points": 0,
"message": "Task created",
"video_composing_task_id": "string",
"sub_tasks": [
{
"sub_task_id": "string",
"template_name": "string",
"status": 0,
"consumed_points": 0,
"output_url": "string",
"error_message": "string"
}
],
"total_consumed_points": 0
}
}