Queries the details of the default AI template.
Usage notes
You can query only the default AI template for intelligent review.
QPS limit
You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation. For more information, see QPS limits on API operations in ApsaraVideo VOD.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetDefaultAITemplate |
The operation that you want to perform. Set the value to GetDefaultAITemplate. |
TemplateType | String | Yes | AIMediaAudit |
The type of the AI template. Set the value to AIMediaAudit, which specifies intelligent review. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A017F1DE-3DC3-4441-6755-37E81113**** |
The ID of the request. |
TemplateInfo | Object |
The information about the AI template. |
|
CreationTime | String | 2020-07-08T06:50:45Z |
The time when the AI template was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
IsDefault | String | Default |
Indicates whether the template is the default template. Valid values:
|
TemplateType | String | AIMediaAudit |
The type of the AI template. The value is AIMediaAudit, which indicates intelligent review. |
TemplateConfig | String | {"AuditRange":["text-title","video"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"yes"} |
The detailed configurations of the AI template. The value is a JSON string. |
TemplateName | String | DemoAITemplate |
The name of the AI template. |
Source | String | Custom |
The source of the AI template. Valid values:
|
TemplateId | String | 1706a0063dd733f6a823ef32e0a5**** |
The ID of the AI template. |
ModifyTime | String | 2020-07-08T06:58:45Z |
The time when the AI template was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
Examples
Sample requests
http(s)://vod.cn-shanghai.aliyuncs.com/?Action=GetDefaultAITemplate
&TemplateType=AIMediaAudit
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetDefaultAITemplateResponse>
<RequestId>A017F1DE-3DC3-4441-6755-37E81113****</RequestId>
<TemplateInfo>
<CreationTime>2020-07-08T06:50:45Z</CreationTime>
<IsDefault>Default</IsDefault>
<TemplateType>AIMediaAudit</TemplateType>
<TemplateConfig>{"AuditRange":["text-title","video"],"AuditContent":["screen"],"AuditItem":["terrorism","porn"],"AuditAutoBlock":"yes"}</TemplateConfig>
<TemplateName>DemoAITemplate</TemplateName>
<Source>Custom</Source>
<TemplateId>1706a0063dd733f6a823ef32e0a5****</TemplateId>
<ModifyTime>2020-07-08T06:58:45Z</ModifyTime>
</TemplateInfo>
</GetDefaultAITemplateResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A017F1DE-3DC3-4441-6755-37E81113****",
"TemplateInfo" : {
"CreationTime" : "2020-07-08T06:50:45Z",
"IsDefault" : "Default",
"TemplateType" : "AIMediaAudit",
"TemplateConfig" : "{\"AuditRange\":[\"text-title\",\"video\"],\"AuditContent\":[\"screen\"],\"AuditItem\":[\"terrorism\",\"porn\"],\"AuditAutoBlock\":\"yes\"}",
"TemplateName" : "DemoAITemplate",
"Source" : "Custom",
"TemplateId" : "1706a0063dd733f6a823ef32e0a5****",
"ModifyTime" : "2020-07-08T06:58:45Z"
}
}
Error codes
For a list of error codes, visit the API Error Center.