# Send an image URL and get back the subject on a transparent PNG

POST the public URL of an image to creative.remove_background and get back a link to a transparent PNG of the subject, up to 1024 pixels on the long side. It takes one input and has no settings to tune, which suits product shots, ads and thumbnails in a script or an agent. It runs through fal; RouterGrowth is independent of fal.

HTML page: https://www.routergrowth.com/tools/ai-creative/background-removal-api
Part of: [AI creative tools](https://www.routergrowth.com/tools/ai-creative.md)

## The call

[`creative.remove_background`](https://www.routergrowth.com/catalog/creative.remove_background): Cut a subject out of its background: a transparent PNG for product shots, ads and thumbnails.

Price on this network: $0.0315 per image. The exact quote is shown before every run.

## What a real run returned

Run on 2026-11-02: 1 records in 5.3 s for $0.036. Personal fields are masked. The input was an image generated for this page, a generic mug from creative.image (the sample shows a placeholder URL); a 1024 by 1024 PNG came back in 5.3 seconds, so size and type are confirmed, the cut itself is for you to judge.

| model | width | height | content_type |
|---|---|---|---|
| fal-ai/bria/background/remove | 1024 | 1024 | image/png |

## How to do it

1. **Host the image.** The input is a public URL, so the file has to be reachable from the web. A local path will not work.
2. **Call the API.** POST to /v1/run with capability creative.remove_background and image_url.
3. **Save the PNG.** Read image.url and store the file. The URL is temporary.
4. **Check the edges.** Look at hair, glass and shadows in your own images before you automate a batch.

## Ask it like this

- Remove the background from this product photo and give me the transparent PNG. (`creative.remove_background`)
- Make a product shot of a ceramic mug, then cut out the background. (`creative.image`, `creative.remove_background`)

## Connect

MCP server: `https://api.routergrowth.com/mcp`

```bash
claude mcp add --transport http routergrowth https://api.routergrowth.com/mcp
```

```bash
npm install -g routergrowth && routergrowth setup
routergrowth run -c creative.remove_background -i '{"image_url": "https://example.com/travel-mug.jpg"}'
```

```bash
curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -d '{"capability": "creative.remove_background", "input": {"image_url": "https://example.com/travel-mug.jpg"}}'
```

## Worth knowing

- **Use images you may edit.** The call does not check who owns the image. Stick to your own photos or images you generated.
- **Size has a ceiling.** The output is up to 1024 pixels on the long side. A larger original comes back smaller.
- **Nothing else changes.** It cuts the subject out. It does not add a new background, shadow or retouching.

## Questions

### Can I upload a file directly?

No. The only input is a public URL.

### What does it cost per image?

A flat price per image, shown in the price block on this page, whatever the image contains.

### Do I need an account with the model's maker?

No. A RouterGrowth key is enough.

### Can I run a batch?

Each image is one run, and a script or an agent can loop over a list of URLs.

## Related

- [Generate a Flux image from a text prompt without a fal account](https://www.routergrowth.com/tools/ai-creative/flux-api.md)
- [Turn a short script into an MP3 with one call and one key](https://www.routergrowth.com/tools/ai-creative/text-to-speech-api.md)
- [Generate a voiceover from a Python script, with word timings for captions](https://www.routergrowth.com/tools/ai-creative/text-to-speech-api-python.md)
- [Generate an image from a prompt, and switch models with one input](https://www.routergrowth.com/tools/ai-creative/ai-image-generation-api.md)
