Gemini Vertex AI icon

Gemini Vertex AI

Generate or edit images using Gemini 2.5 Flash Image (Nano Banana) via Vertex AI

Image → Virtual Try-On

AI-generated

Summary

Perform a virtual try-on by overlaying product images on a person image using Vertex AI's virtual-try-on-001 model.

Inputs

  • binary (required) — Binary data containing the person and product images.

Output shape

Array of items, each with JSON metadata and a binary image.

Each item contains a binary field (default: image) with the generated try-on image and JSON fields success, operation, location, model, filename, and predictionIndex. If multiple samples are requested, the filename receives a numeric suffix (e.g., generated_image_2.png).

Examples

Example 1: Basic virtual try-on with one variation

Set Person Image Field to data, Product Image Field to product, leave Sample Count at 1, and use default Output Binary Field image.

Links

Discussion