curl --location 'https://open.vectcut.com/cut_jianying/execute_workflow' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": {
"text": {
"word": {
"word": {
"word": {
"word": "Hello!"
}
}
}
},
"start": [0, 1, 2, 3],
"end": {
"time1": [
{
"start": 5.0,
"end": 10.0
},
{
"start": 10.0,
"end": 15.0
}
]
}
},
"script": [
{
"type": "action",
"id": "uuid_1",
"index": 0,
"action_type": "add_text",
"params": {
"text": "${text.word.word.word.word}",
"start": "${start[3]}*${start[2]}",
"end": "${end.time1[1].start}+20",
"track_name": "text_main",
"font_size": 8.0,
"font_color": "#FF0000"
}
},
{
"type": "action",
"id": "uuid_2",
"index": 1,
"action_type": "add_text",
"params": {
"text": "draft_id_${uuid_1.draft_id}_123",
"start": 0,
"end": 5.0,
"track_name": "text_1",
"transform_y": 0.3
}
},
{
"type": "action",
"id": "uuid_3",
"index": 2,
"action_type": "add_subtitle",
"params": {
"srt": "1\n00:00:00,000 --> 00:00:04,433\n你333好,我是孙关南开发的剪映草稿助手。\n\n2\n00:00:04,433 --> 00:00:11,360\n我擅长将音频、视频、图片素材拼接在一起剪辑输出剪映草稿。\n",
"track_name": "subtitle_1",
"font_size": 5.0
}
},
{
"type": "action",
"id": "uuid_4",
"index": 3,
"action_type": "add_text_template",
"params": {
"template_id": "7373303725881822491",
"start": 2.0,
"track_name": "text_template_main"
}
},
{
"type": "action",
"id": "uuid_5",
"index": 4,
"action_type": "add_image",
"params": {
"image_url": "https://pic1.imgdb.cn/item/68ba8fc058cb8da5c8801ab0.png",
"start": 5.0,
"end": 10.0,
"track_name": "image_main",
"scale_x": 0.8,
"scale_y": 0.8
}
},
{
"type": "action",
"id": "uuid_6",
"index": 5,
"action_type": "add_video",
"params": {
"video_url": "https://cdn.wanx.aliyuncs.com/wanx/1719234057367822001/text_to_video/092faf3c94244973ab752ee1280ba76f.mp4?spm=5176.29623064.0.0.41ed26d6cBOhV3&file=092faf3c94244973ab752ee1280ba76f.mp4",
"target_start": 10.0,
"track_name": "video_main"
}
},
{
"type": "action",
"id": "uuid_7",
"index": 6,
"action_type": "add_audio",
"params": {
"audio_url": "https://lf3-lv-music-tos.faceu.com/obj/tos-cn-ve-2774/oYACBQRCMlWBIrZipvQZhI5LAlUFYii0RwEPh",
"start": 0.0,
"track_name": "audio_main",
"volume": 0.8
}
},
{
"type": "action",
"id": "uuid_8",
"index": 7,
"action_type": "add_video_keyframe",
"params": {
"track_name": "video_main",
"time": 10.5,
"property_type": "position_y",
"value": 1
}
},
{
"type": "action",
"id": "uuid_9",
"index": 8,
"action_type": "add_video_keyframe",
"params": {
"track_name": "video_main",
"time": 11.5,
"property_type": "position_y",
"value": 0.2
}
},
{
"type": "action",
"id": "uuid_10",
"index": 9,
"action_type": "add_video_keyframe",
"params": {
"track_name": "video_main",
"times": [10.5, 12.5],
"property_types": ["position_x", "position_x"],
"values": [1, -1]
}
},
{
"type": "action",
"id": "uuid_11",
"index": 10,
"action_type": "add_effect",
"params": {
"effect_category": "scene",
"effect_type": "金粉闪闪",
"start": 0,
"end": 10,
"track_name": "effect_01",
"params": [100, 50, 34]
}
},
{
"type": "action",
"id": "uuid_12",
"index": 11,
"action_type": "add_sticker",
"params": {
"sticker_id": "7107529669750066445",
"start": 20.0,
"end": 25.0,
"transform_y": 0.3,
"transform_x": -0.2,
"alpha": 0.8,
"rotation": 45.0,
"scale_x": 1.5,
"scale_y": 1.5,
"track_name": "sticker_main"
}
}
]
}'