Skip to main content

Model parameters

The following common Image API parameters are not supported:
  • seed
  • quality
  • style_preset
  • response_format
  • output_format
  • mask
  • background
See also: Official Kling Image v3 API documentation.
Supported values for aspect_ratio:
  • 1:1
  • 16:9
  • 4:3
  • 3:2
  • 2:3
  • 3:4
  • 9:16
  • 21:9
Use size instead of the official resolution to set the image resolution. Supported values for size:
  • 1k (default)
  • 2k
Use watermark instead of the official watermark_info to control whether the generated output has a watermark. watermark accepts true or false and defaults to false.

Text-to-image generation

Generate an image from a text description:
The response is a JSON object containing the generated image URL:
To generate multiple images, set n to the number you want, up to 9.

Image-to-image generation

Single image
The response is a JSON object containing the generated image URL:
Image requirements:
  • Supply a Base64-encoded image or a publicly accessible image URL. For the mainland China version, the URL must be accessible from mainland China; otherwise, use Base64.
  • Supported formats: .jpg, .jpeg, and .png.
  • Each file must be no larger than 10 MB. Both dimensions must be at least 300 px, and the aspect ratio must be between 1:2.5 and 2.5:1.
  • At most 1 reference image.