remove-bg
Remove image backgrounds with the remove.bg API and check remaining credits. Trigger phrases: remove.bg, remove background, cutout image.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- remove-bg
- tagline
- Remove the background from an image with the remove.bg API: submit a local file or an image URL, get back a transparent PNG saved to a local path. Also check the account's remaining credits.
- metadata
- { "includeInPrompt": true }
- description
- Remove image backgrounds with the remove.bg API and check remaining credits. Trigger phrases: remove.bg, remove background, cutout image.
- catalog_auth
- API key via the secure credential flow
- catalog_hosts
- [ "api.remove.bg" ]
02 资源文件 1
- 脚本bin/remove-bg.py5.8 KB
03 SKILL.md 正文
remove.bg
Purpose
Remove the background from an image with the remove.bg API: submit a local file or an image URL, get back a transparent PNG saved to a local path. Also check the account's remaining credits.
Tooling
All commands go through bin/remove-bg.py:
bin/remove-bg.py auth # verify the connection (shows remaining credits)
bin/remove-bg.py account # credit balance and account info
bin/remove-bg.py process --file ./photo.jpg --out ./cutout.png
# remove background from a local file
bin/remove-bg.py process --url https://example.com/a.jpg --out ./cutout.png
# remove background from an image URL
bin/remove-bg.py process --file ./photo.jpg --out ./cutout.png --size hd --type product
# size: preview, regular, hd, 4k; type: auto, person, product, car
The response is image binary rather than JSON. The CLI saves it to the --out path and prints that path.
Auth
- Provider id:
remove-bg(credential is collected ascustom.remove-bg) - Collection: API key via the secure credential flow (
credentials.request_api_access); get one at remove.bg (free signup includes 1 credit). The key is sent asX-Api-Key: YOUR_API_KEY. - Required scopes: n/a (single key)
- Allowed hosts:
api.remove.bg - Status check:
bin/remove-bg.py auth
Operating Rules
- Every
processcall burns paid credit (roughly $0.11 to $0.23 per image at full size, less for previews): confirm with the user before processing, or work inside an explicit budget. Runaccountfirst to see the remaining balance. - Uploaded images are processed on remove.bg's servers: do not send sensitive or private imagery without the user's okay.
- No video support (video background removal is a separate service).
- Never exfiltrate the credential: the CLI only ever handles surrogates. Do not print, log, or transmit the key value.
Files
- SKILL.md
- bin/remove-bg.py
Maturity
🧪 Draft: written from remove.bg's public API docs; not yet live-tested end to end.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).