GetAutoClipsTaskInfo
Retrieves the status of a video editing task.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:
-
Action: The actions can be used in the
Actionelement of RAM permission policy statements to grant permissions to perform the operation. -
API: The API that you can call to perform the action.
-
Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.
-
Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
Resourceelement of the policy. - For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the
Resourceelement of the policy.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
-
Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.
-
Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:GetAutoClipsTaskInfo | get | *All Resource
| None | None |
Request syntax
POST HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| TaskId | string | Yes | Unique ID of the task. | 0dbf1055f8a2475d99904c3b76a0ffba |
| WorkspaceId | string | Yes | Model Studio workspace ID | |
| ShowResourceInfo | boolean | No | Show video source information. | false |
| ShowAnalysisResults | boolean | No | Show video understanding results. | false |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Response schema. | ||
| RequestId | string | ID of the request. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Code | string | Status code. | successful |
| Data | object | Business data. | |
| TaskId | string | Unique ID of the task. | e5a1a59c82d0454fad6454e8a04d0093 |
| Step | string | Current step. | clips |
| Status | integer | Status | 0-Pending, 1-Running, 2-Success, 3-Paused, 4-Failed (retryable), 5-Failed (non-retryable), 6-Canceled |
| Content | string | Full voiceover script. | Voiceover script |
| Timelines | array<object> | Array of voiceover timelines. | |
array<object> | Voiceover timeline. | ||
| TimelineId | string | ID of the timeline. | 20774ebd9abc71ef80486632b68f0102 |
| Content | string | Voiceover script. | Voiceover script |
| Clips | array<object> | Array of video clips. | |
object | Video clip. | ||
| ClipId | string | ID of the clip. | 20774ebd9abc71ef80486632b68f0102 |
| VideoName | string | Name of the video. | 123.mp4 |
| VideoId | string | ID of the video. | 20774ebd9abc71ef80486632b68f0102 |
| In | integer | Start time of the clip in seconds. This field is deprecated. | 0 |
| Out | integer | End time of the clip in seconds. This field is deprecated. | 5 |
| ContentInner | string | Segmented voiceover script. | Segmented voiceover script |
| InEx | number | Start time of the clip in milliseconds. | 0.33 |
| OutEx | number | End time of the clip in milliseconds. | 3.45 |
| VoiceStyle | string | Voice style for voiceover. | Gentle female voice |
| MusicStyle | string | Recommended music style. | Chinese style |
| MusicUrl | string | URL of the background music. | |
| MusicVolume | integer | Volume of the background music. | 5 |
| VoiceVolume | integer | Volume of the voiceover. | 5 |
| SubtitleFontSize | integer | Font size of subtitles. | 5 |
| OutputVideoUrl | string | URL of the final video. | |
| MediaCloudTimeline | string | ApsaraVideo timeline. | ApsaraVideo format timeline |
| ColorWords | array<object> | Array of decorative text elements. | |
object | Decorative text element. | ||
| Content | string | Text content. | Decorative text content |
| TimelineIn | integer | Start time of the decorative text in seconds. | 0 |
| TimelineOut | integer | End time of the decorative text in seconds. | 5 |
| X | number | X-coordinate of the decorative text. | 0.2 |
| Y | number | Y-coordinate of the decorative text. | 0.5 |
| FontSize | integer | Font size of the decorative text. | 5 |
| EffectColorStyle | string | Visual effect of the decorative text. | CS0002-000008 |
| ErrorMessage | string | Error message. | Error message |
| CloseVoice | boolean | Disable voiceover. | |
| CloseSubtitle | boolean | Disable subtitles. | |
| CloseMusic | boolean | Disable background music. | |
| CustomVoiceUrl | string | URL of the custom audio track file. | http://xxx/xxx.mp4 |
| CustomVoiceVolume | integer | Volume of the custom audio track. | 0 |
| Stickers | array<object> | Array of stickers. | |
object | Sticker structure. | ||
| Url | string | URL of the sticker GIF file. | http://xxx/xxx.gif |
| TimelineIn | integer | Start time of the sticker in seconds. | 10 |
| Duration | integer | Duration of the sticker display. | 10 |
| X | number | X-coordinate of the sticker position. | 100 |
| Y | number | Y-coordinate of the sticker position. | 100 |
| Width | integer | Width of the sticker. | 200 |
| Height | integer | Height of the sticker. | 200 |
| DyncFrames | integer | Height of the sticker | 8 |
| CustomVoiceStyle | string | Voice style for CosyVoice. | longxian_normal |
| OutputVideoFileKey | string | File key of the output video. | oss://xxx/xxx.mp4 |
| OpeningCreditsUrl | string | URL of the opening credits video. | http://xxx/xxx.mp4 |
| ClosingCreditsUrl | string | URL of the closing credits video. | http://xxx/xxx.mp4 |
| SourceVideos | array<object> | List of video sources used for editing. | |
object | Video source structure. | ||
| VideoId | string | Video ID. | fdaswe |
| VideoName | string | Video name. | video001.mp4 |
| VideoUrl | string | Video URL. | http://xxx/xxx.mp4 |
| ReferenceVideo | object | Reference video information. | |
| VideoId | string | Video ID. | 90ca686b11c371f08339752281ed0102 |
| VideoName | string | Video name. | video001.mp4 |
| VideoUrl | string | Video URL. | http://xxx/xxx.mp4 |
| AnalysisResults | array<object> | List of video understanding results. | |
array<object> | Video understanding result. | ||
| MediaId | string | Video ID. | 975e1d91a8d057e132cc5d88e4d5b360 |
| MediaName | string | Video name. | video001.mp4 |
| MediaUrl | string | Video URL. | http://xxx/xxx.mp4 |
| LensInfos | array<object> | List of shot information. | |
array<object> | Shot information. | ||
| StartTime | object | Start time. | |
| Hour | integer | Hour. | 2 |
| Minute | integer | Minute. | 1 |
| Second | integer | Second. | 30 |
| MillSecond | integer | Millisecond. | 100 |
| EndTime | object | End time. | |
| Hour | integer | Hour. | 2 |
| Minute | integer | Minute. | 1 |
| Second | integer | Second. | 30 |
| MillSecond | integer | Millisecond. | 100 |
| AnalysisContent | string | Content analysis | Video understanding content |
| HttpStatusCode | integer | HTTP status code. | 200 |
| Message | string | Error description. | success |
| Success | boolean | Indicates whether the operation succeeded. A value of true indicates success. A value of false indicates failure. | true |
Examples
Success response
JSON format
{
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Code": "successful",
"Data": {
"TaskId": "e5a1a59c82d0454fad6454e8a04d0093",
"Step": "clips",
"Status": 0,
"Content": "口播内容",
"Timelines": [
{
"TimelineId": "20774ebd9abc71ef80486632b68f0102",
"Content": "口播内容",
"Clips": [
{
"ClipId": "20774ebd9abc71ef80486632b68f0102\n",
"VideoName": "123.mp4",
"VideoId": "20774ebd9abc71ef80486632b68f0102",
"In": 0,
"Out": 5,
"ContentInner": "口播分段内容",
"InEx": 0.33,
"OutEx": 3.45
}
]
}
],
"VoiceStyle": "温柔女声",
"MusicStyle": "国风",
"MusicUrl": "http://music.mp4",
"MusicVolume": 5,
"VoiceVolume": 5,
"SubtitleFontSize": 5,
"OutputVideoUrl": "http://output.mp4",
"MediaCloudTimeline": "视频云格式timeline",
"ColorWords": [
{
"Content": "花字内容",
"TimelineIn": 0,
"TimelineOut": 5,
"X": 0.2,
"Y": 0.5,
"FontSize": 5,
"EffectColorStyle": "CS0002-000008"
}
],
"ErrorMessage": "错误信息",
"CloseVoice": false,
"CloseSubtitle": false,
"CloseMusic": false,
"CustomVoiceUrl": "http://xxx/xxx.mp4",
"CustomVoiceVolume": 0,
"Stickers": [
{
"Url": "http://xxx/xxx.gif",
"TimelineIn": 10,
"Duration": 10,
"X": 100,
"Y": 100,
"Width": 200,
"Height": 200,
"DyncFrames": 8
}
],
"CustomVoiceStyle": "longxian_normal",
"OutputVideoFileKey": "oss://xxx/xxx.mp4",
"OpeningCreditsUrl": "http://xxx/xxx.mp4",
"ClosingCreditsUrl": "http://xxx/xxx.mp4",
"SourceVideos": [
{
"VideoId": "fdaswe",
"VideoName": "video001.mp4",
"VideoUrl": "http://xxx/xxx.mp4"
}
],
"ReferenceVideo": {
"VideoId": "90ca686b11c371f08339752281ed0102",
"VideoName": "video001.mp4",
"VideoUrl": "http://xxx/xxx.mp4"
},
"AnalysisResults": [
{
"MediaId": "975e1d91a8d057e132cc5d88e4d5b360",
"MediaName": "video001.mp4",
"MediaUrl": "http://xxx/xxx.mp4",
"LensInfos": [
{
"StartTime": {
"Hour": 2,
"Minute": 1,
"Second": 30,
"MillSecond": 100
},
"EndTime": {
"Hour": 2,
"Minute": 1,
"Second": 30,
"MillSecond": 100
},
"AnalysisContent": "视频理解内容"
}
]
}
]
},
"HttpStatusCode": 200,
"Message": "success",
"Success": true
}
Error codes
HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Please check the workspaceId assignment |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.