All Products
Search
Document Center

Intelligent Media Management:CreateVideoLabelClassificationTask

Last Updated:Jan 27, 2026

Detects labels for scenarios, objects, and events in video content. This feature supports more than 30 categories and thousands of labels. Scenario labels include natural landscapes, life scenes, and disaster scenes. Event labels include talent shows, office work, performances, and production. Object labels include tableware, electronic products, furniture, and vehicles.

Operation description

  • Before you call this operation, make sure that you understand the billing methods and pricing of Intelligent Media Management.

  • Before you call this operation, make sure that you have created a project in Intelligent Media Management. For more information, see Create a project.
    Important The completion time of asynchronous tasks is not guaranteed.
  • For more information about the features of this operation, see Video label detection.

  • This operation supports multiple video formats, such as MP4, MPEG-TS, MKV, MOV, AVI, FLV, and M3U8.

  • This is an asynchronous operation. After a task starts, its information is stored for seven days. You cannot retrieve the information after this period. Call the GetTask or ListTasks operation with the returned TaskId to view task information. You can also set the Notification parameter to receive task information through message notifications.

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.

Test

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 Action element 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 Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • 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

imm:CreateVideoLabelClassificationTask

create

*Project

acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectName

string

Yes

The project name. For more information about how to obtain the project name, see Create a project.

immtest

SourceURI

string

Yes

The Object Storage Service (OSS) URI of the video.

The OSS URI must follow the format oss://${Bucket}/${Object}. ${Bucket} is the name of the OSS bucket that is in the same region as the current project. ${Object} is the full path of the file, including the file name extension.

oss://bucket1/object.mp4

UserData

string

No

Custom information. This information is returned in the asynchronous notification message. You can use this information to associate the notification message with your services. The maximum length is 2,048 bytes.

{ "ID": "testuid", "Name": "test-user", "Avatar": "http://test.com/testuid" }

Tags

object

No

Custom tags that you can use to search for and filter asynchronous tasks.

{"test":"val1"}

CredentialConfig CredentialConfig

No

If you do not have special requirements, leave this parameter empty.

The chained authorization configuration. This parameter is not required. For more information, see Use chained authorization to access resources of other entities.

Notification Notification

No

The message notification configuration. For more information, click Notification. For more information about the format of asynchronous notification messages, see Asynchronous notification message format.

Response elements

Element

Type

Description

Example

object

The response struct for creating a video label detection task.

RequestId

string

The ID of the request.

CA995EFD-083D-4F40-BE8A-BDF75FFFE0B6

EventId

string

The event ID of the task. You can use this ID to query task information notifications in the EventBridge service.

03F-1Qt1Yn5RZZ0Zh3ZdYlDblv7****

TaskId

string

The ID of the task. You can use the GetTask operation to view task information or the GetVideoLabelClassificationResult operation to obtain the results of the video label detection task.

VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec*****

Examples

Success response

JSON format

{
  "RequestId": "CA995EFD-083D-4F40-BE8A-BDF75FFFE0B6",
  "EventId": "03F-1Qt1Yn5RZZ0Zh3ZdYlDblv7****",
  "TaskId": "VideoLabelClassification-2f157087-91df-4fda-8c3e-232407ec*****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.