veo3.1/first-last-frame-to-videoGeneration type:
image_to_videoEndpoint:
POST /api/asset_generator/
Pricing
Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.
Quick start
The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.Input parameters
Send these fields ininput_params.
string
required
URL of the input image to animate. Should be 720p or higher resolution in 16:9 aspect ratio. If the image is not in 16:9 aspect ratio, it will be cropped to fit.
string
required
URL of the input image to animate. Should be 720p or higher resolution in 16:9 aspect ratio. If the image is not in 16:9 aspect ratio, it will be cropped to fit.
string
required
The text prompt describing the video you want to generateMinimum characters:
1.
Maximum characters: 2000.string
default:"8s"
The duration of the generated video in secondsAllowed values:
"4s", "6s", "8s".string
default:"720p"
The resolution of the generated videoAllowed values:
"720p", "1080p".string
default:"auto"
The aspect ratio of the generated videoAllowed values:
"auto", "16:9", "9:16".boolean
string
A negative prompt to guide the video generation
Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
