Remove image backgrounds using the remove.bg API with API-key auth and transparent PNG output. Use when high-quality cutouts are needed and cloud processing is acceptable.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add lxyeternal/MalSkillBench --skill removebg-api --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Removebg Api?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/lxyeternal-removebg-api)More formats (shields.io, HTML) on the badges page.
---
name: removebg-api
description: Remove image backgrounds using the remove.bg API with API-key auth and transparent PNG output. Use when high-quality cutouts are needed and cloud processing is acceptable.
metadata:
{
"openclaw": {
"requires": { "bins": ["uv", "python3"], "env": ["REMOVE_BG_API_KEY"] },
"primaryEnv": "REMOVE_BG_API_KEY"
}
}
---
# 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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!