generateVideos

Asynchronously generates videos given a GenAI model, and a GenerateVideosSource source.

This method is experimental.

Return

a com.google.genai.types.GenerateVideosOperation instance that contains the generated videos.

Parameters

model

the name of the GenAI model to use for generating videos

source

a com.google.genai.types.GenerateVideosSource that specifies the inputs (prompt, image, and/or video) to generate videos.

config

a com.google.genai.types.GenerateVideosConfig instance that specifies the optional configurations


Asynchronously generates videos given a GenAI model, and an input (text, image, or video).

This method is experimental.

Return

a com.google.genai.types.GenerateVideosOperation instance that contains the generated videos.

Parameters

model

the name of the GenAI model to use for generating videos

prompt

the text prompt for generating the videos. Optional for image to video and video extension use cases.

image

the input image for generating the videos. Optional if prompt is provided.

video

the input video for video extension use cases. Optional if prompt or image is provided.

config

a com.google.genai.types.GenerateVideosConfig instance that specifies the optional configurations


Asynchronously generates videos given a GenAI model, and an input (text, image).

This method is experimental, and kept for backward compatibility.

Return

a com.google.genai.types.GenerateVideosOperation instance that contains the generated videos.

Parameters

model

the name of the GenAI model to use for generating videos

prompt

the text prompt for generating the videos. Optional for image to video use cases.

image

the input image for generating the videos. Optional if prompt is provided.

config

a com.google.genai.types.GenerateVideosConfig instance that specifies the optional configurations