Adds an AI template for automated review and smart thumbnail tasks.
Operation description
Currently, this operation is supported in the following regions: China (Beijing), China (Shanghai), and Singapore.
Before adding an AI template for automated review and smart thumbnail tasks, make sure that you have activated automated review or smart 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. Maximum length: 128 bytes. |
AI-media-test |
| TemplateType |
string |
Yes |
The templatetype of the AI template. Valid values:
|
AIMediaAudit |
| TemplateConfig |
string |
Yes |
The detailed configuration of the AI template. The value is a JSON string. For more information, see AITemplateConfig. |
{"AuditItem":["terrorism","porn"],"AuditRange":["image-cover","text-title","video"],"AuditContent":["screen"],"AuditAutoBlock":"yes"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TemplateId |
string |
The ID of the AI template. |
1706a0063dd733f6a823ef32e0a5**** |
| RequestId |
string |
The request ID. |
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.