Submits a media file to Intelligent Media Services for a censor job. This API automates the scanning of video, audio, or image content to detect potentially non-compliant, sensitive, or inappropriate material.
Operation description
This is an asynchronous API. After you submit a job, the service returns a job ID and processes the job in the background. You receive the final result through a callback notification. You can also check the job status by calling the QueryMediaCensorJob API.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitMediaCensorJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
No |
The template ID. If this parameter is left empty, the service uses the default template for the censor job. |
S00000001-100060 |
| CoverImages |
string |
No |
The Object Storage Service (OSS) files for the cover images, specified as a JSON array. You can specify up to five cover images. Note
If specified, this parameter overrides the cover image information in the Media object. |
[{"Bucket":"example-bucket-****","Location":"oss-cn-shanghai","Object":"example-****.jpeg","RoleArn":"acs:ram::1997018457688683:role/AliyunICEDefaultRole"}] |
| Title |
string |
No |
The video title. The maximum length is 64 bytes. Note
If specified, this parameter overrides the title specified in the Media object. |
Hello World |
| Description |
string |
No |
The video description. The maximum length is 128 bytes. Note
If specified, this parameter overrides the description specified in the Media object. |
example description |
| Barrages |
string |
No |
The video barrages (on-screen comments). Note
If specified, it overrides the barrages specified in the Media object. |
hello world |
| Output |
string |
No |
The output location for screenshots. The censor job generates screenshots and a result JSON file in the OSS location specified by this parameter.
|
oss://sashimi-cn-shanghai/censor/snapshot-{Count}.jpg |
| UserData |
string |
No |
The user-defined data. The maximum length is 128 bytes. |
UserDatatestid-001-**** |
| NotifyUrl |
string |
No |
The callback path. Both Message Service (MNS) and HTTP callbacks are supported. |
mns://125340688170****.oss-cn-shanghai.aliyuncs.com/queues/example-pipeline |
| Input |
object |
No |
The input file to censor. |
|
| Type |
string |
No |
The type of the input file. Valid values:
|
Media |
| Media |
string |
No |
The identifier for the input file. You can specify either an OSS URL or a media ID. Valid OSS URL formats: 1. 2. The |
1b1b9cd148034739af413150fded**** |
| ScheduleConfig |
object |
No |
The scheduling configuration. |
|
| PipelineId |
string |
No |
The pipeline ID. |
5246b8d12a62433ab77845074039**** |
| Priority |
integer |
No |
The task priority. A higher value indicates a higher priority. Valid values range from 1 to 10. |
6 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4A13-BEF6-D7393642CA58 |
| JobId |
string |
The ID of the video censor job. We recommend saving this ID for subsequent API calls. |
88c6ca184c0e47098a5b665e2**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"JobId": "88c6ca184c0e47098a5b665e2****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.