BETA - This endpoint is currently in beta and may change without notice.
Places a garment onto a person image.
For Best Results:
Limitations:
Input Image Limits:
All API requests require a valid api key. Include your token as a HTTP request header in the following format: X-API-Key: skXXXXXXXXXXXXXXXX. You can obtain an api key by signing up for developer access in your Pixelcut account.
Acceptable response media type(s). application/json.
URL of the person's image.
"https://cdn3.pixelcut.app/virtual-try-on/person.png"
URL of the garment image.
"https://cdn3.pixelcut.app/virtual-try-on/garment.png"
⚠️ DEPRECATED: This parameter is deprecated and will be removed in a future version.
The API now automatically detects garment type without requiring manual specification.
Indicates the garment type for the try-on service. Determines how the garment is applied on the person image.
- auto: Automatically detects if the garment is full-body, upper-body, or lower-body.
- full: Garment covers the full body (e.g., dresses, jumpsuits).
- upper: Garment covers the upper body (e.g., shirts, jackets).
- lower: Garment covers the lower body (e.g., pants, skirts).
auto, full, upper, lower When true, the garment will be preprocessed to remove background. Defaults to true. In some cases results of model will be improved by skipping pre-processing.
true, false When true, the background will be removed from the final result. Defaults to false.
true, false When true, the API will wait for processing to complete and return the result directly. When false, it returns a job ID for polling.
true, false Success - returned when wait_for_result is true and processing completes successfully.
A URL to access the resultant image which is valid for 1 hour. File format will be jpeg.
"https://assets.pixelcut.app/public/result/a16646be-91c8-4e3a-b359.jpg"