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

Claude Code · ImageReleased 2024-12-19

How to Use 851 Labs Background Remover in Claude Code

851 Labs Background Remover turns product photos, portraits, and other images into reusable cutouts. Its soft alpha output keeps gradual edge transitions, while hard segmentation produces a binary cutout.

Prompts to try with 851 Labs Background Remover in Claude Code

Copy an example into Claude Code, or ask in your own words.

Use 851 Labs Background Remover on the product photos in this project's assets directory. Save transparent PNG cutouts separately and preserve the originals.

851 Labs Background RemoverClaude Code
Try asking
  • Use 851 Labs Background Remover on the team portraits in this project with soft alpha output. Build a review page showing each original beside its cutout.

  • Use 851 Labs Background Remover on the product image used by our landing page. Save an RGBA PNG and update the page to use the cutout.

  • Use 851 Labs Background Remover to create overlay previews of the catalog images in this repository. Add the previews to a local review page before changing any production assets.

  • Use 851 Labs Background Remover on one sample product photo from this project. Compare soft alpha output with a hard segmentation threshold of 0.5 and show both results.

How to set up 851 Labs Background Remover in Claude Code

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

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run 851 Labs Background Remover

    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": "replicate",
        "model": "851-labs/background-remover",
        "input": {
          "image": "<image>"
        }
      }'

Then paste one of the prompts above: Claude Code finds 851 Labs Background Remover on Spiral, shows the price and runs it.

851 Labs Background Remover providers and prices

Spiral runs 851 Labs Background Remover through Replicate. Open a card for today's price, with every fee included.

ReplicateImage
851 Labs Background Remover
851-labs/background-remover

Settings you can ask for

851 Labs Background Remover works from your image. Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Reverseon or offoff

If True, remove the foreground instead of the background.

Thresholda number0

Threshold for hard segmentation (0.0-1.0). If 0.0, uses soft alpha.

Every API field of 851 Labs Background Remover is on its tool page: open its card above.

What can you do with 851 Labs Background Remover in Claude Code?

Prepare transparent product and portrait assets for the project you are building. Your coding agent can save cutouts alongside the original images and create a page for reviewing their edges.

Product listing cutouts

Remove the photographed backdrop from product shots and save transparent assets for listing layouts.

Profile photo preparation

Isolate a person from a portrait before placing the cutout into a profile or team layout.

Promotional graphics

Extract a product from an existing photo for use in banners, announcements, and promotional compositions.

Presentation assets

Turn photographed objects into transparent cutouts that can sit on slide backgrounds.

Catalog image preparation

Process catalog photos individually into reusable cutouts, then review the results before assembling the catalog.

Website image assets

Prepare transparent product or portrait images for page compositions that use their own backgrounds.

Cutout quality review

Create overlay previews to inspect the selected foreground and boundary before approving image assets.

Questions about 851 Labs Background Remover in Claude Code

Can Claude Code use 851 Labs Background Remover?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run 851 Labs Background Remover like any built-in tool.

How much does 851 Labs Background Remover cost in Claude Code?

$0.000293 per second of processing. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

Do I need a Replicate account to use 851 Labs Background Remover in Claude Code?

No. Spiral runs 851 Labs Background Remover on its own Replicate account. You sign in to Spiral once and never paste a key.

How long does it take to set up 851 Labs Background Remover in Claude Code?

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

Does Claude Code wait while 851 Labs Background Remover runs?

851 Labs Background Remover runs in the background. Claude Code starts the run, checks on it and gives you the image when it's ready.

What is 851 Labs Background Remover useful for?

Use it to isolate products, people, or other foreground subjects from existing images. Documented uses include product listings, profile photos, and marketing assets.

How should I handle hair and other soft edges?

Start with soft alpha output so edge pixels can remain partly transparent. Hard segmentation makes a binary decision at each pixel, so compare it carefully before using it on fine detail.

Can I tell it exactly which object to keep?

It detects visually prominent foreground objects automatically. As a practical consequence, review images with several competing subjects instead of assuming it will isolate the particular object you intended.

What should I save for a transparent cutout?

Use RGBA output saved as PNG. The alpha channel carries the cutout's transparency, including gradual edge transitions.

Does background removal increase image resolution?

Treat it as a cutout operation. The underlying package resizes the predicted mask to the input dimensions rather than generating a larger, more detailed image.

Get started

Start using 851 Labs Background Remover in Claude Code

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

Paste this into Claude Code:

Set up Claude Code

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