Multi-Image para imagem
Use o endpoint Kling Multi-Image para imagem da CometAPI para gerar novas imagens a partir de múltiplas entradas, com solicitações POST simples e Content-Type flexível.
Use este endpoint quando quiser que o Kling gere uma imagem a partir de múltiplas referências de assunto, além de referências opcionais de cena ou 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 chamá-lo
- Forneça de 2 a 4 imagens em
subject_image_list - Use
model_name: kling-v2 - Adicione
scence_imageoustyle_imageapenas quando a composição principal do assunto já estiver funcionando - Trate isso como uma rota de geração assíncrona e salve o id da tarefa retornado
Fluxo da tarefa
Enviar a tarefa de geração de imagem
Consultar a tarefa
Autorizações
Bearer token authentication. Use your CometAPI key.
Cabeçalhos
Content type of the request body.
Corpo
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.