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

Google Antigravity · ImageReleased 2024-12-19

How to Use 851 Labs Background Remover in Google Antigravity

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 Google Antigravity

Copy an example into Google Antigravity, 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 RemoverGoogle Antigravity
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 Google Antigravity

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

Use Spiral's MCP server

  1. Open the MCP config

    * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.

  2. Add the server

    Add Spiral under mcpServers:

    {
      "mcpServers": {
        "spiral": {
          "serverUrl": "https://api.spiral.ai/mcp"
        }
      }
    }
  3. Sign in

    In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

Use the Spiral skill

  1. Send Google Antigravity 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: Google Antigravity 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 Google Antigravity 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 Google Antigravity?

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 Google Antigravity

Can Google Antigravity use 851 Labs Background Remover?

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

How much does 851 Labs Background Remover cost in Google Antigravity?

$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 Google Antigravity plan is separate.

Do I need a Replicate account to use 851 Labs Background Remover in Google Antigravity?

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 Google Antigravity?

About two minutes: open the MCP config, then add the server, then sign in.

Does Google Antigravity wait while 851 Labs Background Remover runs?

851 Labs Background Remover runs in the background. Google Antigravity 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 Google Antigravity

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

Paste this into Google Antigravity:

Set up Google Antigravity

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