Virtual try-on on a person photo
virtual_tryonDress a real person photo in a garment from a product image and get a photorealistic result image. Use only a photo of the user themself or of an adult who agreed to it; never a photo of a minor; no nudity. Costs 1 credit of the API key owner's Tryva plan. Takes about 20-30 seconds: the result is returned directly when ready, otherwise a job_id to pass to get_result. Photos are processed by Tryva's AI partner (fal.ai), are not stored on Tryva's servers and are never used to train AI models; result images are hosted on a fal.media URL. Details: https://tryva.ai/privacy
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_url": "<person_image_url>",
"garment_image_url": "<garment_image_url>"
},
"name": "virtual_tryon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_image_url | Yes | Public https URL of the person photo (JPEG, PNG or WebP, up to 10 MB). Full or half body works best. | |
| garment_image_url | Yes | Public https URL of the garment or product photo (JPEG, PNG or WebP, up to 10 MB). |