Create a Kling virtual try-on
Use CometAPI Kling Virtual Try-On API to create a try-on image from a person image and clothing image.
Before you call it
- Provide one
human_imageand onecloth_image - Start with
kolors-virtual-try-on-v1orkolors-virtual-try-on-v1-5 - Use clean clothing product shots or white-background garment images for the first test
Task flow
Poll the task
Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
Must be application/json.
Body
Person image to dress. Image URL or raw Base64 string without a data: prefix. Supported formats: JPG, JPEG, PNG. Maximum 10 MB, minimum 300x300 px, aspect ratio between 1:2.5 and 2.5:1.
Clothing image for the try-on. Image URL or raw Base64 string without a data: prefix. Supported formats: JPG, JPEG, PNG. Maximum 10 MB, minimum 300x300 px, aspect ratio between 1:2.5 and 2.5:1. Supports tops, bottoms, and one-piece dresses.
Virtual try-on model version. Defaults to kolors-virtual-try-on-v1.
kolors-virtual-try-on-v1, kolors-virtual-try-on-v1-5 Webhook URL for task status notifications.
Optional user-defined task ID for your own tracking. Must be unique per account.