여러 이미지로 Kling 이미지 생성하기
CometAPI의 Kling Multi-Image to Image 엔드포인트를 사용해 피사체, 장면, 스타일 이미지 참조를 바탕으로 새 이미지를 생성합니다.
호출 전에 확인할 사항
subject_image_list에 1~4개의 이미지를 제공합니다- 새 요청에는
model_name: kling-v2-1을 사용합니다 - 핵심 피사체 구성이 이미 잘 작동할 때만
scene_image또는style_image를 추가합니다 - 이를 비동기 생성 경로로 보고, 반환된 작업 id를 저장합니다
작업 흐름
이미지 생성 작업 제출
작업 폴링
결과 저장
인증
Bearer token authentication. Use your CometAPI key.
헤더
Must be application/json.
본문
Subject reference images. Minimum 1, maximum 4.
1 - 4 elementsModel to use for multi-image generation. Use kling-v2-1 for new requests; omitting the field uses the legacy route default.
kling-v2, kling-v2-1 Text prompt describing the desired output. Maximum 2500 characters.
Elements to exclude from the image. Maximum 2500 characters.
Optional scene reference image. 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.
Optional style reference image. 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.
Number of images to generate. Range: 1-9.
1 <= x <= 9Aspect ratio of the generated image.
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 Watermark options.
Webhook URL for task status notifications.
Optional user-defined task ID for your own tracking. Must be unique per account.