[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Bria VRMBG 3.0](https://spiral.ai/integrations/codex/bria-vrmbg-3-0)

# How to Use Bria VRMBG 3.0 in Codex

Bria VRMBG 3.0 removes backgrounds from presenter, podcast, and product footage for reuse in edits and composites. Compared with Bria VRMBG 2.0, it improves frame accuracy and keeps subject edges more consistent across frames.

|  |  |
| --- | --- |
| Model | Bria VRMBG 3.0 |
| Available through | fal |
| Category | Video |
| Price | Up to $3.90 per run at the default inputs for 60 seconds of input. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria VRMBG 3.0 in Codex

- Use Bria VRMBG 3.0 to remove the background from public/videos/presenter.mp4. Export a transparent WebM with VP9, retain the audio, and save it beside the source for the tutorial page.
- Use Bria VRMBG 3.0 on the product demo clips in assets/video, each no longer than 60 seconds. Give them a white background and preserve their original framing for the catalog.
- Use Bria VRMBG 3.0 to extract the speaker from assets/podcast-excerpt.mp4, a 30-second clip. Save a transparent ProRes MOV for the editor and keep the source audio.
- Use Bria VRMBG 3.0 on public/videos/product-loop.mp4. Export a transparent WebM with VP9 and crop to one fixed frame containing the product throughout the clip.
- Use Bria VRMBG 3.0 to prepare a transparent version of assets/course-intro.mp4, which is 45 seconds long. Keep the original framing and add a preview over the lesson page's background.

## How to set up Bria VRMBG 3.0 in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 VRMBG 3.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": "bria/video/background-removal/v3",
    "input": {
      "video_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/rmbg_tests/videos/video.mp4"
    }
  }'
```

Then paste one of the prompts above: Codex finds Bria VRMBG 3.0 on Spiral, shows the price and runs it.

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

## Bria VRMBG 3.0 tools and prices

- [Bria's VRMBG 3.0 · Video Remove Background ](https://spiral.ai/tools/fal/bria/video/background-removal/v3) (fal): $0.065 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| output_container_and_codec | mp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9, gif | webm_vp9 | Output container and codec. Options: mp4_h265, mp4_h264, webm_vp9, mov_h265, mov_proresks, mkv_h265, mkv_h264, mkv_vp9, gif. |
| preserve_audio |  | true | If true, audio will be preserved in the output video. |
| background_color | Transparent, Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, Orange | Black | Background color. Options: Transparent, Black, White, Gray, Red, Green, Blue, Yellow, Cyan, Magenta, Orange. |
| auto_zoom |  | false | If true, crop the output to the smallest rectangle the subject stays inside for the whole video. |

## What can you do with Bria VRMBG 3.0 in Codex?

Prepare presenter and product cutouts for the videos used in your project. Your coding agent can organize the exports and add them to an existing page or editing workflow.

### Presenter overlays for tutorials

Extract a presenter from a short recording, then place the transparent video over a screen recording or slide deck.

### Podcast clips for social posts

Remove the recording-room background from a podcast excerpt so an editor can reuse the speaker over branded graphics.

### Product videos for catalog pages

Give short product demonstrations a consistent solid background, or export transparent footage for a designed product page.

### Reusable advertising footage

Extract a person or product from an existing commercial clip for placement in several campaign layouts during editing.

### Foreground layers for film composites

Turn a short cinematic shot into a foreground layer for compositing. Review the moving edges against the intended replacement background.

### Consistent course presenter clips

Remove different room backgrounds from short instructor recordings before assembling lessons with a consistent visual layout.

## Overview

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

## Bria VRMBG 3.0 in other agents

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

## More Codex guides

- [Boreal](https://spiral.ai/integrations/codex/boreal)
- [Bria Video Background Removal](https://spiral.ai/integrations/codex/bria-video-background-removal)
- [Auto Subtitle](https://spiral.ai/integrations/codex/auto-subtitle)
- [Bria Video Eraser](https://spiral.ai/integrations/codex/bria-video-eraser)
- [Yahoo NBA player news](https://spiral.ai/integrations/codex/yahoo-nba-player-news)
- [Bria Video Eraser Keypoints](https://spiral.ai/integrations/codex/bria-video-eraser-keypoints)

## Questions about Bria VRMBG 3.0 in Codex

**Can Codex use Bria VRMBG 3.0?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Bria VRMBG 3.0 like any built-in tool.

**How much does Bria VRMBG 3.0 cost in Codex?**

Up to $3.90 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need a fal account to use Bria VRMBG 3.0 in Codex?**

No. Spiral runs Bria VRMBG 3.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 VRMBG 3.0 in Codex?**

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

**Does Codex wait while Bria VRMBG 3.0 runs?**

Bria VRMBG 3.0 runs in the background. Codex starts the run, checks on it and gives you the video when it's ready.

**What is Bria VRMBG 3.0 useful for?**

Use it to extract subjects from presenter recordings, podcasts, product footage, commercials, and film clips. The cutout can then become a layer in your video edit.

**What changed from Bria VRMBG 2.0?**

Bria reports better accuracy within individual frames and more consistent results across frames. That makes moving subject boundaries a useful place to compare results.

**How long can a video be, and what resolution comes back?**

Bria documents clips up to 60 seconds and input dimensions up to 16000 by 16000 pixels. Output dimensions follow the source unless subject cropping is enabled.

**Why did my transparent export get a black background?**

The export needs a codec that preserves transparency. Use WebM with VP9, MOV with ProRes, or MKV with VP9; Bria documents a black-background fallback for incompatible presets.

**Does automatic cropping follow the subject around?**

It chooses one fixed rectangle that contains the subject throughout the clip. Leave cropping off when you need the original framing for a later composite.

