Kling API v1 new endpoints for Motion Control:
- GET videos/motions to retrieve available motion templates (official Kling motions and user-uploaded custom motions)
- POST videos/motion-upload to upload custom videos (2-10 seconds) for motion extraction
- POST videos/motion-create to apply motion templates to static images, creating animated videos with character motion control
- Supports multi-character detection and selection
- Optional audio generation with sound effects, music, and ASMR
- DELETE tasks/
task_id
to delete tasks and associated works
Examples
- Create Video using one of standard Kling motions POST videos/motion-create
Motion:
Circle Glide
Targeting first character from the left (character_id=0
)
curl --location 'https://api.useapi.net/v1/kling/videos/motion-create' \
--header 'Authorization: Bearer user:12345-…' \
--form 'workId="-100000000000004"' \
--form 'image="https://s15-kling.klingai.com/…"' \
--form 'character_id="0"' \
--form 'mode="std"' \
--form 'duration="5"'
Result
Motion:
Circle Glide
Targeting second character from the left (character_id=1
)
curl --location 'https://api.useapi.net/v1/kling/videos/motion-create' \
--header 'Authorization: Bearer user:12345-…' \
--form 'workId="-100000000000004"' \
--form 'image="https://s15-kling.klingai.com/…"' \
--form 'character_id="1"' \
--form 'mode="std"' \
--form 'duration="5"'
Result
- Create user-defined motion POST videos/motion-upload
Video
curl --location 'https://api.useapi.net/v1-dev/kling/videos/motion-upload' \
--header 'Authorization: Bearer user:12345-…' \
--form 'resourceUrl="https://v15-kling.klingai.com/…"' \
--form 'coverUrl="https://s15-kling.klingai.com/…"'
Result
- Create Video using one of user-defined motions (see above) POST videos/motion-create
curl --location 'https://api.useapi.net/v1/kling/videos/motion-create' \
--header 'Authorization: Bearer user:12345-…' \
--form 'workId="123456789"' \
--form 'image="https://s15-kling.klingai.com/…"' \
--form 'prompt="dancing and having fun"' \
--form 'sound_effect="true"' \
--form 'music_prompt="Gundam Style music blasting"' \
--form 'enable_asmr="true"' \
--form 'character_id="1"' \
--form 'mode="pro"' \
--form 'duration="10"'
Result