Call this operation to add an AI template for automated review and intelligent thumbnail tasks.
Operation description
This operation is supported in the following regions: China (Beijing), China (Shanghai), and Singapore.
Before you add an AI template for automated review and intelligent thumbnail tasks, make sure that you have activated Automated Review or Intelligent Thumbnail.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddAITemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateName |
string |
Yes |
The name of the AI template. The name can be up to 128 bytes in length. |
AI-media-test |
| TemplateType |
string |
Yes |
The type of the AI template. Valid values:
|
AIMediaAudit |
| TemplateConfig |
string |
Yes |
The detailed configurations of the AI template. The value must be a JSON string. For more information, see AITemplateConfig. |
{"AuditItem":["terrorism","porn"],"AuditRange":["image-cover","text-title","video"],"AuditContent":["screen"],"AuditAutoBlock":"yes"} |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The returned results. |
||
| TemplateId |
string |
The ID of the AI template. |
1706a0063dd733f6a823ef32e0a5**** |
| RequestId |
string |
The ID of the request. |
25818875-5F78-4A13-BEF6-**** |
Examples
Success response
JSON format
{
"TemplateId": "1706a0063dd733f6a823ef32e0a5****",
"RequestId": "25818875-5F78-4A13-BEF6-****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.