跳转到主要内容

Model parameters

These models do not support the following common image generation parameters:
  • size
  • seed
  • quality
  • style_preset
  • response_format
  • output_format
  • mask
  • watermark
  • background
See also the official Kling Image v2 API reference.
kling-image-v2 supports these aspect_ratio values: 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, and 21:9. To supply a Base64-encoded reference image, pass the encoded string directly in image. Do not include a data URL prefix such as data:image/png;base64,.

Text to image

Generate an image from a text description:
The JSON response contains the generated image URL:

Image to image

Single reference image
As above, the JSON response contains the generated image URL:
Multiple reference images
As above, the JSON response contains the generated image URL: