Use the Kling Video Effects API via CometAPI to apply stylized effects to videos with POST /kling/v1/videos/effects and control effect parameters.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/effects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"effect_scene": "hug",
"input": {
"model_name": "kling-v1-6",
"mode": "std",
"images": [
"https://p2-kling.klingai.com/bs2/upload-ylab-stunt/c54e463c95816d959602f1f2541c62b2.png?x-kcdn-pid=112452",
"https://p2-kling.klingai.com/bs2/upload-ylab-stunt/5eef15e03a70e1fa80732808a2f50f3f.png?x-kcdn-pid=112452"
],
"duration": "10"
}
}
'{
"code": 0,
"message": "success",
"data": {
"task_id": "2032273960331935744",
"task_status": "submitted",
"task_info": {},
"created_at": 1773366844624,
"updated_at": 1773366844624
}
}hug and kiss are two-person interaction presetsfuzzyfuzzy, squish, expansion, and heart_gesture are stylized preset effectsinputSubmit the effect request
effect_scene plus the matching input object and store the returned task id.Poll the task
hug request was accepted without callback_url or external_task_id and returned task_status: submitted.Bearer token authentication. Use your CometAPI key.
Preset effect to apply. Each effect defines a specific animation or interaction style.
fuzzyfuzzy, squish, expansion, hug, kiss, heart_gesture Effect-specific input payload. Most interaction effects use one or more image URLs plus model settings.
Show child attributes
Webhook URL for task status notifications. The server sends a callback when the task status changes.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/effects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"effect_scene": "hug",
"input": {
"model_name": "kling-v1-6",
"mode": "std",
"images": [
"https://p2-kling.klingai.com/bs2/upload-ylab-stunt/c54e463c95816d959602f1f2541c62b2.png?x-kcdn-pid=112452",
"https://p2-kling.klingai.com/bs2/upload-ylab-stunt/5eef15e03a70e1fa80732808a2f50f3f.png?x-kcdn-pid=112452"
],
"duration": "10"
}
}
'{
"code": 0,
"message": "success",
"data": {
"task_id": "2032273960331935744",
"task_status": "submitted",
"task_info": {},
"created_at": 1773366844624,
"updated_at": 1773366844624
}
}