[Integrations](https://spiral.ai/integrations) › [Grok Build](https://spiral.ai/integrations/grok-build) › [Google Virtual Try-On](https://spiral.ai/integrations/grok-build/google-virtual-try-on)

# How to Use Google Virtual Try-On in Grok Build

Google Virtual Try-On creates an image of a person wearing clothing shown in a separate product photo. Use it for apparel previews, wardrobe comparisons, and styling shortlists guided by actual garment images.

|  |  |
| --- | --- |
| Model | Google Virtual Try-On |
| Available through | fal |
| Category | Image |
| Price | $0.0975 per image. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Google Virtual Try-On in Grok Build

- Use Google Virtual Try-On with person.jpg and sweater.jpg in the project's assets folder. Save the preview beside both originals for review.
- Use Google Virtual Try-On to preview each shirt in assets/shirts on assets/person.jpg separately. Build a comparison page labeled with the source filenames.
- Use Google Virtual Try-On with the blue and green product photos in this project, keeping the person image fixed. Place both previews side by side.
- Use Google Virtual Try-On to preview the catalog sweater on each person image in assets/people. Keep each result linked to its source pair.
- Use Google Virtual Try-On to add the project's top first, then use that result to preview the trousers. Save both stages for inspection.

## How to set up Google Virtual Try-On in Grok Build

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Add `--scope project` to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

```bash
grok mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `grok` and run `/mcps`. Select Spiral and press `i`. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

3. **Check it**

```bash
grok mcp doctor spiral
```

### Use the Spiral skill

1. **Send Grok Build this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Google Virtual Try-On**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "google/virtual-try-on",
    "input": {
      "person_image_url": "https://storage.googleapis.com/falserverless/model_tests/leffa/person_image.jpg",
      "product_image_url": "https://storage.googleapis.com/falserverless/model_tests/leffa/tshirt_image.jpg"
    }
  }'
```

Then paste one of the prompts above: Grok Build finds Google Virtual Try-On on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok-build

## Google Virtual Try-On tools and prices

- [Google Virtual Try On](https://spiral.ai/tools/fal/google/virtual-try-on) (fal): $0.0975 per image. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| num_images | 1 to 4 | 1 | The number of virtual try-on images to generate. |

## What can you do with Google Virtual Try-On in Grok Build?

Create apparel previews from the project's person and product images. Your coding agent can organize comparisons and retain the originals beside each result for review.

### Product page previews

Pair a clothing product photo with a selected person image to prepare an apparel preview for review.

### Wardrobe comparisons

Preview several garments separately on the same person, then arrange the results side by side.

### Color comparisons

Use product photos of different garment colors with the same person image to compare the resulting looks.

### Stylist shortlists

Turn a selection of clothing product images into visual options for a client's styling review.

### Catalog casting reviews

Preview one garment on several supplied person images to review potential catalog presentations.

### Outfit planning

Add a top first, then use the resulting image for a second pass with bottoms. Review the clothing after each pass.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Grok Build guides](https://spiral.ai/integrations/grok-build)

## Google Virtual Try-On in other agents

- [Amp](https://spiral.ai/integrations/amp/google-virtual-try-on)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/google-virtual-try-on)
- [Claude](https://spiral.ai/integrations/claude-desktop/google-virtual-try-on)
- [Claude Code](https://spiral.ai/integrations/claude-code/google-virtual-try-on)
- [Cline](https://spiral.ai/integrations/cline/google-virtual-try-on)
- [Codex](https://spiral.ai/integrations/codex/google-virtual-try-on)
- [Cursor](https://spiral.ai/integrations/cursor/google-virtual-try-on)
- [Devin](https://spiral.ai/integrations/devin/google-virtual-try-on)
- [dots](https://spiral.ai/integrations/dots/google-virtual-try-on)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/google-virtual-try-on)
- [Gemini](https://spiral.ai/integrations/gemini/google-virtual-try-on)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/google-virtual-try-on)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/google-virtual-try-on)
- [goose](https://spiral.ai/integrations/goose/google-virtual-try-on)
- [Grok](https://spiral.ai/integrations/grok/google-virtual-try-on)
- [Hermes](https://spiral.ai/integrations/hermes/google-virtual-try-on)
- [Instinct](https://spiral.ai/integrations/instinct/google-virtual-try-on)
- [Manus](https://spiral.ai/integrations/manus/google-virtual-try-on)
- [Muse](https://spiral.ai/integrations/muse/google-virtual-try-on)
- [Muse Code](https://spiral.ai/integrations/muse-code/google-virtual-try-on)
- [n8n](https://spiral.ai/integrations/n8n/google-virtual-try-on)
- [Notion](https://spiral.ai/integrations/notion/google-virtual-try-on)
- [OpenClaw](https://spiral.ai/integrations/openclaw/google-virtual-try-on)
- [opencode](https://spiral.ai/integrations/opencode/google-virtual-try-on)
- [Perplexity](https://spiral.ai/integrations/perplexity/google-virtual-try-on)
- [Raycast](https://spiral.ai/integrations/raycast/google-virtual-try-on)
- [VS Code](https://spiral.ai/integrations/vscode/google-virtual-try-on)
- [Windsurf](https://spiral.ai/integrations/windsurf/google-virtual-try-on)
- [Zapier](https://spiral.ai/integrations/zapier/google-virtual-try-on)

## More Grok Build guides

- [Gemini 2.5 Flash Image Edit](https://spiral.ai/integrations/grok-build/gemini-2-5-flash-image-edit)
- [Grok Imagine Image](https://spiral.ai/integrations/grok-build/grok-imagine-image)
- [Gemini 2.5 Flash Image](https://spiral.ai/integrations/grok-build/gemini-2-5-flash-image)
- [Grok Imagine Image 2.0](https://spiral.ai/integrations/grok-build/grok-imagine-image-2-0)
- [GPT Image 2.6 Sunburst Text to Image](https://spiral.ai/integrations/grok-build/gpt-image-2-6-sunburst-text-to-image)
- [Grok Imagine Image 2.0 Edit](https://spiral.ai/integrations/grok-build/grok-imagine-image-2-0-edit)

## Questions about Google Virtual Try-On in Grok Build

**Can Grok Build use Google Virtual Try-On?**

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Google Virtual Try-On like any built-in tool.

**How much does Google Virtual Try-On cost in Grok Build?**

$0.0975 per image. Billed on `num_images`, default 1. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok Build plan is separate.

**Do I need a fal account to use Google Virtual Try-On in Grok Build?**

No. Spiral runs Google Virtual Try-On on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Google Virtual Try-On in Grok Build?**

About two minutes: add the server, then sign in, then check it.

**Does Grok Build wait while Google Virtual Try-On runs?**

Google Virtual Try-On runs in the background. Grok Build starts the run, checks on it and gives you the image when it's ready.

**What is Google Virtual Try-On useful for?**

It creates images of a person wearing clothing from a product photo. Use those previews to compare garments, prepare styling shortlists, or review apparel imagery.

**How should I guide the clothing's appearance?**

Supply a product photo showing the garment you want to preview. For a color comparison, use a separate product image for each color and keep the person image the same.

**Can I build an outfit in stages?**

Yes. Google's tutorial demonstrates generating a top first, then using that result as the person image when adding bottoms.

**What resolution and shape do the images have?**

Google documents the output resolution and aspect ratio as matching the input image. Choose your source image with the intended final framing in mind.

**What should I check before using a result?**

Compare the person's body shape and the garment's identity with the originals. Google has specifically updated preservation of both, so include them in your review.

