AILabTools API - Hairstyle Changer Pro - API:V2.0.1
Photo Validation Guide
To ensure user-uploaded photos meet the Hairstyle Processing API requirements, we recommend splitting the workflow into two stages: Face Analysis and Hairstyle Processing. This approach minimizes error wait times by validating images on the frontend, ensuring they meet API standards before proceeding to hairstyle processing. This enhances overall user experience.
For detailed information, refer to the Photo Validation Guide.
Request
- URL:
https://www.ailabapi.com/api/portrait/effects/hairstyle-editor-pro - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
PNGJPGJPEG - Image size: No more than 5 MB.
- Image resolution: Larger than 200x200px, smaller than 4096x4096px.
- Minimum Face Proportion: To ensure effectiveness, the proportion of the face in the image cannot be less than 10%.
- Facial Integrity: To ensure effectiveness, the face in the image should ideally not be obscured.
- Facial Angle: To ensure effectiveness, the face in the image should ideally be front-facing, with no more than a 30-degree rotation to the left or right.
| Image Validity | Reason for Invalidity | |
|---|---|---|
| ✅ | ![]() ![]() ![]() ![]() | |
| ❌ | ![]() ![]() | No face |
![]() ![]() | Incomplete face | |
![]() ![]() | Face obscured | |
![]() ![]() | Face proportion too small | |
![]() ![]() | The face is too large to edit the hairstyle |













