v1

latestOpenAPI 3.1.02026-07-26793302.3 KB

Multi-Image to Image

post/kling/v1/images/generations

Headers

Content-Typestring

Content type of the request body.

Request body

model_name'kling-v2'

Model to use for multi-image generation.

promptstring

Text prompt describing the desired output. Max 2500 characters.

scence_imagestring

Optional scene reference image. Same format and size constraints as subject images.

style_imagestring

Optional style reference image. Same format and size constraints as subject images.

ninteger

Number of images to generate.

aspect_ratio'16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '3:2' | '2:3' | '21:9'

Aspect ratio of the generated image (width:height).

callback_urlstring

Webhook URL for task status notifications. The server sends a callback when the task status changes.

external_task_idstring

Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.

Response

Successful Response

codeinteger

Error code; specifically define the error code

messagestring

error message

request_idstring

Request ID, system-generated, for tracking requests, troubleshooting issues