Optional
abortAbort signal which can be used to cancel the request.
NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.
Optional
aspectThe aspect ratio for the generated video. 16:9 (landscape) and 9:16 (portrait) are supported.
Optional
compressionCompression quality of the generated videos.
Optional
durationDuration of the clip for video generation in seconds.
Optional
enhanceWhether to use the prompt rewriting logic.
Optional
fpsFrames per second for video generation.
Optional
generateWhether to generate audio along with the video.
Optional
httpUsed to override HTTP request options.
Optional
lastImage to use as the last frame of generated videos. Only supported for image to video use cases.
Optional
negativeExplicitly state what should not be included in the generated videos.
Optional
numberNumber of output videos.
Optional
outputThe gcs bucket where to save the generated videos.
Optional
personWhether allow to generate person videos, and restrict to specific ages. Supported values are: dont_allow, allow_adult.
Optional
pubsubThe pubsub topic where to publish the video generation progress.
Optional
referenceThe images to use as the references to generate the videos. If this field is provided, the text prompt field must also be provided. The image, video, or last_frame field are not supported. Each image must be associated with a type. Veo 2 supports up to 3 asset images or 1 style image.
Optional
resolutionThe resolution for the generated video. 720p and 1080p are supported.
Optional
seedThe RNG seed. If RNG seed is exactly same for each request with unchanged inputs, the prediction results will be consistent. Otherwise, a random RNG seed will be used each time to produce a different result.
Configuration for generating videos.