Багатозображення в зображення
Використовуйте ендпоінт CometAPI Kling Multi-Image to Image, щоб генерувати нові зображення з кількох вхідних даних за допомогою простих POST-запитів і гнучкого Content-Type.
Використовуйте цей ендпоінт, коли хочете, щоб 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.