Créer un essayage virtuel Kling
Utilisez l’API Kling Virtual Try-On de CometAPI pour créer une image d’essayage à partir d’une image de personne et d’une image de vêtement.
Avant de l’appeler
- Fournissez une
human_imageet unecloth_image - Commencez avec
kolors-virtual-try-on-v1oukolors-virtual-try-on-v1-5 - Utilisez des photos produit de vêtements nettes ou des images de vêtements sur fond blanc pour le premier test
Flux de tâche
Soumettre la tâche d’essayage
Interroger la tâche
Conserver le résultat
Autorisations
Bearer token authentication. Use your CometAPI key.
En-têtes
Must be application/json.
Corps
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.