Gebruik de Kling Video Effects API via CometAPI om gestileerde effecten op video’s toe te passen met POST /kling/v1/videos/effects en effectparameters te beheren.
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
}
}Gebruik dit endpoint om een van de vooraf ingestelde effectscènes van Kling toe te passen en de invoerassets om te zetten in een nieuwe korte video.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
hug en kiss zijn presets voor interacties tussen twee personenfuzzyfuzzy, squish, expansion en heart_gesture zijn gestileerde vooraf ingestelde effecteninputDien de effectaanvraag in
effect_scene plus het bijpassende input-object en sla de geretourneerde task id op.Poll de taak
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
}
}