How to Use Bria GenFill v2 in VS Code
Bria GenFill v2 adds objects to selected areas of an existing image, such as a vase on a table or a prop beside a product. It favors blob-shaped masks and keeps the original resolution and pixels outside the mask.
Prompts to try with Bria GenFill v2 in VS Code
Copy an example into VS Code, or ask in your own words.
Use Bria GenFill v2 on assets/desk.jpg with assets/desk-mask.png. Add a small brushed-steel lamp resting on the desk with a soft contact shadow. Save a new image and show it in the existing page.
Use Bria GenFill v2 with the product photo and matching mask in public/images. Add a shallow ceramic dish beside the bottle, scaled to its base. Keep the bottle outside the mask and save the result separately.
Use Bria GenFill v2 on the dining-room photo and its mask in this project. Add a low glass vase on the selected tabletop area. Describe its size, surface contact, and shadow, then save a preview.
Use Bria GenFill v2 with the campaign photo and prepared mask in assets. Add a small orange pumpkin beside the display. Save the edited asset and a record of the instruction and seed.
Use Bria GenFill v2 on the article photo and matching mask in this repository. Add a closed linen notebook on the selected desk area. Keep the original asset and show both images for review.
How to set up Bria GenFill v2 in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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"}' - 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
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Bria GenFill v2
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": "bria/genfill/v2", "input": { "image_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/Fibo_edit/flower.png", "mask_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/Fibo_edit/flower_input_mask.png", "instruction": "A beautiful colorful butterfly" } }'
Then paste one of the prompts above: VS Code finds Bria GenFill v2 on Spiral, shows the price and runs it.
Bria GenFill v2 providers and prices
Spiral runs Bria GenFill v2 through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Bria GenFill v2 works from your image URL and mask URL. Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | 5555 | Random seed for reproducibility. |
| Steps number of | 20 to 50 | 30 | Number of inference steps. |
Every API field of Genfill v2 · Image to Image is on its tool page: open its card above.
What can you do with Bria GenFill v2 in VS Code?
Add targeted objects to image assets already used in your project. Your coding agent can pair each source with its mask and save the edited image for review in the page.
Product photo props
Add a ceramic dish or wooden tray beside a product. Keep the product outside the mask and describe the prop's scale and contact shadow.
Interior styling concepts
Explore a vase, table lamp, or decorative bowl in a room photo by selecting the area where the object should appear.
Food photo additions
Add a lemon, a small bowl of berries, or another ingredient beside a plated dish while leaving the dish outside the mask.
Seasonal ad concepts
Add a pumpkin, wrapped gift, or other seasonal prop to a selected area of an existing campaign photo.
Editorial still-life edits
Place a notebook, pencil, or cup into a selected tabletop area for an article illustration.
Website image refreshes
Add a relevant object to an existing website photo. Keep the subject outside the mask and retain the source image's pixel dimensions.
More on Bria GenFill v2 and VS Code
Overview
Bria GenFill v2 in other agents
Questions about Bria GenFill v2 in VS Code
Can VS Code use Bria GenFill v2?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Bria GenFill v2 like any built-in tool.
How much does Bria GenFill v2 cost in VS Code?
$0.052 per 1,048,576 megapixels. Minimum 1,048,576 pixels. 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 GenFill v2 in VS Code?
No. Spiral runs Bria GenFill v2 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 GenFill v2 in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Bria GenFill v2 runs?
Bria GenFill v2 runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.
What is Bria GenFill v2 best suited for?
Adding an object to a selected area of an existing image. Practical examples include a lamp on a desk, fruit beside a plate, or a decorative prop beside a product.
What mask shape works best?
Bria GenFill v2 is optimized for blob-shaped masks. Prefer a rounded selection around the intended object area when planning an edit.
Does Bria GenFill v2 change the rest of the image?
Bria documents that areas outside the mask remain unchanged. Keep anything you need to preserve outside the selected region.
Does Bria GenFill v2 increase image resolution?
Generative Fill returns the image at its original resolution. Treat it as a content edit; use a separate upscaling step when you need larger pixel dimensions.
How should I describe the object I want?
Name the object, its material, and its size relative to nearby objects. Describe how it sits on the surface and request a contact shadow.
Start using Bria GenFill v2 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 https://spiral.ai/SKILL.md


