Try garments on a person
create_tryonGenerate an image of the person wearing the garments. person_url: HTTPS link to a photo of one person (full body or upper body, facing the camera). garment_urls: 1 to 3 HTTPS links to product images of the clothes. Charges credits (1K 8, 2K 12, 4K 20) unless the key is a test key. Waits up to about 50 seconds; if the result is not ready, returns the job_id to pass to get_tryon.
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_url": "<person_url>",
"garment_urls": "<garment_urls>"
},
"name": "create_tryon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Optional extra direction, e.g. 'tuck the shirt in' | |
| person_url | Yes | HTTPS URL of the person photo | |
| output_size | No | Result resolution and cost: 1K 8 credits, 2K 12, 4K 20 | 1K |
| garment_urls | Yes | 1 to 3 HTTPS URLs of garment images |