Virtual Try-On API
nexscope_virtual_try_onGenerate wearable-product imagery from a source person image and target product image.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"imageUrl": "<imageUrl>",
"targetOriginUrl": "<targetOriginUrl>",
"targetMaskUrl": "<targetMaskUrl>"
},
"name": "nexscope_virtual_try_on"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | Yes | Public URL of the wearable product image. The image must be between 300 and 4096 pixels in both width and height. The width-to-height ratio must be between 0.4 and 2.5. | |
| outputNum | No | Number of images to generate, from 1 to 4. Defaults to 1. | |
| targetMaskUrl | Yes | Public URL of the black-and-white target wear-area mask. Required because this API accepts custom target images rather than saved upstream materials. | |
| productCategory | No | Product category. Supported values: footwear (shoes), luggage (bags), eyewear (glasses), necklace, hat, earring, ring, wristband, watch, headwear, belt, other. | |
| targetOriginUrl | Yes | Public URL of the person or model image. |