Detects whether an input image meets Emoji model requirements. If detection passes, the model returns face area coordinates (bbox_face) and extended dynamic area coordinates (ext_bbox_face) for video generation.
Model overview
Model | Description |
|---|---|
emoji-detect-v1 | Detects whether an input image meets specifications required for Emoji video generation. The model returns face area (bbox_face) and extended expression area (ext_bbox_face) coordinates for video generation. |
Input image requirements
Example of a compliant image (detection passed)
Image requirements | Compliant example |
|---|---|
| ![]() |
Hand visible near the face | Face is occluded | Exaggerated expression | Excessive head tilt |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
Prerequisites
Obtain an API key and export the API key as an environment variable.
HTTP
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/face-detect
Request parametersRequest headersContent-Typestring (Required)The content type of the request. Must be application/json.Authorization string (Required)Authenticates the request with a Model Studio API key. Example: Bearer sk-xxxx.Request bodymodelstring (Required)Set to emoji-detect-v1.input object (Required)The input image to detect.
Properties image_url string (Required)Public URL of the image (HTTP/HTTPS supported).Limits:
object (Required)Detection parameters.
Properties ratio string (Required)Aspect ratio of detection area. For Emoji video, set to 1:1.Example: 1:1. |
|
Response parametersoutputobjectTask output information.
Properties bbox_face array of integerFace area coordinates in pixels: [x1, y1, x2, y2] (upper-left and lower-right points). Returned only when detection passes.Use for input.face_bbox in Emoji video generation API.Example: [212,194,460,441].ext_bbox_face array of integerExtended expression area coordinates in pixels: [x1, y1, x2, y2] (upper-left and lower-right points). Returned only when detection passes.Use for input.ext_bbox in Emoji video generation API.Example: [63,30,609,575].code stringError code (returned when detection fails). See Error codes for details.message stringError message (returned when detection fails). See Error codes for details.stringUnique request identifier for tracing and troubleshooting.usage objectOutput statistics.
Properties image_count integerNumber of images detected (always 1, used for billing). Successful requests incur charges regardless of detection result; failed requests do not. See Model pricing for billing details.Non-compliant images still incur charges as detection was completed. stringDetailed error message. Returned only for failed requests. See Error codes.request_id stringUnique request identifier for tracing and troubleshooting. |
When detection passes, save bbox_face and ext_bbox_face for use in subsequent Emoji video generation (input.face_bbox and input.ext_bbox parameters). Charges apply (see usage.image_count). |
Billing and rate limiting
- For the free quota and unit price for the model, see Recommended models.
- For rate limits, see Rate limiting.




