An instance for a video generation prediction request.
Fields `prompt` `string` A text description of the video you want to generate. The prompt should specify the subject, style, and any specific elements or actions that should appear in the video.
`image` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Image`)`` An optional image to use as a starting point for video generation, used as the first frame of the generated video. If `image` is provided, `video` and `referenceImages` cannot be used.
`video` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Video`)`` An optional input video to use as a starting point for video generation. If `video` is provided, `image` and `referenceImages` cannot be used. If `mask` is also provided, the input video will be edited based on the mask. If `mask` is not provided, the input video will be extended in duration.
`lastFrame` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Image`)`` Image to use as the last frame of the generated video. This field can only be used if `image` is also provided.
`cameraControl` `string` The camera motion to apply to the generated video. This field can only be used if `image` is also provided. Supported values: - `fixed`: No camera motion. - `pan_left`: Pan camera to the left. - `pan_right`: Pan camera to the right. - `tilt_up`: Tilt camera up. - `tilt_down`: Tilt camera down. - `truck_left`: Move camera to the left. - `truck_right`: Move camera to the right. - `pedestal_up`: Move camera up. - `pedestal_down`: Move camera down. - `push_in`: Move camera closer to the subject. - `pull_out`: Move camera away from the subject.
`mask` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Mask`)`` An optional mask to apply to the input `video` for video editing tasks like inserting or removing objects, or outpainting.
`referenceImages[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#ReferenceImage`)`` Optional reference images to guide video generation. If `referenceImages` are provided, `prompt` must also be provided, and `image`, `video`, and `lastFrame` cannot be used. You can provide up to 3 `asset` images or 1 `style` image.

| JSON representation |
|---|
| ``` { "prompt": string, "image": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Image`) }, "video": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Video`) }, "lastFrame": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Image`) }, "cameraControl": string, "mask": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Mask`) }, "referenceImages": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#ReferenceImage`) } ] } ``` |

## Image

Defines the input image format.
Fields `mimeType` `string` The MIME type of the image. Supported MIME types: - image/jpeg - image/png
`data` `Union type` The image data. The image can be provided as either base64 encoded bytes or a Google Cloud Storage URI. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: `bytesBase64Encoded` `string` The image bytes encoded in base64.
`gcsUri` `string` A Google Cloud Storage URI pointing to the image file.
End of mutually exclusive fields.

| JSON representation |
|---|
| ``` { "mimeType": string, // data "bytesBase64Encoded": string, "gcsUri": string // Union type } ``` |

## Video

Defines the input video format.
Fields `mimeType` `string` The MIME type of the video. Supported MIME types: - video/mov - video/mpeg - video/mp4 - video/mpg - video/avi - video/wmv - video/mpegps - video/flv
`data` `Union type` The video data. The video can be provided as either base64 encoded bytes or a Google Cloud Storage URI. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: `gcsUri` `string` A Google Cloud Storage URI pointing to the video file.
`bytesBase64Encoded` `string` The video bytes encoded in base64.
End of mutually exclusive fields.

| JSON representation |
|---|
| ``` { "mimeType": string, // data "gcsUri": string, "bytesBase64Encoded": string // Union type } ``` |

## Mask

Defines the input mask format for video editing. A mask specifies regions of a video or image to modify or preserve.
Fields `mimeType` `string` The MIME type of the mask. Supported MIME types: - image/png - image/jpeg - image/webp - video/mov - video/mpeg - video/mp4 - video/mpg - video/avi - video/wmv - video/mpegps - video/flv
`maskMode` `string` Specifies how the mask is applied to the input video for editing. For `insert`, `remove`, and `remove_static` modes, the mask must have the same aspect ratio as the input video. For `outpaint` mode, the mask can be 9:16 or 16:9. Supported values: - `insert`: The mask defines a rectangular region in the first frame of the input video. The object described in the `prompt` is inserted into this region and appears in subsequent frames. - `remove`: The mask identifies an object in the first frame to track and remove from the video. - `remove_static`: The mask identifies a static region in the video from which to remove objects. - `outpaint`: The mask defines a region where the input video is placed. The area outside this region is generated based on the `prompt`. Video masks are not supported for outpainting.
`data` `Union type` The mask data. The mask can be provided as either base64 encoded bytes or a Google Cloud Storage URI. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: `bytesBase64Encoded` `string` The mask bytes encoded in base64.
`gcsUri` `string` A Google Cloud Storage URI pointing to the mask file.
End of mutually exclusive fields.

| JSON representation |
|---|
| ``` { "mimeType": string, "maskMode": string, // data "bytesBase64Encoded": string, "gcsUri": string // Union type } ``` |

## ReferenceImage

Defines the input reference image format. A reference image provides additional context to guide video generation, such as style or assets.
Fields `image` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Image`)`` The image data for the reference image.
`referenceType` `string` The type of reference image, which defines how it influences video generation. Supported values: - `asset`: The reference image provides assets to the generated video, such as the scene, an object, or a character. - `style`: The aesthetics of the reference image (e.g., colors, lighting, texture) are used to define the style of the generated video, such as 'anime', 'photography', or 'origami'.

| JSON representation |
|---|
| ``` { "image": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VideoGenerationModelInstance#Image`) }, "referenceType": string } ``` |