Call this operation to submit an intelligent media moderation job for an image. After the job is submitted, it is processed asynchronously. The response does not mean the job is complete.
Operation description
Intelligent media moderation is a paid service. Before you call this operation, make sure that you fully understand the billing methods and pricing of ApsaraVideo VOD. For more information, see Billing of intelligent media moderation.
This operation is available only in the China (Shanghai), China (Beijing), and Singapore regions.
This is an asynchronous API. After a task is submitted, the system returns a job ID and queues the job for asynchronous processing. The job is not complete when the initial response is returned. The final result is delivered through a callback. You can also call the Query intelligent media moderation jobs operation to check the task status.
An image cannot exceed 20 MB in size. Its height or width cannot exceed 30,000 pixels, and the total number of pixels cannot exceed 250 million.
(Recommended) For best results, use an image with a resolution of at least 256 × 256 pixels. A lower resolution may affect the moderation accuracy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:SubmitAIImageAuditJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
Yes |
The ID of the image. This ID is returned after you upload the image to ApsaraVideo VOD. |
f1aa3024aee64*****6dc8ca20dbc320 |
| TemplateId |
string |
Yes |
The ID of the AI template. You can obtain the ID in one of the following ways:
|
a07a7f7d7d10eb9fd999e56ecc**** |
| MediaAuditConfiguration |
string |
No |
The configuration of the moderation job.
Note
|
{"ResourceType":"****_short_video"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| JobId |
string |
The ID of the image moderation job. |
b1aa3024aee64*****6dc8ca20dbc328 |
| RequestId |
string |
The ID of the request. |
6F42D500-1956-4B*****30-C09E755F4F4B |
Examples
Success response
JSON format
{
"JobId": "b1aa3024aee64*****6dc8ca20dbc328",
"RequestId": "6F42D500-1956-4B*****30-C09E755F4F4B"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.