removebg-api

Web & Frontend Development
v0.1.2
Benign

Remove image backgrounds using the remove.bg API with API-key auth and transparent PNG output.

469 downloads469 installsby @rolandkakonyi

Setup & Installation

Install command

clawhub install rolandkakonyi/removebg-api

If the CLI is not installed:

Install command

npx clawhub@latest install rolandkakonyi/removebg-api

Or install with OpenClaw CLI:

Install command

openclaw skills install rolandkakonyi/removebg-api

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/rolandkakonyi/removebg-api

What This Skill Does

Removes image backgrounds using the remove.bg API, outputting transparent PNG files. Accepts JPG, PNG, WebP, and JPEG inputs with size and format options.

remove.bg specializes in subject detection and produces cleaner cutouts than general-purpose image editing or local models for most common subjects.

When to Use It

  • Removing product photo backgrounds for e-commerce listings
  • Isolating people from photos for profile pictures
  • Creating transparent assets for slide decks or presentations
  • Preparing images for compositing in design tools
  • Batch processing images to extract subjects from busy backgrounds
View original SKILL.md file
# removebg-api

Use remove.bg for high-quality background removal.

## API key setup

1. Create/sign in at `https://www.remove.bg/dashboard#api-key`
2. Create an API key
3. Configure `REMOVE_BG_API_KEY` in OpenClaw config (`openclaw.json`) so it is present in runtime environment.

## Important

- Skill metadata (`requires.env`) declares that `REMOVE_BG_API_KEY` is required.
- Metadata does **not** auto-load shell env files.
- Preferred: provide key via OpenClaw config-managed environment.

## Usage (preferred: uv)

Run from the skill directory:

```bash
uv run scripts/removebg_api.py --input /path/in.jpg --output /path/out.png
```

Options:

- `--size auto|preview|full|4k` (default: `auto`)
- `--format png|jpg|zip` (default: `png`)
Security defaults:

- `--input` must be a real image file *inside the OpenClaw workspace*.
- Allowed input types: `.png`, `.jpg`, `.jpeg`, `.webp` (extension + magic-byte validation).
- `--output` must be under `outputs/removebg-api/` inside the workspace.
- Large/abusive files are rejected (size + dimension limits).
- This prevents arbitrary file read/write outside normal skill boundaries.

Example:

```bash
uv run scripts/removebg_api.py --input ./input.jpg --output ./output.png --size auto --format png
```

## Fallback (without uv)

```bash
python3 scripts/removebg_api.py --input ./input.jpg --output ./output.png
```

## Output

- Writes result file to `--output`
- Prints `MEDIA:` line for chat workflows

## Notes

- API usage may consume free credits / paid quota.
- No absolute-path requirement for skill docs; use local paths in examples.

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Removing product photo backgrounds for e-commerce listings

AGENT
  1. 1Removing product photo backgrounds for e-commerce listings
  2. 2Isolating people from photos for profile pictures
  3. 3Creating transparent assets for slide decks or presentations
  4. 4Preparing images for compositing in design tools
  5. 5Batch processing images to extract subjects from busy backgrounds
OUTPUT
Remove image backgrounds using the remove.bg API with API-key auth and transparent PNG output.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 25, 2026