The image detection model of AnimateAnyone checks whether an input image is suitable for its video generation. This topic describes how to call the image detection API.
This topic applies only to the China (Beijing) region. To use models, you must use an API key from the China (Beijing) region.
Model overview
Model | Description |
animate-anyone-detect-gen2 | Checks whether an input image is suitable for the animate-anyone-gen2 model. |
Examples
Passing examples
Full-body shot | Half-body shot |
|
|
Failing examples
Side view | Poor lighting | Obstructions | Complex background | Multiple people |
|
|
|
|
|
HTTP
Prerequisites
Activate the service and get an API key.
Request endpoint
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/aa-detectRequest parameters
Field | Type | Location | Required | Description | Example |
Content-Type | String | Header | Yes | Request body format. |
|
Authorization | String | Header | Yes | Your API key with the |
|
model | String | Body | Yes | The model to use. |
|
input.image_url | String | Body | Yes | URL of the image to check. The URL must be publicly accessible over HTTP or HTTPS. |
|
Response parameters
Field | Type | Description | Example |
output.check_pass | Boolean | Whether the image passed the check. |
|
output.bodystyle | String | Detected body style. Valid values:
|
|
output.reason | String | Reason for detection failure. Returned only when |
|
usage.image_count | Integer | Number of images checked. |
|
request_id | String | Unique request identifier. |
|
Request example
curl --location --request POST 'https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/aa-detect' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "animate-anyone-detect-gen2",
"input": {
"image_url":"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20251224/pkswoc/p883941.png"
}
}'Successful response examples
Image passes detection
{
"output": {
"bodystyle": "full",
"check_pass": true
},
"usage": {
"image_count": 1
},
"request_id": "76df937d-6eb6-40aa-9ccf-xxxxxx"
}Image fails detection
{
"output":{
"check_pass": false,
"reason": "The input image has no human body. Upload another image that contains a single person.",
"bodystyle": ""
},
"usage":{
"image_count": 1
},
"request_id": "c56f62df-724e-9c19-96bd-xxxxxx"
}Failed request example
{
"code": "InvalidApiKey",
"message": "No API-key provided.",
"request_id": "7438d53d-6eb8-4596-8835-xxxxxx"
}What to do next
Use the image for AnimateAnyone video generation.
Error codes
For a list of general status codes, see Error codes.






