Virtual Try-On Query API Reference
Virtual Try-On Query API
POST
/ai/virtual/tryon-results
Retrieve the results of virtual try-on sessions.
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
task_id | String | Yes | The task Id obtained in /ai/virtual/tryon |
Sample Request
Response Parameters
Parameter | Type | Description | |||||
---|---|---|---|---|---|---|---|
rescode | Number | The returned result code, where 200 indicates success. For detailed error codes, please refer to the error code list | |||||
data | Object | task result of the virtual try on | |||||
taskResult | List (Object) | List of all sub task result | |||||
taskResult | Object | detail sub task result | |||||
result | Object | task result content | |||||
imageList | List (Object) | A list of generated model try-on photos. Currently, 8 images are generated for each garment. | |||||
imageUrl | String | URL of the try-on results. The image resolution is preset based on the clothing type. The height of the image is fixed, while the width is adjusted according to the aspect ratio of the model image. "tops & outwears": 1024x768 (4:3), 1024x682 (3:2) "dresses": 768x576 (4:3), 768x512 (3:2) | |||||
clothes | String | URL of the clothes used for the virtual try-on. | |||||
taskStatus | String | the status of the sub-task, including finished, submitted, failed, running | |||||
taskStatus | String | the status of the task, including finished, submitted, failed, running | |||||
taskId | String | the taskId of the query task | |||||
requestId | String | A unique request ID used for troubleshooting | |||||
success | Boolean | The status of the returned request, indicating whether the request was successful | |||||
resMessage | String | result message, usually success, otherwise will contain some failure reason description |
Sample Response
Last updated