Authorizations
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Body
Description of the video. Note: It should be less than 2000 characters.
2000
"A beautiful sunset over the mountains with birds flying in the sky"
The model will use the image passed in this parameter as the first frame to generate a video. Supported formats: URL of the image or base64 encoding of the image. Image specifications: format must be JPG, JPEG, or PNG; aspect ratio should be greater than 2:5 and less than 5:2; the shorter side must exceed 300 pixels; file size must not exceed 20MB.
"https://img.freepik.com/free-photo/beautiful-sunset-over-mountains_123456-7890.jpg"
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Whether to use the prompt optimizer. If true, the model will automatically optimize the incoming prompt to improve the generation quality.
The model will use the image passed in this parameter as the last frame to generate a video. Supported formats: URL of the image or base64 encoding of the image. Image specifications: format must be JPG, JPEG, or PNG; aspect ratio should be greater than 2:5 and less than 5:2; the shorter side must exceed 300 pixels; file size must not exceed 20MB.
"https://img.freepik.com/free-photo/beautiful-sunset-over-mountains_123456-7890.jpg"
Video length in seconds
6
, 10
6
Response
OK - Task created successfully
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}