Spiral gives your agent every tool with one account. Browse the tools →

VS Code · Image

How to Use Image Apps v2 Virtual Try-on in VS Code

Image Apps v2 Virtual Try-on creates clothing previews from a person photo and a garment photo. It produces 4K images and lets you keep the original stance or allow a new pose.

Prompts to try with Image Apps v2 Virtual Try-on in VS Code

Copy an example into VS Code, or ask in your own words.

Use Image Apps v2 Virtual Try-on with the person and garment photos in the project's sample assets. Preserve the pose and save a preview for the product page mockup.

Image Apps v2 Virtual Try-onVS Code
Try asking
  • Use Image Apps v2 Virtual Try-on to preview each garment in the project's collection folder on the same person photo. Keep the original stance and assemble a review page.

  • Use Image Apps v2 Virtual Try-on with the project's person and dress references. Generate separate previews with pose preservation enabled and disabled, then display them side by side.

  • Use Image Apps v2 Virtual Try-on to replace the clothing preview placeholder in the storefront prototype using the project's reference photos. Keep the person's pose.

  • Use Image Apps v2 Virtual Try-on with the campaign reference photos in this project. Allow a new pose and add the result to the campaign concept page.

How to set up Image Apps v2 Virtual Try-on in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Image Apps v2 Virtual Try-on

    One request; the result comes back by polling or a webhook.

    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/image-apps-v2/virtual-try-on",
        "input": {
          "person_image_url": "https://v3.fal.media/files/tiger/4vxSHizex4UWR5fdnPs1A.jpeg",
          "clothing_image_url": "https://v3b.fal.media/files/b/monkey/5ZWXSKUuk9EilI1apFCeu_1ecd050187f24b9aa1d2defb88d8d8ae.png"
        }
      }'

Then paste one of the prompts above: VS Code finds Image Apps v2 Virtual Try-on on Spiral, shows the price and runs it.

Image Apps v2 Virtual Try-on providers and prices

Spiral runs Image Apps v2 Virtual Try-on through fal. Open a card for today's price, with every fee included.

falImage
Virtual Try-on
fal-ai/image-apps-v2/virtual-try-on

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Preserve poseon or offon

Every API field of Virtual Try-on is on its tool page: open its card above.

What can you do with Image Apps v2 Virtual Try-on in VS Code?

Create clothing previews from project assets for product pages and design reviews. Your coding agent can organize the results beside the original references for comparison.

Product page previews

Use Image Apps v2 Virtual Try-on to preview a garment on a chosen person before selecting imagery for a product page.

Outfit shortlists

Use Image Apps v2 Virtual Try-on with the same person photo and separate garment references to compare clothing choices.

Styling consultations

Use Image Apps v2 Virtual Try-on to prepare clothing previews for a stylist and client to discuss.

Collection review boards

Use Image Apps v2 Virtual Try-on to assemble previews of a collection on a chosen person, retaining the original stance for comparison.

Pose exploration

Use Image Apps v2 Virtual Try-on with pose preservation disabled to explore how a garment looks in a different stance.

Campaign concept reviews

Use Image Apps v2 Virtual Try-on to prepare clothing previews for a campaign mood board before choosing outfits for a shoot.

Questions about Image Apps v2 Virtual Try-on in VS Code

Can VS Code use Image Apps v2 Virtual Try-on?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Image Apps v2 Virtual Try-on like any built-in tool.

How much does Image Apps v2 Virtual Try-on cost in VS Code?

$0.052 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need a fal account to use Image Apps v2 Virtual Try-on in VS Code?

No. Spiral runs Image Apps v2 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 Image Apps v2 Virtual Try-on in VS Code?

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

Does VS Code wait while Image Apps v2 Virtual Try-on runs?

Image Apps v2 Virtual Try-on runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

What is Image Apps v2 Virtual Try-on useful for?

It creates visual previews of a person wearing clothing from a reference photo. Use it to explore outfit choices or prepare clothing imagery for review.

What resolution does Image Apps v2 Virtual Try-on produce?

The documentation describes 4K output. It identifies 3:4 as the default fashion framing.

Can Image Apps v2 Virtual Try-on keep the person's pose?

Yes. In fal's published test, enabling pose preservation kept the person in the original stance.

Can Image Apps v2 Virtual Try-on change the pose?

Turning pose preservation off allows the model to re-pose the person around the garment. Try this when exploring a different presentation of the clothing.

How should I prompt Image Apps v2 Virtual Try-on?

The generation itself does not require a written prompt. Tell your agent which person and garment references to use and whether to retain the original stance.

Get started

Start using Image Apps v2 Virtual Try-on in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options