POST
/
v1
/
ai
/
image-to-video
/
kling-pro
curl --request POST \
  --url https://api.freepik.com/v1/ai/image-to-video/kling-pro \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "webhook_url": "https://www.example.com/webhook",
  "image": "<string>",
  "image_tail": "<string>",
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "duration": "5",
  "cfg_scale": 0.5,
  "static_mask": "<string>",
  "dynamic_masks": [
    {
      "mask": "<string>",
      "trajectories": [
        {
          "x": 123,
          "y": 123
        }
      ]
    }
  ]
}'
{
  "data": {
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "IN_PROGRESS"
  }
}

Important

The service allows up to 3 concurrent requests per user.

Authorizations

x-freepik-api-key
string
header
required

Your Freepik API key. Required for authentication. Learn how to obtain an API key

Body

application/json

Response

200
application/json

OK - Get the status of the kling-pro task

The response is of type object.