Multi-Image a Image
Usa el endpoint Kling Multi-Image to Image de CometAPI para generar nuevas imágenes a partir de múltiples entradas, con solicitudes POST simples y un Content-Type flexible.
Usa este endpoint cuando quieras que Kling genere una imagen a partir de múltiples referencias de sujeto más referencias opcionales de escena o estilo.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.
Antes de llamarlo
- Proporciona de 2 a 4 imágenes en
subject_image_list - Usa
model_name: kling-v2 - Agrega
scence_imageostyle_imagesolo cuando la composición principal del sujeto ya funcione - Trata esto como una ruta de generación asíncrona y guarda el id de tarea devuelto
Flujo de la tarea
Enviar la tarea de generación de imágenes
Consultar la tarea
Autorizaciones
Bearer token authentication. Use your CometAPI key.
Encabezados
Content type of the request body.
Cuerpo
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.