[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FASHN Virtual Try-On v1.6](https://spiral.ai/integrations/opencode/fashn-virtual-try-on-v1-6)

# How to Use FASHN Virtual Try-On v1.6 in opencode

FASHN Virtual Try-On v1.6 transfers clothing from a garment photo onto a person, including printed details. It produces images up to 864 × 1296 pixels, with Quality mode focused on preserving identity and skin tones.

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

## Prompts to try with FASHN Virtual Try-On v1.6 in opencode

- Use FASHN Virtual Try-On v1.6 with the person and flat-lay garment photos in this project. Set garment_photo_type to flat-lay and build a side-by-side review page showing both references and the result.
- Use FASHN Virtual Try-On v1.6 to preview the project's dress photographs on its selected person photo. Set category to one-pieces and save a review gallery.
- Use FASHN Virtual Try-On v1.6 on the project's printed garment references. Show each output beside its source so I can inspect lettering and repeated patterns.
- Use FASHN Virtual Try-On v1.6 to compare the same project image pair with segmentation_free enabled and disabled. Keep the seed fixed and label the results for checking original clothing remnants.
- Use FASHN Virtual Try-On v1.6 in quality mode for the selected project image pairs. Build a review sheet with close crops of skin tones, garment edges, and the waist.

## How to set up FASHN Virtual Try-On v1.6 in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 FASHN Virtual Try-On v1.6**: 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": "fal-ai/fashn/tryon/v1.6",
    "input": {
      "model_image": "https://storage.googleapis.com/falserverless/example_inputs/model.png",
      "garment_image": "https://storage.googleapis.com/falserverless/example_inputs/garment.webp"
    }
  }'
```

Then paste one of the prompts above: opencode finds FASHN Virtual Try-On v1.6 on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## FASHN Virtual Try-On v1.6 tools and prices

- [FASHN Virtual Try-On V1.6 · Image to Image](https://spiral.ai/tools/fal/fal-ai/fashn/tryon/v1.6) (fal): $0.0975 per generation. Billed on `num_samples`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| category | tops, bottoms, one-pieces, auto | auto | Category of the garment to try-on. 'auto' will attempt to automatically detect the category of the garment. |
| mode | performance, balanced, quality | balanced | Specifies the mode of operation. 'performance' mode is faster but may sacrifice quality, 'balanced' mode is a balance between speed and quality, and 'quality' mode is slower but produces higher quality results. |
| garment_photo_type | auto, model, flat-lay | auto | Specifies the type of garment photo to optimize internal parameters for better performance. 'model' is for photos of garments on a model, 'flat-lay' is for flat-lay or ghost mannequin images, and 'auto' attempts to automatically detect the photo type. |
| moderation_level | none, permissive, conservative | permissive | Content moderation level for garment images. 'permissive' blocks only explicit content; 'conservative' also blocks underwear and swimwear. 'none' disables moderation only for accounts authorized to disable safety filters; for all other accounts it is treated as 'permissive'. |
| seed |  | — | Sets random operations to a fixed state. Use the same seed to reproduce results with the same inputs, or different seed to force different results. |
| num_samples | 1 to 4 | 1 | Number of images to generate in a single run. Image generation has a random element in it, so trying multiple images at once increases the chances of getting a good result. |

## What can you do with FASHN Virtual Try-On v1.6 in opencode?

Create clothing previews from the project's person and garment photos, then place them in a review gallery. Use FASHN v1.6 results to inspect garment details, skin tones, and unwanted clothing remnants.

### Product listing previews

Transfer a flat-lay garment onto a chosen person photo to prepare an on-model preview for review.

### Print and logo checks

Preview a printed garment on a person, then compare lettering and pattern placement against the product reference.

### Dress and jumpsuit previews

Apply a dress or jumpsuit reference to a person photo using the one-piece clothing category.

### Clothing transferred between people

Use an existing on-model garment photograph as the clothing reference for another person photo.

### Personal outfit comparisons

Try several photographed garments against the same person photo and compare the resulting looks side by side.

### Try-on quality reviews

Compare generated clothing previews against their references, checking prints, skin tones, remaining original clothing, and body-shape changes.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## FASHN Virtual Try-On v1.6 in other agents

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

## More opencode guides

- [FASHN Virtual Try-On v1.5](https://spiral.ai/integrations/opencode/fashn-virtual-try-on-v1-5)
- [FIBO Edit 1.5](https://spiral.ai/integrations/opencode/fibo-edit-1-5)
- [Expression Change](https://spiral.ai/integrations/opencode/expression-change)
- [FIBO Edit Restyle](https://spiral.ai/integrations/opencode/fibo-edit-restyle)
- [EVF-SAM2](https://spiral.ai/integrations/opencode/evf-sam2)
- [FLUX 1.1 Pro](https://spiral.ai/integrations/opencode/flux-1-1-pro)

## Questions about FASHN Virtual Try-On v1.6 in opencode

**Can opencode use FASHN Virtual Try-On v1.6?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FASHN Virtual Try-On v1.6 like any built-in tool.

**How much does FASHN Virtual Try-On v1.6 cost in opencode?**

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

**Do I need a fal account to use FASHN Virtual Try-On v1.6 in opencode?**

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

**How long does it take to set up FASHN Virtual Try-On v1.6 in opencode?**

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

**Does opencode wait while FASHN Virtual Try-On v1.6 runs?**

FASHN Virtual Try-On v1.6 runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What resolution does FASHN v1.6 produce?**

Outputs reach up to 864 × 1296 pixels. Smaller person photos stay smaller because FASHN v1.6 does not upscale beyond the original image resolution.

**Can FASHN v1.6 preserve garment text and patterns?**

Text and pattern transfer are documented strengths. Compare the result against the garment reference before using it in a product listing.

**When is Quality mode useful?**

Use Quality mode when identity, skin tones, and the transition between upper and lower clothing need close attention. The maker specifically improved these areas in FASHN v1.6.

**How do I keep neck labels out of a flat-lay try-on?**

Select the flat-lay photo type explicitly. The maker recommends it for excluding details such as back neck labels and size tags.

**Why did FASHN v1.6 replace the entire outfit?**

Automatic selection interprets a full-body garment reference photographed on a person as an outfit swap. Select the intended clothing category explicitly when you want only one part transferred.

