task property

String? task
getter/setter pair

Optional task mode for video generation.

If not specified, the model automatically determines the appropriate mode based on the provided text prompt and input media. Possible string values are:

  • "TASK_UNSPECIFIED" : Unspecified task. The task is inferred from the input prompt and media.
  • "TEXT_TO_VIDEO" : Generates video solely from a text prompt.
  • "IMAGE_TO_VIDEO" : Generates video from one or two source images. The first image defines the starting frame, and the optional second image defines the ending frame.
  • "REFERENCE_TO_VIDEO" : Generates video using reference media (such as images, audio, or video).
  • "EDIT" : Modifies an existing input video.
  • "EXTEND" : Extends an existing input video.

Implementation

core.String? task;