Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Model Name
kling-v2-1-master Reference Image. Support inputting image Base64 encoding
Important: When using Base64 encoding, do not add any prefixes such as data:image/png;base64,. Provide only the Base64-encoded string itself.
- Supported image formats: .jpg, .jpeg, .png
- Image file size cannot exceed 10MB
- Width and height dimensions must not be less than 300px
- Aspect ratio should be between 1:2.5 ~ 2.5:1
- At least one parameter should be filled in between
imageandimage_tail image+image_tail,dynamic_masks/static_mask, andcamera_controlcannot be used at the same time
Reference Image - End frame control. Support inputting image Base64 encoding
Notice: This parameter is not supported by Kling v2.1 models.
Important: When using Base64 encoding, do not add any prefixes such as data:image/png;base64,. Provide only the Base64-encoded string itself.
- Supported image formats: .jpg, .jpeg, .png
- Image file size cannot exceed 10MB
- Width and height dimensions must not be less than 300px
- At least one parameter should be filled in between
imageandimage_tail image+image_tail,dynamic_masks/static_mask, andcamera_controlcannot be used at the same time
Positive text prompt. Cannot exceed 2500 characters.
2500Negative text prompt. Cannot exceed 2500 characters.
2500Flexibility in video generation. Higher value means lower flexibility and stronger relevance to the prompt. Range [0, 1].
0 <= x <= 1Video generation mode
std: Standard Mode, which is cost-effective.
pro: Professional Mode, generates videos use longer duration but higher quality video output.
std, pro Static Brush Application Area (Mask image created by users using the motion brush).
The "Motion Brush" feature includes two types of brushes: Dynamic Brush (dynamic_masks) and Static Brush (static_mask).
- Support inputting image Base64 encoding
- Supported image formats: .jpg, .jpeg, .png
- The aspect ratio of the mask image must match the input image; otherwise, the task will fail
- The resolutions of the static_mask image and the dynamic_masks.mask image must be identical
Dynamic Brush Configuration List. Multiple configurations can be set up (up to 6 groups). Each group includes a "mask area" (mask) and a sequence of "motion trajectories" (trajectories).
6Terms of controlling camera movement. If not specified, the model will intelligently match based on the input text/images.
Video Length in seconds
5, 10 Response
Message object.