API reference
cURL
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 person_image='@example-file' \ --form clothes_image='@example-file' \ --form 'clothes_type=<string>'
{ "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": "" }
API Key for authentication
Task Type.
async
"async"
Portrait image.
Clothing image.
Clothing Types.
upper_body
lower_body
full_body
Success
The response is of type object.
object