Skip to main content
POST
/
api
/
portrait
/
enhance
/
try-on-clothes-refiner
Try on Clothes Refiner
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/enhance/try-on-clothes-refiner \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=async \
  --form gender=man \
  --form person_image=@example-file \
  --form top_garment=@example-file \
  --form coarse_image=@example-file \
  --form bottom_garment=@example-file
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "",
  "task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type. <li>async: Asynchronous tasks.</li>

Example:

"async"

person_image
file

Model image for calling the Try on Clothes API.

top_garment
file

Top clothing image for calling the Try on Clothes API.

coarse_image
file

Result image obtained from calling the Try on Clothes API.

gender
string

Gender of the person_image. <li>woman: Female.</li> <li>man: Male.</li>

Example:

"man"

bottom_garment
file

Bottom clothing image for calling the Try on Clothes API.

Response

200 - application/json

Success

The response is of type object.