Skip to main content
POST
/
v1
/
ai
/
image-to-video
/
pixverse-v5-transition
Video transition using PixVerse-V5
curl --request POST \
  --url https://api.freepik.com/v1/ai/image-to-video/pixverse-v5-transition \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "prompt": "<string>",
  "resolution": "360p",
  "duration": 5,
  "negative_prompt": "",
  "seed": 123,
  "first_image_url": "<string>",
  "last_image_url": "<string>",
  "webhook_url": "https://www.example.com/webhook"
}'
{
"data": {
"generated": [],
"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
prompt
string
required

Prompt describing the video transition to generate

first_image_url
string<uri>
required

URL of the image to use as the first frame

last_image_url
string<uri>
required

URL of the image to use as the last frame

resolution
enum<string>

The resolution of the generated video

Available options:
360p,
540p,
720p,
1080p
duration
enum<integer>
default:5

The duration of the generated video in seconds. 8s videos cost double. 1080p videos are limited to 5 seconds

Available options:
5,
8
negative_prompt
string
default:""

Negative prompt to be used for the generation

seed
integer

The same seed and the same prompt given to the same version of the model will output the same video every time

webhook_url
string<uri>

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.

Example:

"https://www.example.com/webhook"

Response

OK

data
object
required
Example:
{
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
I