Virtual Try-On

Use these APIs to Upload Human/Garment Photos, and perform Virtual Try-on.

virtual-tryon-image
Virtual Try-on

Upload Image

post

API to send Human/Garment Image for Pre-Processing.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
imagestring · binaryOptional

all image file types are supported

typestringOptional

model or garment

Example: model
genderstringOptional

male or female

Example: male
accessstringOptional

private or public

Example: private
Responses
post
/api/v1/experiment_image/
200

Successful response

Get Status of Uploaded Image

get

API to get status of pre-processing of Human/Garment

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of experiment image

Responses
get
/api/v1/experiment_image/{id}/

Start Virtual Try-on

post

API to start the Try-on using previously uploaded Human and Garment Image IDs

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
person_idstringOptional

Id you get after uploading human image for pre-processing

Example: xxxxxxxxxx
garment_idstringOptional

Id you get after uploading garment image for pre-processing

Example: xxxxxxxxxx
actionstringOptional

name of model to be used, for current use case use virtual_try_on

Example: virtual_try_on
Responses
post
/api/v1/experiment/

No content

Get Status of Virtual Try-on

get

API to get status of Try-on(Takes About 30 Seconds)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of experiment image

Responses
get
/api/v1/experiment/{id}/

No content

Download Image

get

API to Download Images

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

ID of experiment image

tokenstringRequired

Image Token from Human/Garment/Try-on Image

Responses
get
/api/v1/ei/{id}/d?token={token}/

Last updated