Use this operation to submit a smart tag or video DNA job.
Operation description
Before using this operation, ensure you understand the billing methods and pricing for ApsaraVideo VOD. Both smart tag and video DNA are paid features. For more information, see Video AI Billing.
The video DNA feature is available in the following regions: China (Beijing), China (Shanghai), and Singapore. The smart tag feature is available in China (Beijing) and China (Shanghai).
This is an asynchronous call. When you submit an AI job, the system returns a job ID and queues the job for background processing. To get the final results, we recommend you configure an event notification for the VideoAIComplete event. Alternatively, you can call the Get Job Details operation to query the job status.
To submit an AI job, you must first activate the video DNA or smart tag feature.
The first time you use the video DNA feature, you must submit a ticket with your account UID and desired region to create a free DNA fingerprint library. Otherwise, the feature may not function correctly. For instructions on submitting a ticket, see Contact us.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:SubmitAIJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
No |
The ID of the video. You can find the video ID in one of the following ways:
|
3D3D12340d9401fab46a0b847**** |
| Types |
string |
No |
The type of the AI job. Separate multiple job types with a comma (,). Valid values:
|
AIVideoTag |
| Config |
string |
No |
The AI job configurations, as a JSON-formatted string.
|
{"AIVideoTag": {"AnalyseTypes": "ASR"} } |
| UserData |
string |
No |
Custom settings as a JSON-formatted string. For more information about the parameter structure, see UserData. |
{"Extend":{"localId":"***","test":"www"}} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4A13-BEF6-D73936**** |
| AIJobList |
object |
A list of AI jobs. |
|
| AIJob |
array<object> |
A list of AI jobs. |
|
|
object |
The details of an AI job. |
||
| Type |
string |
The type of the AI job. Valid values:
|
AIVideoTag |
| JobId |
string |
The ID of the AI job. |
9e82640c85114bf5af23edfaf**** |
| MediaId |
string |
The ID of the video. |
3D3D12340d92c641401fab46a0b847**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D73936****",
"AIJobList": {
"AIJob": [
{
"Type": "AIVideoTag",
"JobId": "9e82640c85114bf5af23edfaf****",
"MediaId": "3D3D12340d92c641401fab46a0b847****"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.