Skip to main content

GetSmartClipTask

Queries a one-click video editing task.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples. Try it now

RAM authorization

The following table describes the authorization information for this API. You can use the Action element in RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details:
  • Action: the specific permission point.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the operation. Details:
    • Required resource types are marked with a leading *.
    • For operations that do not support resource-level authorization, 全部资源 is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:GetSmartClipTaskcreate
*All Resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdstringYes

Unique identifier of the Alibaba Cloud Model Studio workspace. To get the workspace ID, see Get the workspace ID

xxxx
TaskIdstringYes

Unique identifier of the task

Note You do not need to specify TaskId by default. The system generates it automatically. If the TaskId of subsequent tasks is the same, those tasks belong to the same conversation group.
task-03d46184ee7d8749

Response elements

ElementTypeDescriptionExample
object

PlainResult

Codestring

Status code

NoData
Dataobject

Task response

Statusstring

Task status: PENDING: Pending RUNNING: Running SUCCESSED: Succeeded FAILED: Failed CANCELED: Canceled

RUNNING
ErrorMessagestring

Error message

Error message
SubJobsarray<object>

List of subtasks

subJobsobject

Subtask

SubJobIdstring

Subtask ID

xxxxx
Statusstring

Subtask status PENDING: Pending RUNNING: Running SUCCESSED: Succeeded FAILED: Failed CANCELED: Canceled

RUNNING
ErrorMessagestring

Error message

Invalid file name
FileKeystring

File key

oss://default/bucket-name/path-xxx/xxx-1.mp4
FileAttrobject

File attributes

FileNamestring

Video file name

2024-12-12.mp4
FileLengthstring

Video file size

290804
TmpUrlstring

Temporary URL to access the video file. Expires in one hour.

http://www.example.com/tmp.mp4
Durationdouble

Video duration in seconds

120
Heightinteger

Video height

1080
Widthinteger

Video width

1920
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error description

success
RequestIdstring

Unique identifier of the request

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Indicates whether the operation succeeded: true indicates success, false indicates failure

true

Examples

Success response JSON format
{
  "Code": "NoData",
  "Data": {
    "Status": "RUNNING",
    "ErrorMessage": "错误信息",
    "SubJobs": [
      {
        "SubJobId": "xxxxx",
        "Status": "RUNNING",
        "ErrorMessage": "文件名错误",
        "FileKey": "oss://default/bucket-name/path-xxx/xxx-1.mp4",
        "FileAttr": {
          "FileName": "2024-12-12.mp4",
          "FileLength": 290804,
          "TmpUrl": "http://www.example.com/tmp.mp4",
          "Duration": 120,
          "Height": 1080,
          "Width": 1920
        }
      }
    ]
  },
  "HttpStatusCode": 200,
  "Message": "success",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

See Error Codes for more error codes.