Skip to main content

AsyncUploadVideo

Uploads video assets for editing.

Debug

You can call this API directly in OpenAPI Explorer without calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.

RAM authorization

The following table describes the authorization information of the API. You can use it in the Action element of RAM permission policy statements to grant a RAM user or RAM role the permission to call this API. Details are as follows:
  • Action: The specific permission point.
  • Access level: The access level of each operation. Valid values: Write, Read, and List.
  • Resource type: The resource types that support authorization for the operation. Details are as follows:
    • Required resource types are marked with a preceding asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: The condition keys defined by the cloud service itself.
  • Dependent action: The other permissions required to successfully perform the operation. The operator must also have the permissions of the dependent actions for the operation to succeed.

Action

Access level

Resource type

Condition key

Dependent action

aimiaobi:AsyncUploadVideo

create

*All Resources

*

NoneNone

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

SourceVideos

array<object>

Yes

The structure of the video editing materials.

object

No

The structure of the video editing materials.

VideoName

string

Yes

The name of the video.

123.mp4

VideoUrl

string

Yes

The URL of the video.

http://123.mp4 Currently, this API only performs video understanding and analysis and does not transfer files. Ensure that the video URL remains valid during task execution.

VideoExtraInfo

string

No

Additional description of the video.

There is a house in the video.

AnlysisPrompt

string

No

The prompt for video understanding.

Focus on understanding the scenery information in the video.

WorkspaceId

string

Yes

llm-xxxx

ReferenceVideo

object

No

Information about the reference video.

VideoName

string

No

The name of the reference video.

refvideo.mp4

VideoUrl

string

No

The URL of the video.

http://viapi-customer-pop.oss-cn-shanghai.aliyuncs.com/d71e_208334498220521996_51298e0a909d457693166eb883768c7a

VideoExtraInfo

string

No

Additional information for video understanding.

The phone CPU uses 3-nanometer technology.

SplitInterval

integer

No

The time interval for video understanding shots.

1 by default

VideoRoles

array<object>

No

Face information of the roles.

array<object>

No

The name of the role.

RoleName

string

No

The name of the role.

Li Xiaoming

RoleInfo

string

No

Information about the role.

Li Xiaoming is a police officer.

RoleUrls

array<object>

No

The URLs of the role photos.

object

No

Information about the role's image file.

RoleFileName

string

No

The file name of the role's facial image.

Wang Xiaoming.jpeg

RoleFileUrl

string

No

The public URL of the role's facial image.

http://xxx/xxx.jpeg

FaceIdentitySimilarityMinScore

number

No

The similarity threshold for character recognition.

0.7

VideoShotFaceIdentityCount

integer

No

The number of frames (images) sampled for matching within a single shot during character matching.

2

RemoveSubtitle

boolean

No

Removes subtitles from the material.

TaskName

string

No

The name of the task.

task001

TaskType

string

No

The type of the task.

type001

AdaptiveThreshold

number

No

Shot threshold. A smaller value indicates more sensitive shot detection. Value range: 1 to 10. Default: 3.

3.0

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

94512A33-8EC1-5452-A793-5C91F18ED2F0

Code

string

The status code returned for the request.

successful

Data

object

The business data.

TaskId

string

The task ID.

3f7045e099474ba28ceca1b4eb6d6e21

VideoInfos

array<object>

Information about the videos.

object

Information about the video.

VideoId

string

The video ID.

60616fad41b171f0bb4b4531948c0102

VideoName

string

The name of the video.

123.mp4

VideoUrl

string

The video URL.

http://123.mp4

VideoExtraInfo

string

Additional information about the video.

There is a house in the video.

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The error message.

success

Success

boolean

Indicates whether the request was successful. `true` indicates success. `false` indicates failure.

true

Examples

Success response JSON format
{
  "RequestId": "94512A33-8EC1-5452-A793-5C91F18ED2F0",
  "Code": "successful",
  "Data": {
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "VideoInfos": [
      {
        "VideoId": "60616fad41b171f0bb4b4531948c0102",
        "VideoName": "123.mp4",
        "VideoUrl": "http://123.mp4",
        "VideoExtraInfo": "There is a house in the video."
      }
    ]
  },
  "HttpStatusCode": 200,
  "Message": "success",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

403NoPermissionYou are not authorized to perform this action.Please check the workspaceId assignment
See Error Center for more error codes.

Release notes

For more information, see change details.