SubmitAIAgentVideoAuditTask
Submits a video moderation task that uses an AI agent to review video content. This operation supports Object Storage Service (OSS) input, allows you to customize video frame capture policies and moderation rules, and returns moderation results through asynchronous callbacks.
Operation description
You can call the SubmitAIAgentVideoAuditTask operation to submit a moderation task with configurations such as the video URL, frame capture policy, and moderation interval. The system returns a unique JobId for task tracking. After the task is completed, the system pushes the moderation results, including the moderation status and AI evaluation content, to your configured callback URL. Only OSS video URLs are supported. Multimodal large language models (MLLMs) support only the non-streaming OpenAI protocol. For more information about the response of the non-streaming OpenAI protocol, refer to Standard API reference for self-developed models.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitAIAgentVideoAuditTask |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AIAgentId |
string |
Yes |
The ID of the AI agent. |
*******3b3d94abda22****** |
| Input |
object |
Yes |
The input file. |
|
| Type |
string |
No |
The input type. Valid values:
|
OSS |
| Media |
string |
No |
The information about the input file. OSS URLs are supported. The URL format is as follows: http(s)://{BucketName}.{Endpoint}/{ObjectName} Only OSS buckets in the same region as the service are supported. For example, the API service in the China (Shanghai) region supports only OSS buckets in the China (Shanghai) region. |
http://my-bucket.oss-cn-shanghai.aliyuncs.com/object-id.mp4 |
| UserData |
string |
No |
The custom user data. |
{"Custom":"hello"} |
| CallbackConfig |
object |
No |
The callback configuration. |
{"Url":"https://yourcallback","Token":"yourtoken"} |
| Url |
string |
No |
The URL where you want to receive callback notifications. |
https://yourcallback |
| Token |
string |
No |
The authentication token for the callback. |
Bearer Token |
| AuditInterval |
integer |
No |
The moderation interval, in milliseconds. Valid values: 0 to 5000. Default value: 3000. If you set this parameter to 0, all captured frame data specified in CapturePolicies is sent to the large model in the corresponding agent at a time. If you set this parameter to a non-zero value, such as 3000, all captured frame data is sent to the large model in sequence at an interval of 3,000 milliseconds. |
3000 |
| CapturePolicies |
array<object> |
Yes |
The array of moderation policies. Each policy generates a model result. |
|
|
object |
No |
A single moderation policy. |
||
| FrameCount |
integer |
No |
The number of frames to capture. |
2 |
| StartTime |
integer |
No |
The time when frame capture is triggered, in seconds. |
0 |
| Duration |
integer |
No |
The duration of a single frame capture, in seconds. |
10 |
| Prompt |
string |
No |
The text parameter used when you call the multimodal large model. |
Please analyze the scene in the video |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| JobId |
string |
The job ID. |
**********fb04483915d4f2********** |
| RequestId |
string |
The ID of the request. |
**********-586A-AC29-742247****** |
Callback message format.
Metric description
| Parameter | Type | Description | Example |
| JobId | String | The node ID. | bb940f584ccbef* |
| Status | String | The node status. | Success/Fail |
| Results | Array | The array of processing results. | - |
| > | JSON Object | The moderation result structure. | - |
| >> Content | String | The result returned by the MLLM. | These images passed the moderation! |
| UserData | String | The custom user data. | {"businessId": "xxx"} |
| Message | String | The message. | "Success" |
Response example
{
"JobId": "*******bb940f584ccbef********",
"Status": "Success",
"Results": [
{
"Content": "These images passed the moderation!"
}
],
"UserData": "{\"businessId\": \"xxx\"}",
"Message": "Success"
}
Examples
Success response
JSON format
{
"JobId": "**********fb04483915d4f2**********",
"RequestId": "**********-586A-AC29-742247******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.