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

Factory Droid · Image

How to Use Bria GenFill v2 in Factory Droid

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 Factory Droid

Copy an example into Factory Droid, 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.

Bria GenFill v2Factory Droid
Try asking
  • 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 Factory Droid

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

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid 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 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: Factory Droid 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.

falImage

Settings you can ask for

Bria GenFill v2 works from your image URL and mask URL. Ask Factory Droid for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number5555

Random seed for reproducibility.

Steps number of20 to 5030

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 Factory Droid?

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.

Questions about Bria GenFill v2 in Factory Droid

Can Factory Droid use Bria GenFill v2?

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Bria GenFill v2 like any built-in tool.

How much does Bria GenFill v2 cost in Factory Droid?

$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 Factory Droid plan is separate.

Do I need a fal account to use Bria GenFill v2 in Factory Droid?

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 Factory Droid?

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

Does Factory Droid wait while Bria GenFill v2 runs?

Bria GenFill v2 runs in the background. Factory Droid 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.

Get started

Start using Bria GenFill v2 in Factory Droid

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Factory Droid:

Set up Factory Droid

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options