Ein virtuelles Kling-Try-on erstellen
Verwenden Sie die CometAPI Kling Virtual Try-On API, um aus einem Personenbild und einem Kleidungsbild ein Try-on-Bild zu erstellen.
Bevor Sie ihn aufrufen
- Stellen Sie ein
human_imageund eincloth_imagebereit - Beginnen Sie mit
kolors-virtual-try-on-v1oderkolors-virtual-try-on-v1-5 - Verwenden Sie für den ersten Test saubere Produktfotos von Kleidung oder Kleidungsbilder mit weißem Hintergrund
Aufgabenablauf
Try-on-Task senden
Task abfragen
Ergebnis speichern
Autorisierungen
Bearer token authentication. Use your CometAPI key.
Header
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.