Submits an automated review job for audio and video files. The job is executed asynchronously after submission, and the job may not be complete when the response is returned.
Operation description
Before using this operation, make sure that you are familiar with the billing methods and pricing of ApsaraVideo VOD. Automated review is a paid feature. For billing details, submit a ticket or contact your Alibaba Cloud account manager.
This operation currently supports only the Shanghai, Beijing, and Singapore regions.
This is an asynchronous operation. After you submit a task, a task ID is returned. The task is not yet complete at this point and enters a queue for asynchronous execution. The final result is sent through a callback notification. You can also call Query automated review job to query the task status.
For the development guide on submitting automated review jobs, refer to Automated review.
After an automated review job is complete, the image resources generated during the job are retained for free for only two weeks in the VOD system bucket allocated by ApsaraVideo VOD. The images are automatically deleted after two weeks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:SubmitAIMediaAuditJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
Yes |
The audio or video ID. Log on to the ApsaraVideo VOD console and choose Review Management > Video Review to view the audio or video ID. |
fe028d09441afffb138cd7ee**** |
| TemplateId |
string |
No |
The AI template ID. You can obtain the ID by using one of the following methods:
Note
If you do not specify an AI template ID, the default AI template ID for automated review is used. |
a07a7f7d7d10eb9fd999e56ecc**** |
| UserData |
string |
No |
The custom settings. The value is a JSON string that supports settings such as message callbacks. For more information, refer to UserData. Note
To use message callbacks in this parameter, you must configure an HTTP callback URL and select the corresponding callback event types in the console. Otherwise, the callback settings do not take effect. For information about how to configure HTTP callbacks in the console, refer to Callback settings. |
{"MessageCallback":{"CallbackURL":"http://test.test.com"},"Extend":{"localId":"xxx","test":"www"}} |
| MediaType |
string |
No |
video |
|
| MediaAuditConfiguration |
string |
No |
{"ResourceType":"****_movie"} |
|
|
No |
||||
|
No |
||||
|
No |
The media type. Currently, only video is supported. |
video |
||
|
No |
The configuration of the review job.
|
{"ResourceType":"****_movie"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F4631053-8D9F-42B2-4A67281DB88E**** |
| MediaId |
string |
The audio or video ID. |
fe028d09441afffb138cd7ee**** |
| JobId |
string |
The job ID. |
bdbc266af6893943a70176d92e99**** |
Examples
Success response
JSON format
{
"RequestId": "F4631053-8D9F-42B2-4A67281DB88E****",
"MediaId": "fe028d09441afffb138cd7ee****",
"JobId": "bdbc266af6893943a70176d92e99****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.