try_on_clothes
Render a person wearing a selected garment by combining a forward-facing person image with a product or worn garment image and specifying the garment category.
Instructions
Render a person wearing a garment (YouCam AI Clothes, cloth-v4). Costs 2 units on success. person_image: one person, facing forward, shoulders visible. garment_image: a front product shot of one garment, or a photo of someone wearing it.
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": {
"person_image": "<person_image>",
"garment_image": "<garment_image>",
"garment_category": "<garment_category>"
},
"name": "try_on_clothes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_image | Yes | An https:// image URL on this server's allowlist, or an image_ref (img_...) returned by an earlier call in this session. JPEG or PNG. | |
| wait_seconds | No | Seconds to wait for the result before returning a task_ref to poll. Default 60. | |
| garment_image | Yes | An https:// image URL on this server's allowlist, or an image_ref (img_...) returned by an earlier call in this session. JPEG or PNG. | |
| garment_category | Yes |