Multi-Image в Image
Используйте endpoint Kling Multi-Image в Image от CometAPI, чтобы генерировать новые изображения из нескольких входных изображений с помощью простых POST-запросов и гибкого Content-Type.
Используйте этот endpoint, когда хотите, чтобы Kling сгенерировал одно изображение на основе нескольких референсов объекта и, при необходимости, дополнительных референсов сцены или стиля.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.
Перед вызовом
- Укажите от 2 до 4 изображений в
subject_image_list - Используйте
model_name: kling-v2 - Добавляйте
scence_imageилиstyle_imageтолько тогда, когда базовая композиция объекта уже работает - Рассматривайте это как асинхронный маршрут генерации и сохраните возвращённый 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.