All Products
Document Center

ApsaraVideo VOD:SubmitAIImageJob

Last Updated:May 11, 2024

Submits jobs of image AI processing.

Operation description

  • Regions that support this operation: China (Beijing) and China (Shanghai).
  • After you call this operation, you can call the GetAIImageJobs operation to query the job execution result.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
  • All Resources

Request parameters


The ID of the video. You can use one of the following methods to obtain the ID:

  • Log on to the ApsaraVideo VOD console. In the left-side navigation pane, choose Media Files > Audio/Video. On the Video and Audio page, view the ID of the video file. This method is applicable to files that are uploaded by using the ApsaraVideo VOD console.
  • Obtain the value of VideoId from the response to the CreateUploadVideo operation that you call to upload the video.
  • Obtain the value of VideoId from the response to the SearchMedia operation after you upload the video.

The ID of the AI template. You can use one of the following methods to obtain the ID:

  • Obtain the value of TemplateId from the response to the AddAITemplate that you call to create the template.
  • Obtain the value of TemplateId from the response to the ListAITemplate operation after you create the template.

The user data.

  • The value must be a JSON string.
  • You must specify the MessageCallback or Extend parameter.
  • The value can contain a maximum of 512 bytes.

For more information, see the "UserData: specifies the custom configurations for media upload" section of the Request parameters topic.


The ID of the pipeline that is used for the AI processing job.

Note This parameter is optional if you have specified a default pipeline ID. If you need to submit image AI processing jobs in a batch to a specific pipeline, submit a ticket to contact Alibaba Cloud technical support.

Response parameters


The returned data.


The ID of the image AI processing job.


The ID of the request.



Sample success responses


  "JobId": "cf08a2c6e11e*****de1711b738b9067",
  "RequestId": "218A6807-A21E-43*****54-C0512880B0B0"

Error codes

For a list of error codes, visit the Service error codes.