cURL
curl --request POST \ --url https://api.freepik.com/v1/ai/image-to-video/kling-v2-1-pro \ --header 'Content-Type: application/json' \ --header 'x-freepik-api-key: <api-key>' \ --data '{ "webhook_url": "https://www.example.com/webhook", "image": "<string>", "prompt": "<string>", "negative_prompt": "<string>", "duration": "5", "cfg_scale": 0.5, "static_mask": "<string>", "dynamic_masks": [ { "mask": "<string>", "trajectories": [ { "x": 123, "y": 123 } ] } ] }'
200
example
{ "data": { "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "status": "IN_PROGRESS" }}
Generate a video from an image using the Kling 2.1 Pro model.
Your Freepik API key. Required for authentication. Learn how to obtain an API key
OK - Get the status of the kling-v2-1-pro task
The response is of type object.
object
Was this page helpful?