Kling API v1 has been updated to support v2.1:
- Added support for model
kling-v2-1-master
to POST videos/text2video. - Added support for models
kling-v2-1
,kling-v2-1-master
to POST videos/image2video-frames.kling-v2-1
is now the default model.
Example
- Create Video From Text POST videos/text2video
curl --location 'https://api.useapi.net/v1/kling/videos/text2video' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="Donald Trump and Robert F. Kennedy Jr., dressed formally, are sitting at a desk in the Oval Office. They grab two Tylenol bottles and start bashing them against the table. Both appear to be mad, with pronounced facial expressions."' \
--form 'aspect_ratio="16:9"' \
--form 'model_name="kling-v2-5"' \
--form 'duration="10"' \
--form 'enable_audio="true"'
Result
- Create Video From Image Frames POST videos/image2video-frames
curl --location 'https://api.useapi.net/v1/kling/videos/image2video-frames' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="The cat jumps on the dog'\''s back. Both are excited and happy to see each other. The cat jumps while standing on the dog'\''s back."' \
--form 'image="https://s15-kling.klingai.com/…"' \
--form 'model_name="kling-v2-5"' \
--form 'duration="10"' \
--form 'enable_audio="true"'
Result