If the results from Try on Clothes Pro don’t fully meet your expectations, you may wish to try the Try on Clothes Refiner to further enhance the output.
https://www.ailabapi.com/api/portrait/editing/try-on-clothes-proPOSTmultipart/form-dataJPG JPEG PNG BMP![]() ![]() |
Non-Front Full-Body Shot (Avoid uploading side views, sitting poses, lying down poses, or half-body photos.) Group Photo Clothing Obstruction (Avoid holding items, bags, etc.) Lighting Too Dark / Blurry |
![]() ![]() ![]() ![]() |
JPG JPEG PNG BMP![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
Multiple Clothing Items Non-Front View Folded Obstruction Clothing Wrinkles |
![]() ![]() ![]() ![]() |
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
task_type | YES | string | async | “async: Asynchronous tasks. | |
person_image | YES | file | Portrait Image. | ||
top_garment | YES | file | Upper Body Clothing Image. | ||
bottom_garment | NO | file | If no lower body clothing image is provided, the lower body clothing effect will be randomly generated., If lower body clothing is not needed (e.g., when the upper body garment is a dress), this value should be left empty. | ||
resolution | NO | integer | -1, 1024, 1280 | -1 | -1`: Original image resolution.`, 1024: 576x1024px., “1280: 720x1280px. |
restore_face | NO | boolean | true, false | true | true`: Keep the model’s original face.`, false: Regenerate the model’s face. |
| Field | Type | Scope | Description |
|---|---|---|---|
task_type | string | async | Task Type. “async: Asynchronous tasks. |
task_id | string | Asynchronous task ID. Please use this field when calling the Querying Async Task Results API. |
Querying Async Task Results Response| Field | Type | Scope | Description |
|---|---|---|---|
task_status | integer | 0, 1, 2 | Asynchronous task status. 0`: The task is queued.` 1: Asynchronous processing. “2: Processing was successful. |
output | object | ||
+image_url | string | Result image URL. | |
usage | object | ||
+image_count | integer | Number of generated images. |
API Key for authentication
Task Type.
async: Asynchronous tasks."async"
Portrait image.
Upper Body Clothing Image.
Output Image Resolution. If you need to call Try on Clothes Refiner in the future, select -1.
-1: Original image resolution.1024: 576x1024px.1280: 720x1280px."-1"
Whether to Keep the Model’s Face. If you need to call Try on Clothes Refiner in the future, select true.
true: Keep the model’s original face.false: Regenerate the model’s face."true"
Lower Body Clothing Image.
Success
The response is of type object.