All Products
Search
Document Center

ApsaraVideo VOD:SubmitAIImageJob

Last Updated:Mar 27, 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.

Debugging

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
vod:SubmitAIImageJobWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VideoIdstringYes

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.
357a8748c5774*****89d2726e6436aa
AITemplateIdstringYes

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.
ef1a8842cb9f*****cea80cad902e416
UserDatastringNo

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.

{"Extend":{"localId":"****","test":"www"}}
AIPipelineIdstringNo

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.
6492025b8f*****6ba5bb755a33438

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

JobIdstring

The ID of the image AI processing job.

cf08a2c6e11e*****de1711b738b9067
RequestIdstring

The ID of the request.

218A6807-A21E-43*****54-C0512880B0B0

Examples

Sample success responses

JSONformat

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

Error codes

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