Edit and compose videos with AI-powered instructions
| Field | Type | Required | Description |
|---|---|---|---|
| asset_ids | array[string] | Yes | Array of video asset IDs to combine and edit |
| orientation | string | Yes | Output video orientation: "landscape" or "portrait" |
| user_prompt | string | Yes | AI editing instructions describing desired output (max 500 characters, English recommended for best results) |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code indicating the result status |
| msg | string | Response message describing the operation result |
| data | object | Response data object containing task information |
| data.task_id | string | Unique identifier of the video editing task |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code (200 indicates success) |
| message | string | Status message (e.g., “SUCCESS”) |
| data | object | Response data object containing the edited video information |
| data.asset_id | string | Unique asset ID for the edited video |
| data.create_time | string | Creation timestamp in milliseconds |
| data.extension | string | File extension of the edited video (e.g., “mp4”) |
| data.file_size | integer | Size of the edited video in bytes |
| data.modify_time | string | Last modification timestamp in milliseconds |
| data.original_filename | string | Filename of the edited video (e.g., “final_video”) |
| data.upload_status | string | Upload status of the edited video (e.g., “SUCCESS”) |
| task_id | string | The task ID associated with this video editing request |
callback_response.data.asset_idcallback_response.data.file_sizecallback_response.data.original_filenamecallback_response.data.upload_statuscallback_response.data.create_timecallback_response.task_iduser_prompt parameter guides the AI editing process. Here are some effective prompt examples:
| Use Case | Example Prompt |
|---|---|
| Montage | "Create a dynamic montage with smooth transitions" |
| Highlight Reel | "Create a 30-second highlight reel focusing on the most exciting moments" |
| Summary | "Compile a brief summary video with key scenes from all clips" |
| Style | "Edit with fast-paced cuts and energetic transitions for social media" |
| Narrative | "Arrange clips in chronological order with fade transitions" |
landscape (16:9) or portrait (9:16)Array of video asset IDs to combine and edit
[
"re_657739295220518912",
"re_657739295220518913"
]Output video orientation
landscape, portrait "portrait"
AI editing instructions describing desired output
"Create a dynamic montage with smooth transitions"
Video editing initiated successfully
Response code indicating the result status
200
Response message describing the operation result
"success"
Response data object containing task information
Indicates whether the operation was successful
true
Indicates whether the operation failed
false