How to Use Bria Extract Object in Muse Code
Bria Extract Object pulls a named object from an image into a transparent PNG for product listings, ads, and composites. It targets the object you describe, with optional tight cropping and edge refinement.
Prompts to try with Bria Extract Object in Muse Code
Copy an example into Muse Code, or ask in your own words.
Use Bria Extract Object on assets/catalog/desk.jpg to extract “the yellow hammer.” Crop tightly and save the transparent PNG beside the source.
Use Bria Extract Object on public/images/room.jpg to extract “the green chair on the left.” Keep the original canvas dimensions and preview the cutout over the source.
Use Bria Extract Object on assets/promo/sign.jpg to extract “the red sale sign.” Leave background removal refinement off and show an enlarged preview of the lettering.
Use Bria Extract Object on assets/products/mug.jpg to extract “the blue ceramic mug.” Compare edge refinement on and off, with tight cropping, and make a review sheet.
Use Bria Extract Object on each photo in assets/new-products/, using the object descriptions in products.csv. Save tightly cropped PNGs and flag results that still show the full scene.
How to set up Bria Extract Object in Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse 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 Extract Object
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/extract-object", "input": { "image_url": "https://bria-datasets.s3.amazonaws.com/object-extraction/tools_construction_flatlay.jpg" } }'
Then paste one of the prompts above: Muse Code finds Bria Extract Object on Spiral, shows the price and runs it.
Bria Extract Object providers and prices
Spiral runs Bria Extract Object through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Bria Extract Object works from your image URL and prompt. Ask Muse Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Autocrop | on or off | off | Tighten the output canvas to the extracted object. |
| Remove background | on or off | off | When True, refine the cutout alpha with background removal (RMBG). When False (default), use the SAM segmentation mask as the cutout's alpha -- faster, with no salient-object matting (helpful when RMBG over-trims text, logos, or graphics). |
Every API field of Extract Object is on its tool page: open its card above.
What can you do with Bria Extract Object in Muse Code?
Turn project images into transparent product assets and separate visual layers with Bria Extract Object. Your coding agent can save the cutouts, preserve canvas placement when needed, and prepare previews for review.
Product listing cutouts
Extract a named product from a lifestyle photo, then crop tightly for a standalone listing asset.
Individual items from flat lays
Turn a multi-product flat lay into separate assets by requesting one clearly described item at a time.
Ad composition assets
Isolate a product as a transparent PNG for placement in a separately designed banner or ad.
A person from a group photo
Describe one person by a visible feature and position to prepare a cutout for a profile graphic or presentation.
Layers with original placement
Keep automatic cropping off when extracting an object that needs to retain its position on the original canvas.
Graphic assets from existing artwork
Extract a named graphic with edge refinement off, then inspect small lettering and logo details before reuse.
Reusable scene props
Pull a named chair, lamp, or other visible object from a scene to build a library of transparent design assets.
More on Bria Extract Object and Muse Code
Overview
Bria Extract Object in other agents
More Muse Code guides
Questions about Bria Extract Object in Muse Code
Can Muse Code use Bria Extract Object?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Bria Extract Object like any built-in tool.
How much does Bria Extract Object cost in Muse Code?
$0.026 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.
Do I need a fal account to use Bria Extract Object in Muse Code?
No. Spiral runs Bria Extract Object 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 Extract Object in Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while Bria Extract Object runs?
Bria Extract Object runs in the background. Muse Code starts the run, checks on it and gives you the image when it's ready.
How is Bria Extract Object different from background removal?
Bria Extract Object selects the object you name, including something outside the obvious foreground. Use it when you want one particular item from a scene.
What does Bria Extract Object return?
It returns an RGBA PNG cutout with a transparent background. You can use the cutout as an asset in a separate design or compositing step.
How do I select one of several similar objects?
Name the object and add a visible distinction, such as its color or position. Try “the yellow hammer” or “the sneaker on the left” instead of a broad description.
Does the output keep the original image dimensions?
With automatic cropping off, the cutout stays on a canvas matching the input dimensions. Enable automatic cropping when you want the canvas tightened around the object.
When should I use background removal refinement?
Try it when a photographic subject needs softer matte edges. Leave it off for text, logos, or graphics if refinement trims away detail you need.
Start using Bria Extract Object in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


