Skip to content

AnimateAnyone-AnimateAnyone image detection API reference

Check whether an input image is suitable for AnimateAnyone video generation using the detection API. Important

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

ModelDescription
animate-anyone-detect-gen2Checks whether an input image is suitable for the animate-anyone-gen2 model.

Examples

Passing examples

Full-body shotHalf-body shot
- A single person is visible from head to toe without obstructions. - The person faces the camera without significant turning or tilting.- A single person is visible from the waist up without obstructions. - The person faces the camera without significant turning or tilting.

Failing examples

Side view (Not facing forward)Poor lighting (Person is unclear)Obstructions (Hands covered, holding objects)Complex backgroundMultiple people

HTTP

Prerequisites

  • Activate the service and get an API key.

Request endpoint

HELPCODEESCAPE-http
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/aa-detect

Request parameters

FieldTypeLocationRequiredDescriptionExample
Content-TypeStringHeaderYesRequest format.application/json
AuthorizationStringHeaderYesAPI key with Bearer prefix.Bearer d1**2a
modelStringBodyYesDetection model name.animate-anyone-detect-gen2
input.image_urlStringBodyYesImage URL to check (must be publicly accessible via HTTP/HTTPS)."image_url": "http://a/a.jpg"

Response parameters

FieldTypeDescriptionExample
output.check_passBooleanImage passed detection.true
output.bodystyleStringDetected body style: - half (half-body shot) - full (full-body shot).half
output.reasonStringDetection failure reason (returned only when check_pass is false).The input image has no human body...
usage.image_countIntegerImages checked.1
request_idStringRequest identifier.7574ee8f-38a3-4b1e-9280-11c33ab46e51

Request example

HELPCODEESCAPE-curl
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
HELPCODEESCAPE-json
{
    "output": {
        "bodystyle": "full",
        "check_pass": true
    },
    "usage": {
        "image_count": 1
    },
    "request_id": "76df937d-6eb6-40aa-9ccf-xxxxxx"
}
Image fails detection
HELPCODEESCAPE-json
{
    "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

HELPCODEESCAPE-json
{
    "code": "InvalidApiKey",
    "message": "No API-key provided.",
    "request_id": "7438d53d-6eb8-4596-8835-xxxxxx"
}

What to do next

After detection passes, use the image for AnimateAnyone video generation.

Error codes

For a list of general status codes, see Error codes.

Mirror of Alibaba Cloud Model Studio docs for reference and RAG. Not affiliated with Alibaba Cloud.