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
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
Random seed used to reproduce the generated result.Value range: [0, 4294967295]
First-frame image. Supports image URLs or Base64-encoded data. Format requirements: JPEG or PNG, up to 20 MB.
Text prompt describing the video transition content between the first frame and the last frame.
Last-frame image. Supports image URLs or Base64-encoded data. Format requirements: JPEG or PNG, up to 20 MB.
Output video resolution.Available values:
720p, 1080pOutput video aspect ratio.Available values:
16:9, 9:16Number of generated video samples (1-4).Value range: [1, 4]
Whether to use Gemini to enhance the prompt. This feature cannot be disabled on Veo 3.x.
Whether to generate audio at the same time.
Describes content to avoid in the generated video.
Generated video duration (seconds), supporting 4, 6, and 8 seconds.Available values:
4, 6, 8Whether 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
Use the task_id to request the Get Task Result API to retrieve the generated output.