[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Bria RMBG 2.0](https://spiral.ai/integrations/vscode/bria-rmbg-2-0)

# How to Use Bria RMBG 2.0 in VS Code

Bria RMBG 2.0 turns existing images into transparent cutouts for product listings, portraits, and design work. It preserves the original pixels and resolution, with optional wording to control which objects stay.

|  |  |
| --- | --- |
| Model | Bria RMBG 2.0 |
| Available through | fal |
| Category | Image |
| Price | $0.03900078 per generation. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria RMBG 2.0 in VS Code

- Use Bria RMBG 2.0 on public/images/product.jpg and save the cutout beside the original for the catalog page.
- Use Bria RMBG 2.0 on the team portraits in public/team, then build a preview so I can inspect hair edges.
- Use Bria RMBG 2.0 on assets/room.jpg with the instruction 'only the chair' and preview the cutout.
- Use Bria RMBG 2.0 on assets/yoga.jpg, keeping the person with the mat, for the exercise page.
- Use Bria RMBG 2.0 to isolate the subject in assets/campaign.jpg, then place the cutout beside the existing campaign copy.

## How to set up Bria RMBG 2.0 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 Bria RMBG 2.0**: 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/bria/background/remove",
    "input": {
      "image_url": "https://fal.media/files/panda/K5Rndvzmn1j-OI1VZXDVd.jpeg"
    }
  }'
```

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

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

## Bria RMBG 2.0 tools and prices

- [Bria RMBG 2.0 · Remove Background](https://spiral.ai/tools/fal/fal-ai/bria/background/remove) (fal): $0.03900078 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| prompt |  | — | Optional. Change what the cutout keeps in plain words: add ('the person with the mat'), drop ('without the lamp') or narrow ('only the chair'). Billed at $0.03 instead of $0.018. |

## What can you do with Bria RMBG 2.0 in VS Code?

Create transparent image assets from photos already in your project. Have the coding agent place the cutouts in layouts and prepare previews for edge inspection.

### Product listing cutouts

Isolate products from existing photos for placement in catalog layouts.

### Portraits for team pages

Separate people from portrait backgrounds before arranging a consistent team page. Inspect loose hair before publishing.

### Advertising compositions

Extract a photographed subject for placement alongside campaign copy and other design elements.

### Stock-image collages

Turn subjects from stock images into transparent layers for editorial compositions.

### Furniture selection

Keep one chair from a furnished-room photo using a specific selection instruction.

### People with essential props

Keep a person together with a relevant object, such as a yoga mat, for instructional artwork.

## Overview

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

## Bria RMBG 2.0 in other agents

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

## More VS Code guides

- [Bria Product Shot](https://spiral.ai/integrations/vscode/bria-product-shot)
- [Bria Reimagine](https://spiral.ai/integrations/vscode/bria-reimagine)
- [Bria Product Holding](https://spiral.ai/integrations/vscode/bria-product-holding)
- [Bria Replace Background V2](https://spiral.ai/integrations/vscode/bria-replace-background-v2)
- [Bria Product Dimensions](https://spiral.ai/integrations/vscode/bria-product-dimensions)
- [Bria Text-to-Image Base](https://spiral.ai/integrations/vscode/bria-text-to-image-base)

## Questions about Bria RMBG 2.0 in VS Code

**Can VS Code use Bria RMBG 2.0?**

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

**How much does Bria RMBG 2.0 cost in VS Code?**

$0.03900078 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 Bria RMBG 2.0 in VS Code?**

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

**How long does it take to set up Bria RMBG 2.0 in VS Code?**

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

**Does VS Code wait while Bria RMBG 2.0 runs?**

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

**What is Bria RMBG 2.0 useful for?**

Use it to isolate subjects from existing images for product listings, advertising layouts, stock-image compositions, and design assets.

**Does Bria RMBG 2.0 repaint the subject?**

Background removal changes transparency while preserving the original image pixels. Treat the result as a cutout to compose elsewhere.

**What resolution does the cutout have?**

Bria documents output at the original image resolution. Background removal does not add image detail or enlarge the source.

**How should I describe what to keep?**

Name the objects that belong in the cutout, such as 'the person with the mat' or 'only the chair.' Describe selection changes rather than requesting a new scene.

**Which details should I inspect before using a cutout?**

Inspect loose hair, fur, glass, and fine edges. Bria reports cleaner results on these details with RMBG 3.0, so review them carefully in RMBG 2.0 output.

