generate Videos
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
the name of the GenAI model to use for generating videos
a com.google.genai.types.GenerateVideosSource that specifies the inputs (prompt, image, and/or video) to generate videos.
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
the name of the GenAI model to use for generating videos
the text prompt for generating the videos. Optional for image to video and video extension use cases.
the input image for generating the videos. Optional if prompt is provided.
the input video for video extension use cases. Optional if prompt or image is provided.
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
the name of the GenAI model to use for generating videos
the text prompt for generating the videos. Optional for image to video use cases.
the input image for generating the videos. Optional if prompt is provided.
a com.google.genai.types.GenerateVideosConfig instance that specifies the optional configurations