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

VS Code · Image

How to Use fal Retouch in VS Code

fal Retouch removes facial blemishes and improves skin in an existing photo. Use it for portrait cleanup, with LoRA strength controlling the retouch effect.

Prompts to try with fal Retouch in VS Code

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

Use fal Retouch on the staff headshots in this project's assets directory. Save the results separately and build a preview pairing each original with its retouched image.

fal RetouchVS Code
Try asking
  • Use fal Retouch on the author portrait used by the biography page. Create a local comparison preview so I can inspect skin texture before replacing the current asset.

  • Use fal Retouch on one speaker headshot from this project at two different LoRA strengths. Keep the other settings identical and show both results beside the original.

  • Use fal Retouch on the profile portrait in this project's image assets. Check the returned dimensions against the profile component's display size and report whether resizing is needed.

  • Use fal Retouch on the selected portrait assets for the team page. Generate a review gallery with filenames and original images so I can choose which edits to keep.

How to set up fal Retouch 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 fal Retouch

    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-editing/retouch",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/gallery/tulsi.png"
        }
      }'

Then paste one of the prompts above: VS Code finds fal Retouch on Spiral, shows the price and runs it.

fal Retouch providers and prices

Spiral runs fal Retouch through fal. Open a card for today's price, with every fee included.

falImage
Image Editing Retouch
fal-ai/image-editing/retouch

Settings you can ask for

fal Retouch works from your image URL. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Guidance scale0 to 203.5

The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.

Number of inference steps1 to 5030

Number of inference steps for sampling.

LoRA scale0 to 41

The scale factor for the LoRA model. Controls the strength of the LoRA effect.

Seeda whole number

The same seed and the same prompt given to the same version of the model will output the same image every time.

Every API field of Image Editing Retouch is on its tool page: open its card above.

What can you do with fal Retouch in VS Code?

Prepare retouched portraits for a project's staff directory, author page, or speaker section. Have the agent keep originals, produce comparison previews, and check the returned dimensions against the layout.

Staff directory portraits

Retouch facial blemishes in staff headshots, then compare each result with its original before updating the directory.

Professional profile photos

Prepare a skin-retouched portrait for a professional profile. Review facial details at full size before choosing the final image.

Speaker headshots

Clean up skin in a speaker's supplied portrait before placing it on a conference page or event announcement.

Author portraits

Prepare a retouched author photo for a biography page, newsletter, or publication. Check the returned dimensions against the intended placement.

Portrait proofing

Compare different retouch strengths on one portrait and present the results beside the original for selection.

Creator media kits

Retouch an existing creator headshot for a media kit, then inspect skin texture and recognizable facial details before export.

Questions about fal Retouch in VS Code

Can VS Code use fal Retouch?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run fal Retouch like any built-in tool.

How much does fal Retouch 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 fal Retouch in VS Code?

No. Spiral runs fal Retouch on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up fal Retouch in VS Code?

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

Does VS Code wait while fal Retouch runs?

fal Retouch runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

What is fal Retouch best used for?

Facial blemish removal and skin retouching in existing photographs. Consider it for headshots, profile pictures, and other portraits that need skin cleanup.

How should I direct a fal Retouch task?

Give your agent a concrete portrait task and a review criterion, such as checking skin texture against the original. Ask the agent to compare the result rather than assuming every requested detail will be preserved.

Which setting matters when comparing retouch strength?

LoRA strength controls the effect. Compare two strengths on the same portrait while holding other settings steady, then inspect the skin and facial details.

What should I check before using a retouched portrait?

Compare it with the original at full size. Check skin texture, freckles, facial features, and any details you want to retain before selecting the result.

What resolution does fal Retouch produce?

The published schema includes pixel dimensions but does not specify a fixed output resolution. Check the returned image's dimensions before using it in a layout or print job.

Get started

Start using fal Retouch 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