POST
/
v1
/
ai
/
image-to-video
/
minimax-hailuo-02-768p
curl --request POST \
  --url https://api.freepik.com/v1/ai/image-to-video/minimax-hailuo-02-768p \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "webhook_url": "https://www.example.com/webhook",
  "prompt": "A beautiful sunset over the mountains with birds flying in the sky",
  "prompt_optimizer": true,
  "first_frame_image": "https://img.freepik.com/free-photo/beautiful-sunset-over-mountains_123456-7890.jpg",
  "duration": 6
}'
{
"data": {
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "IN_PROGRESS"
}
}

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 - Task created successfully

The response is of type object.