Media generation input format for the Virtual Try On model.
prompt
string
The text prompt for generating the images. This is required for both editing and generation.
The image of the products to wear on the person.
The image of the person to be edited with the product images.
JSON representation |
---|
{ "prompt": string, "productImages": [ { object ( |
ProductImage
A ProductImage is used to provide the product image and its associated configuration options for Virtual Try On.
The actual image data of the reference image.
The mask image associated with this product. If provided, the mask image will be used to guide the image editing.
A config for the product image.
JSON representation |
---|
{ "image": { object ( |
Image
Input image and metadata.
mimeType
string
The MIME type of the content of the image. Only the images in below listed MIME types are supported. - image/jpeg - image/png
data
Union type
data
can be only one of the following:bytesBase64Encoded
string
Base64 encoded bytes string representing the image.
gcsUri
string
The Cloud Storage URI of the image.
JSON representation |
---|
{ "mimeType": string, // data "bytesBase64Encoded": string, "gcsUri": string // Union type } |
ProductImageConfig
Config for the product image.
Mode used to control the segmentation logic.
dilation
number
Dilation to be used with this Mask.
productDescription
string
description of the product.
JSON representation |
---|
{
"maskMode": enum ( |