Class GenerateVideosParameters

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateVideosParameters

@InternalApi public abstract class GenerateVideosParameters extends JsonSerializable
Class that represents the parameters for generating videos.
  • Constructor Details

    • GenerateVideosParameters

      public GenerateVideosParameters()
  • Method Details

    • model

      public abstract Optional<String> 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

      public abstract Optional<String> prompt()
      The text prompt for generating the videos. Optional if image or video is provided.
    • image

      public abstract Optional<Image> image()
      The input image for generating the videos. Optional if prompt is provided. Not allowed if video is provided.
    • video

      public abstract Optional<Video> video()
      The input video for video extension use cases. Optional if prompt is provided. Not allowed if image is provided.
    • source

      public abstract Optional<GenerateVideosSource> source()
      A set of source input(s) for video generation.
    • config

      public abstract Optional<GenerateVideosConfig> config()
      Configuration for generating videos.
    • builder

      public static GenerateVideosParameters.Builder builder()
      Instantiates a builder for GenerateVideosParameters.
    • toBuilder

      public abstract GenerateVideosParameters.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static GenerateVideosParameters fromJson(String jsonString)
      Deserializes a JSON string to a GenerateVideosParameters object.