Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
tops | bottoms | one-pieces
Allows long garments to cover the feet/shoes or change their appearance.
Allow to change the appearance of the model’s hands. Example use-cases: Remove gloves, get hands out of pockets, long sleeves that should cover hands.
restore_background
boolean
optionalApply additional steps to preserve the original background. Runtime will be slower. Not needed for simple backgrounds.
Apply additional steps to preserve the appearance of clothes that weren’t swapped (e.g. keep pants if trying-on top).
Adjusts internal parameters for better performance on long tops such as: Longline shirts, tunics, coats, etc.
{
"model_image": "",
"garment_image": "",
"category": "tops",
"nsfw_filter": true,
"garment_photo_type": "auto",
"cover_feet": true,
"adjust_hands": true,
"restore_background": true,
"restore_clothes": true,
"long_top": true,
"guidance_scale": 2,
"timesteps": 50,
"seed": 8764440
}
Request samples
curl --location --request POST 'https://api.302.ai/302/submit/fashn-tryon' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_image": "",
"garment_image": "",
"category": "tops",
"nsfw_filter": true,
"garment_photo_type": "auto",
"cover_feet": true,
"adjust_hands": true,
"restore_background": true,
"restore_clothes": true,
"long_top": true,
"guidance_scale": 2,
"timesteps": 50,
"seed": 8764440
}'
Responses
application/json {
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
Modified at 2025-02-25 02:27:16