π¦°Hairstyle Try-On API
This API employs precise facial landmarks to accurately and naturally try different hairstyles on an image.
Endpoints
GET /api/generatekey
Response
{
"roboKey": "your-api-key"
}POST /api/hairswap
x-api-key (header): Your API key.file (form-data): The image file. Should be of type png, jpg, jpeg, or heic.hair (form-data): The integer corresponding to the hairstyle.{
"hairstyleImage": "base64-encoded-string"
}
GET /api/hairswap-health
Response
Status Codes
Example Response
Error Codes
Authentication
Request Limit
Acceptable Image Files
Last updated