Try on Clothes Pro
Try-on Clothes Pro
Try on Clothes Pro API
Try on Clothes Pro API creates realistic virtual try-on images from flat clothing and full-body portraits for fashion previews.
POST
Try on Clothes Pro
Request
- URL:
https://www.ailabapi.com/api/portrait/editing/try-on-clothes-pro - Method:
POST - Content-Type:
multipart/form-data
Image requirements
Portrait
- Image format:
JPGJPEGPNGBMP - Image size: No more than 5 MB.
- Image resolution: Larger than 150x150px, smaller than 4096x4096px.
- Pose requirements: full-body front view with hands fully visible. Arm positioning should avoid wide openings, crossing, or other exaggerated gestures.
Correct Example
![]() ![]() |
Incorrect Example
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 |
![]() ![]() ![]() ![]() |
Clothing
- Image format:
JPGJPEGPNGBMP - Image size: No more than 5 MB.
- Image resolution: Larger than 150x150px, smaller than 4096x4096px.
- Pose requirements: full-body front view with hands fully visible. Arm positioning should avoid wide openings, crossing, or other exaggerated gestures.
- Clothing Category: Minimal Patterns & Prints. Examples include jeans, polo shirts, yoga wear, dresses, suits, T-shirts, etc.
- Upload a clear, well-aligned flat-lay image of the clothing.
- Background should be simple, clean, and well-lit.
- Only a single item of clothing should be displayed in the image.
- No layering with other clothing items.
- The clothing item should occupy as much of the image frame as possible.
Correct Example
![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() |
Incorrect Example
Multiple Clothing Items Non-Front View Folded Obstruction Clothing Wrinkles |
![]() ![]() ![]() ![]() |
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| 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. |
Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| 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. |
Response Example
Querying Async Task Results Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| 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. |
Response Example
Authorizations
API Key for authentication
Body
multipart/form-data
Task Type.
async: Asynchronous tasks.Example:
"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.Example:
"-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.Example:
"true"
Lower Body Clothing Image.
Response
200 - application/json
Success
The response is of type object.



















