Overview
This endpoint provides image generation functionality.Authentication
This endpoint requires authentication using a Bearer token.Your API key in the format:
YOUR_API_KEYRequest Body
Model Name
- Enum values:kling-v1, kling-v1-5, kling-v2, kling-v2-new, kling-v2-1
Positive text prompt
- Cannot exceed 2500 characters
Negative text prompt
- Cannot exceed 2500 characters
Reference ImageIncorrect Base64 encoded parameter (includes the data: prefix):Please provide only the Base64-encoded string portion so that the system can correctly process and parse your data.
- Support inputting image Base64 encoding or image URL (ensure accessibility)
- Supported image formats include.jpg / .jpeg / .png
- The image file size cannot exceed 10MB, and the width and height dimensions of the image shall not be less than 300px, and the aspect ratio of the image should be between 1:2.5 ~ 2.5:1
- the image_reference parameter is not empty, the current parameter is required
Image reference type
- Enum values:subject(character feature reference), face(character appearance reference)
- When using face(character appearance reference), the uploaded image must contain only one face.
- When using kling-v1-5 and the image parameter is not empty, the current parameter is required
Face reference intensity for user-uploaded images during generation
- Value range:[0,1],The larger the value, the stronger the reference intensity
Facial reference intensity, refers to the similarity of the facial features of the person in the reference image
- Only image_reference parameter is subject is available
- Value range:[0,1],The larger the value, the stronger the reference intensity
Image generation resolution
- Enum values:1k, 2k
- 1k:1K standard
- 2k:2K high-res
Number of generated images
- Value range:[1,9]
Aspect ratio of the generated images (width:height)
- Enum values:16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9
The callback notification address for the result of this task. If configured, the server will actively notify when the task status changes
- The specific message schema of the notification can be found in “Callback Protocol”

