Media generation input format for the Virtual Try On model.
Fields `prompt` `string` The text prompt describing the desired image.
`productImages[]` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#ProductImage`)`` Required. A single product image to try on the person.
`personImage` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#PersonImage`)`` The image of the person to virtually try-on clothing.

| JSON representation |
|---|
| ``` { "prompt": string, "productImages": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#ProductImage`) } ], "personImage": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#PersonImage`) } } ``` |

## ProductImage

A ProductImage is used to provide the product image and its associated configuration options for Virtual Try On.
Fields `image` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#Image`)`` Required. An image of a product to virtually try on a person. The following values are supported: - A `bytesBase64` encoded string that encodes the image. - A `gcsUri` string URI to a Google Cloud Storage bucket location.
`maskImage` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#Image`)`` (Optional) The mask image associated with this product. If provided, the mask image is used to guide the image editing.
`productImageConfig` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#ProductImageConfig`)`` The configuration for the product image.

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

## Image

Represents the input image and metadata for virtual try-on.
Fields `mimeType` `string` The MIME type of the image. The following values are supported: - image/jpeg - image/png
`data` `Union type` Image content for virtual try-on. The following values are supported: - A `bytesBase64` encoded string that encodes the image. - A `gcsUri` string URI to a Google Cloud Storage bucket location. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: `bytesBase64Encoded` `string` The base64-encoded bytes of the image.
`gcsUri` `string` The Google Cloud Storage URI of the image. The URI must be in `gs://` format.
End of mutually exclusive fields.

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

## ProductImageConfig

Configuration for the product image.
Fields `maskMode` ``enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/MaskMode`)`` Mode used to control the segmentation logic.
`dilation` `number` (Optional) Factor for dilating the mask. Valid values are in \[0.0, 1.0\]. If unset, dilation defaults to `0`.
`productDescription` `string` (Optional) A text description of the product.

| JSON representation |
|---|
| ``` { "maskMode": enum (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/MaskMode`), "dilation": number, "productDescription": string } ``` |

## PersonImage

An image of a person. The model generates a virtual try-on image with the supplied image of the person wearing the garments from `productImages`.
Fields `image` ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/Shared.Types/VirtualTryOnModelInstance#Image`)`` Required. An image of a person to try-on the clothing product. The following values are supported: - A `bytesBase64` encoded string that encodes the image. - A `gcsUri` string URI to a Google Cloud Storage bucket location.

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