Kling V2.1 Multi Image to Image
kling-v2-1-multi-image2image
Kirin V2.1 reference-to-image generation uses multiple reference images for subject, scene, and style control to produce a new image.
API Notes
Section titled “API Notes”kling-v2-1-multi-image2image supports up to 4 subject reference images through subject_image_list, and optionally supports scene_image and style_image
Endpoints
Section titled “Endpoints”POST /v1/queue/kling-v2-1-multi-image2image # Create taskGET /v1/queue/kling-v2-1-multi-image2image/requests/{request_id}/status # Check statusGET /v1/queue/kling-v2-1-multi-image2image/requests/{request_id}/response # Get resultPUT /v1/queue/kling-v2-1-multi-image2image/requests/{request_id}/cancel # Cancel taskRequest parameters
Section titled “Request parameters”curl --request 'POST' 'https://odirouter.ai/model/v1/queue/kling-v2-1-multi-image2image' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --location \ --data-raw '{ "prompt": "A woman in a flowing red dress on the grassland, in Ghibli style.", "subject_image_list": [ { "subject_image": "https://www.gstatic.com/webp/gallery/4.jpg" }, { "subject_image": "https://www.gstatic.com/webp/gallery/1.jpg" } ], "scene_image": "https://www.gstatic.com/webp/gallery/2.jpg", "style_image": "https://www.gstatic.com/webp/gallery/3.jpg", "n": 1, "aspect_ratio": "16:9"}'Positive text prompt.
Must not exceed 2500 characters.
Subject reference image list. Supports 1 to 4 images, each passed as a URL or raw Base64 string through the subject_image key:
"subject_image_list": [
{ "subject_image": "image_url_or_base64" },
{ "subject_image": "image_url_or_base64" }
]
No cropping is applied on the API side - upload images with the subject already prepared as intended
Supports Base64 encoded images or image URLs (must be publicly accessible)
Note: When using Base64, do not add any prefix such as data:image/png;base64, - pass the raw Base64 string directly
Supported formats: .jpg / .jpeg / .png
File size must not exceed 10MB; width and height must be at least 300px; aspect ratio must be between 1:2.5 and 2.5:1
Subject image URL or raw Base64 string
Optional scene reference image.
Supports Base64 encoded image or image URL (must be publicly accessible)
Supported formats: .jpg / .jpeg / .png
File size must not exceed 10MB; width and height must be at least 300px; aspect ratio must be between 1:2.5 and 2.5:1
Optional style reference image.
Supports Base64 encoded image or image URL (must be publicly accessible)
Supported formats: .jpg / .jpeg / .png
File size must not exceed 10MB; width and height must be at least 300px; aspect ratio must be between 1:2.5 and 2.5:1
Number of images to generate.
Default: 1
Range: 1 - 9
Aspect ratio of the generated image (width:height).
Default: 16:9
Options: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9
Whether to generate a watermarked result at the same time. Custom watermarks are not supported.
true: Generate a watermarked result
false: Do not generate a watermarked result
Callback notification address for this task. If configured, the server will actively notify when the task status changes.
Custom task ID.
A user-defined task ID. It does not override the system-generated task ID but can be used to query the task.
Note: It must be unique per user.
Response parameters
Section titled “Response parameters”{ "request_id": "task_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/kling-v2-1-multi-image2image/requests/task_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/kling-v2-1-multi-image2image/requests/task_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/kling-v2-1-multi-image2image/requests/task_01hxyz.../cancel", "queue_position": 0}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for all follow-up operations. |
response_url | string | URL to fetch the final result. |
status_url | string | URL to query task status. |
cancel_url | string | URL to cancel the task. |
queue_position | int | Current queue position. |