All Products
Search
Document Center

ApsaraVideo VOD:AddAITemplate

更新時間:Jul 19, 2024

Adds an AI template for automated review and smart thumbnail tasks.

Operation description

  • Regions that support this operation: China (Beijing), China (Shanghai), and Singapore.
  • Before you add an AI template for automated review and smart thumbnail tasks, make sure that automated review and smart thumbnail are enabled.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TemplateNamestringYes

The name of the AI template. The name can be up to 128 bytes in length.

AI-media-test
TemplateTypestringYes

The type of the AI template. Valid values:

  • AIMediaAudit: automated review
  • AIImage: smart thumbnail
AIMediaAudit
TemplateConfigstringYes

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

ParameterTypeDescriptionExample
object

The response parameters.

TemplateIdstring

The ID of the AI template.

1706a0063dd733f6a823ef32e0a5****
RequestIdstring

The request ID.

25818875-5F78-4A13-BEF6-****

Examples

Sample success responses

JSONformat

{
  "TemplateId": "1706a0063dd733f6a823ef32e0a5****",
  "RequestId": "25818875-5F78-4A13-BEF6-****"
}

Error codes

For a list of error codes, visit the Service error codes.