Veo 3.1 First and Last Frame Video Generation
Video
Veo 3.1 First and Last Frame Video Generation
POST
Veo 3.1 First and Last Frame Video Generation
Use the Google Veo 3.1 model to generate a transition video based on the provided first-frame and last-frame images. Supports durations of 4/6/8 seconds, 720p and 1080p resolutions, and optional audio generation.
Request Headers
string
required
Enum value:
application/jsonstring
required
Bearer authentication format: Bearer {{API Key}}.
Request Body
integer
Random seed used to reproduce the generated result.Value range: [0, 4294967295]
string
required
First-frame image. Supports image URLs or Base64-encoded data. Format requirements: JPEG or PNG, up to 20 MB.
string
required
Text prompt describing the video transition content between the first frame and the last frame.
string
required
Last-frame image. Supports image URLs or Base64-encoded data. Format requirements: JPEG or PNG, up to 20 MB.
string
default:"720p"
Output video resolution.Available values:
720p, 1080pstring
default:"16:9"
Output video aspect ratio.Available values:
16:9, 9:16integer
default:1
Number of generated video samples (1-4).Value range: [1, 4]
boolean
default:true
Whether to use Gemini to enhance the prompt. This feature cannot be disabled on Veo 3.x.
boolean
default:false
Whether to generate audio at the same time.
string
Describes content to avoid in the generated video.
integer
default:8
Generated video duration (seconds), supporting 4, 6, and 8 seconds.Available values:
4, 6, 8string
default:"allow_adult"
Whether to allow generating people. allow_adult: allow generating adults; dont_allow: do not allow generating people; allow_all: allow all people.Available values:
allow_adult, dont_allow, allow_allResponse Information
string
Use the task_id to request the Get Task Result API to retrieve the generated output.