Package com.google.genai.types
Class GenerateVideosParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateVideosParameters
Class that represents the parameters for generating videos.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GenerateVideosParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GenerateVideosParameters.abstract Optional<GenerateVideosConfig>
config()
Configuration for generating videos.static GenerateVideosParameters
Deserializes a JSON string to a GenerateVideosParameters object.image()
The input image for generating the videos.model()
ID of the model to use.prompt()
The text prompt for generating the videos.abstract Optional<GenerateVideosSource>
source()
A set of source input(s) for video generation.abstract GenerateVideosParameters.Builder
Creates a builder with the same values as this instance.video()
The input video for video extension use cases.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GenerateVideosParameters
public GenerateVideosParameters()
-
-
Method Details
-
model
ID of the model to use. For a list of models, see `Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. -
prompt
The text prompt for generating the videos. Optional if image or video is provided. -
image
The input image for generating the videos. Optional if prompt is provided. Not allowed if video is provided. -
video
The input video for video extension use cases. Optional if prompt is provided. Not allowed if image is provided. -
source
A set of source input(s) for video generation. -
config
Configuration for generating videos. -
builder
Instantiates a builder for GenerateVideosParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerateVideosParameters object.
-