## File Specs & Errors
* Supported Formats & Dimensions

| AI Feature | Supported Dimensions | File Size | Accepted formats |
|  --- | --- | --- | --- |
| AI Photo Background Removal | Recommendations and limitations for both input and output images are as follows:</br>Resolution: 4096 × 4096 pixels (longest side must not exceed 4096 pixels) | <10MB | JPG and PNG |

* Error Codes

| Error Code | Description |
|  --- | --- |
| exceed_max_filesize | Input file size exceeds the maximum limit |
| invalid_parameter | Invalid parameter value |
| error_download_image | Download source image error |
| error_download_mask | Download mask image error |
| error_decode_image | Decode source image error |
| error_decode_mask | Decode mask image error |
| error_download_video | Download source video error |
| error_decode_video | Decode source video error |
| error_nsfw_content_detected | NSFW content detected in source image |
| error_no_face | No face detected on source image |
| error_pose | Failed to detect pose on source image |
| error_face_parsing | Failed to do face segmentation on source image |
| error_inference | Inference pipeline error |
| exceed_nsfw_retry_limits | Exceed the retry limits to avoid generated NSFW image |
| error_upload | Upload result image error |
| error_multiple_people | Multiple people detected in the source image |
| error_no_shoulder | Shoulders are not visible in the source image |
| error_large_face_angle | The face angle in the uploaded image is too large |
| error_hair_too_short | Input hair is too short |
| error_unexpected_video_duration | Video durateion is not equal to the dstDuration |
| error_bald_image | Input hairstyle is bald |
| error_unsupport_ratio | The aspect ratio of input image is unsupported |
| unknown_internal_error | Others |

