kling
effects
public
means this task will be processed under PAYG mode.private
means this task will be processed under HYA mode.{
"model": "kling",
"task_type": "effects",
"input": {
"image_url": "string",
"effect": "squish",
"prompt": "string",
"professional_mode": false
},
"config": {
"webhook_config": {
"endpoint": "string",
"secret": "string"
},
"service_mode": "public"
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "kling",
"task_type": "effects",
"input": {
"image_url": "string",
"effect": "squish",
"prompt": "string",
"professional_mode": false
},
"config": {
"webhook_config": {
"endpoint": "string",
"secret": "string"
},
"service_mode": "public"
}
}'
{}