複数画像から画像へ
CometAPI の Kling Multi-Image to Image エンドポイントを使用すると、シンプルな POST リクエストと柔軟な Content-Type で、複数の入力から新しい画像を生成できます。
複数の被写体参照画像に、任意でシーンまたはスタイル参照を加えて、Kling に1枚の画像を生成させたい場合は、このエンドポイントを使用します。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.
呼び出す前に
subject_image_listに 2〜4 枚の画像を指定しますmodel_name: kling-v2を使用しますscence_imageまたはstyle_imageは、コアとなる被写体構成がすでにうまく機能している場合にのみ追加します- これは非同期の生成ルートとして扱い、返された task id を保存します
タスクフロー
タスクをポーリング
承認
Bearer token authentication. Use your CometAPI key.
ヘッダー
Content type of the request body.
ボディ
Kling Image Generation API request body definition
List of subject reference images. Minimum 2, maximum 4.
Model to use for multi-image generation.
kling-v2 Text prompt describing the desired output. Max 2500 characters.
Optional scene reference image. Same format and size constraints as subject images.
Optional style reference image. Same format and size constraints as subject images.
Number of images to generate.
Aspect ratio of the generated image (width:height).
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 Webhook URL for task status notifications. The server sends a callback when the task status changes.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.