Skip to main content
POST
/
api
/
portrait
/
editing
/
try-on-clothes
Try on Clothes
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/editing/try-on-clothes \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=async \
  --form 'clothes_type=<string>' \
  --form person_image=@example-file \
  --form clothes_image=@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

Portrait image.

clothes_image
file

Clothing image.

clothes_type
string

Clothing Types. <li>upper_body: Upper body clothing.</li> <li>lower_body: Lower body clothing.</li> <li>full_body: Full body clothing.</li>

Response

200 - application/json

Success

The response is of type object.