API Reference

Create virtual try-on task

Create an asynchronous virtual try-on task. Upload a model (person) image and one or two clothing images to generate the try-on result.

This API supports either:

  1. One clothing item of type upper, lower, or full
  2. Two clothing items simultaneously (upper and lower)

Choose normal for fast results, hd for enhanced garment detail, or ultra for the highest-quality refined result. Higher-quality modes take longer to process.

Poll the GET endpoint with the returned task_id to retrieve results.

Model:virtual-tryon-clothes
Credit:23 (Normal), 45 (HD), 114 (Ultra)
post/v1/images/try-on

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

NameTypeStatusDescription
model_image
fileRequiredModel/person image file or URL.
cloth_image
fileRequiredClothing image file or URL.
lower_cloth_image
fileOptionalLower clothing image file or URL.
cloth_type
stringRequiredClothing type.
mode
stringOptionalOutput quality mode. Use normal for speed, hd for enhanced detail, or ultra for the highest-quality refined result.
normalhdultra
(default: normal)

Responses

Try-on task created successfullyTaskCreatedResponse

FieldTypeDescription
task_idstringUnique task identifier. Poll the matching task-status endpoint for results.
statusstring
created_atintegerUnix timestamp of task creation
curl -X POST "https://api.snapedit.app/v1/images/try-on" \
  -H "api-key: YOUR_API_KEY" \
  -F "model_image=@./image.jpg" \
  -F "cloth_image=@./image.jpg" \
  -F "lower_cloth_image=@./image.jpg" \
  -F "cloth_type=value" \
  -F "mode=normal"
Response
{
  "task_id": "task_abc123",
  "status": "CREATED",
  "created_at": 1745827200
}

Examples (3 examples)

Input

Input 1Input 2

Output

Output