kling
虛擬試穿
使用 CometAPI Kling 虛擬試穿 API,根據人物圖片與服裝圖片建立逼真的換裝影片,並可控制風格與合身度。
POST
Virtual Try-On
使用此端點可根據一張人物圖片與一張服裝圖片產生虛擬試穿影像。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
呼叫前須知
- 提供一張
human_image和一張cloth_image - 請從
kolors-virtual-try-on-v1或kolors-virtual-try-on-v1-5開始 - 第一次測試時,請使用乾淨的服裝商品圖或白底服裝圖片
任務流程
輪詢任務
持續使用 單筆查詢,直到任務進入終態並回傳渲染完成的影像。
授權
Bearer token authentication. Use your CometAPI key.
主體
application/json
Person image to dress. Accepts an image URL or raw Base64 string (no data: prefix). Formats: JPG, JPEG, PNG. Max 10 MB, minimum 300×300 px.
Clothing image for the try-on. Accepts an image URL or raw Base64 string (no data: prefix). Formats: JPG, JPEG, PNG. Max 10 MB, minimum 300×300 px. Supports tops, bottoms, and one-piece dresses. The v1-5 model also accepts a combined top+bottom image stitched together.
Webhook URL for task status notifications.
Virtual try-on model version.
可用選項:
kolors-virtual-try-on-v1, kolors-virtual-try-on-v1-5