[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Rembg Enhance](https://spiral.ai/integrations/vscode/rembg-enhance)

# How to Use Rembg Enhance in VS Code

Rembg Enhance removes backgrounds from photos, 2D artwork, and 3D renders. It adds ViTMatte matting to the background removal process.

|  |  |
| --- | --- |
| Model | Rembg Enhance |
| Available through | fal |
| Category | Image |
| Price | $0.0078 per generation. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Rembg Enhance in VS Code

- Use Rembg Enhance on the product photos in public/products and save separate cutouts with matching filenames.
- Use Rembg Enhance to isolate the rendered icons in assets/icons, then build a page showing each original beside its result.
- Use Rembg Enhance on the illustrations in assets/onboarding and prepare a contact sheet for edge review.
- Use Rembg Enhance on one representative image from each asset folder and show me the results before processing the rest.
- Use Rembg Enhance to remove the background from the product hero image, then preview the cutout in our existing hero component.

## How to set up Rembg Enhance 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:

```bash
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.

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

### Call the Spiral API

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

2. **Run Rembg Enhance**: 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": "smoretalk-ai/rembg-enhance",
    "input": {
      "image_url": "https://fal.media/files/kangaroo/SOF3bLF7b1kJ2-N9dTg-c.png"
    }
  }'
```

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

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

## Rembg Enhance tools and prices

- [Rembg Enhance (Remove Background Enhance)](https://spiral.ai/tools/fal/smoretalk-ai/rembg-enhance) (fal): $0.0078 per generation.

## What can you do with Rembg Enhance in VS Code?

Prepare isolated image assets for your project from photos, illustrations, and 3D renders. Have the agent organize the results and build a comparison view for review.

### Product listing cutouts

Remove the backdrop from product photos before arranging them in a catalog layout.

### 3D icon assets

Isolate rendered icons for placement in presentations, websites, and app screens.

### Illustration reuse

Extract illustrated subjects from existing artwork for a new composition.

### Presentation visuals

Cut out photographed objects before adding them to slides and diagrams.

### Promotional layouts

Prepare product cutouts for banners, flyers, and social posts, then compose the layout separately.

### Rendered object libraries

Remove backgrounds from 3D object renders to build a reusable collection of image assets.

## Overview

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

## Rembg Enhance in other agents

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

## More VS Code guides

- [Recraft Vectorize](https://spiral.ai/integrations/vscode/recraft-vectorize)
- [RunDiffusion Photo Flux](https://spiral.ai/integrations/vscode/rundiffusion-photo-flux)
- [Recraft V4.1 Vector](https://spiral.ai/integrations/vscode/recraft-v4-1-vector)
- [SAM 3 Image](https://spiral.ai/integrations/vscode/sam-3-image)
- [Recraft V4.1 Utility Pro](https://spiral.ai/integrations/vscode/recraft-v4-1-utility-pro)
- [SAM 3.1 Image](https://spiral.ai/integrations/vscode/sam-3-1-image)

## Questions about Rembg Enhance in VS Code

**Can VS Code use Rembg Enhance?**

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

**How much does Rembg Enhance cost in VS Code?**

$0.0078 per generation. 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 Rembg Enhance in VS Code?**

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

**How long does it take to set up Rembg Enhance in VS Code?**

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

**Does VS Code wait while Rembg Enhance runs?**

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

**What is Rembg Enhance useful for?**

It removes backgrounds from existing images. Suggested uses include product cutouts, isolated illustrations, and reusable 3D render assets.

**What does Enhance mean in Rembg Enhance?**

The maker identifies ViTMatte as the enhancement to background removal. ViTMatte includes a module designed to capture details needed for matting.

**Is Rembg Enhance only for photographs?**

Its documented targets also include 2D vector-style artwork and 3D graphics. Consider it for illustrated assets and rendered objects as well as photos.

**Does Rembg Enhance return editable vector artwork?**

The documented output example is a segmented PNG image. For vector artwork, plan around an image cutout rather than editable paths.

**How should I check a Rembg Enhance result?**

As a review step, compare the cutout with the original at full size. Inspect narrow details, gaps, and the outer edge before using it in a finished layout.

