Kling のバーチャル試着を作成する
CometAPI Kling Virtual Try-On API を使用して、人物画像と衣服画像から試着画像を作成します。
呼び出す前に
human_imageを 1 つとcloth_imageを 1 つ指定しますkolors-virtual-try-on-v1またはkolors-virtual-try-on-v1-5から始めます- 最初のテストでは、きれいな衣服の商品画像または白背景の衣服画像を使用します
タスクの流れ
試着タスクを送信する
タスクをポーリングする
結果を永続化する
承認
Bearer token authentication. Use your CometAPI key.
ヘッダー
Must be application/json.
ボディ
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.