Code | Description |
---|---|
200 | Success - Request completed successfully |
400 | Bad Request - Invalid parameters or missing data |
401 | Unauthorized - Invalid or missing API key |
model-image
refers to the source image of the individual on whom the virtual try-on will be applied. This image can be submitted either as a publicly accessible URL or a base64-encoded string.
garment-image
is the visual representation of the clothing item intended for virtual try-on with the model-image
. You can provide this input either as a direct image URL or as a base64-encoded string.
category
identifies the type of garment present in the garment-image
. This guides the virtual try-on engine in selecting the appropriate region to apply the clothing. For images with multiple items (e.g., top and bottom), use this to prioritize the desired garment.
Default: auto
— automatically infers the garment type.
Value | Description |
---|---|
auto | Automatically determines the garment category |
tops | Shirts, blouses, t-shirts |
bottoms | Pants, jeans, skirts |
one-pieces | Dresses, jumpsuits |
mode
determines the balance between processing speed and output quality.
Mode | Description |
---|---|
performance | Optimized for speed; fastest response time (~2-3s) |
balanced | A compromise between speed and quality (~3-5s) |
quality | Prioritizes high-quality results; takes longer to process (~5-8s) |
moderation_level
controls how strictly the API filters garment images for content sensitivity. The default is permissive
.
conservative
: Filters out revealing garments. Recommended for modesty-sensitive use cases.permissive
: Allows most garments including swimwear and underwear, while rejecting explicit nudity.none
: Disables all content filtering. Use with caution.segmentation_free
controls whether the system skips explicit garment segmentation.
true
: Enables direct garment fitting without isolating clothing.false
: Enforces clothing segmentation. Use if artifacts from the original garments interfere with results.output_format
defines the desired image format for the generated try-on result.
png
: High-quality output with no compression loss.jpeg
: Faster response with mild compression. Better for real-time use.