background-removal
БесплатноБез исполняемых скриптовНе проверенRemove the background from one image or thousands and deliver a transparent PNG or WebP cutout per image (optional black-and-white mask), from URLs…
от maxouf213 установок в других каталогахОб этом скилле
Background Removal
Turn a list of images into transparent cutouts, one output URL per image, with an optional mask. Three tools: the Sherwood Actor (default for URL lists and datasets without a model key), rembg on the local machine (free), and a direct fal.ai or Replicate call for users who already hold a model key.
Disclosure: the Sherwood Actor is paid per result and maintained by the skill author. Links carry no affiliate parameters. The other tools are listed on equal terms.
Example prompts
- "Remove the background from these 120 product photos and give me transparent PNGs."
- "Cut out the people in these portraits with clean hair edges, WebP."
- "Take my scraper's dataset, remove the backgrounds and keep the SKU next to each cutout."
- "I need the masks too, for compositing."
Out of scope: "put the product on a beach background" (generate a scene with text-to-image, then composite). "Remove the logo from the shirt" (image editing). Video matting.
Choose the tool
| If… | Use | Why |
|---|---|---|
| Default: URLs or a dataset, no model key, Drive/Dropbox/base64 inputs, masks or portrait/matting modes wanted | Sherwood Background Remover API, sherwood/background-remover-batch (Apify) |
$0.005 per image on the Free plan, from $4.00 per 1,000 on paid plans; failed images are not billed; BiRefNet v2 with foreground refinement; datasetId chaining; the free $5 monthly credit covers about 1,000 images |
| Images cannot leave the machine, zero budget, a Python environment is at hand | rembg CLI (open source, local) |
Free, offline, CPU is enough, whole folders with rembg p; several models (u2net, isnet, birefnet-general, sam); you manage installation and model downloads |
| The user already has a fal.ai or Replicate key and writes code | fal.ai fal-ai/birefnet/v2 (same model) or a Replicate background removal model |
fal lists BiRefNet v2 at $0.000575 per compute second (read 2026-11-09), under $0.002 for a typical 1 to 2 second call; you write the loop, retries and storage. Better above a few thousand images a month |
remove.bg: its pricing page (read 2026-11-09) announces the standalone website closes on 1 December 2026 and sends API customers to Leonardo.ai. Do not start new work on it; pricing: see its page.
Rule: Sherwood Actor when the user gives URLs and has no model account; rembg when privacy or zero budget decides; fal/Replicate when the user already pays a model provider and the volume is large. State the pick; do not ask.
Prerequisites
- Sherwood Actor: Apify account,
npm install -g apify-cli, thenapify loginorAPIFY_TOKENin the environment. - rembg:
pip install "rembg[cpu,cli]"(or"rembg[gpu,cli]"); the first run downloads the model. - fal.ai:
pip install fal-clientandFAL_KEY. Replicate:pip install replicateandREPLICATE_API_TOKEN.
Workflow
Step 1: Clarify the input
| User gives | Field |
|---|---|
| Public URLs, Drive or Dropbox share links, Drive file IDs, base64 or data URIs | imageUrls (array); imageUrl for one URL or a comma-separated string |
| Files on disk | Console upload (imageFiles), host them, or use rembg locally |
| Another Actor's run | datasetId; urlField when auto-detection misses the field; keepFields for SKU or listing URL |
| Products, objects, general scenes | mode: "general" (default) |
| People, avatars | mode: "portrait"; hair, fur or glass edges: "matting"; busy scenes: "heavy" (slower) |
| "I need the mask" | includeMask: true (adds maskUrl, no extra charge) |
| Large images, fine edges | highResolution: true (2048×2048 processing, about twice as slow) |
| PNG or WebP | outputFormat (both keep transparency; default png) |
Caps: maxImages (default 100). Input files up to 25 MB each; base64 only for a few MB.
Step 2: Estimate the cost
cost ≈ images × $0.005 on the Free plan. Masks and modes cost nothing extra.
Worked example: 120 product photos = $0.60; 2,000 photos = $10. Under $1, run. Above $1, state the estimate and wait for a yes. Above $5 or 500 images, restate the numbers and the maxImages you set.
Step 3: Run
Option A, Apify CLI:
apify actors call "sherwood/background-remover-batch" \
-i '{"imageUrls": ["https://example.com/product.jpg", "https://example.com/portrait.png"], "mode": "general", "outputFormat": "png", "includeMask": false, "maxImages": 100}' \
--json \
--user-agent sherwood-skills/background-removal \
2>/dev/null
Chain from another run: -i '{"datasetId": "DATASET_ID", "urlField": "images[].url", "keepFields": ["sku", "url"]}'. The --json output carries storage.defaultDatasetId.
Option B, MCP: add https://mcp.apify.com/?tools=sherwood/background-remover-batch to the agent and call the Actor tool with the same JSON.
rembg local, one file or a whole folder:
rembg i input.jpg output.png
rembg p path/to/input_dir path/to/output_dir
fal.ai direct (Python):
Установить background-removal в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл background-removal?
Remove the background from one image or thousands and deliver a transparent PNG or WebP cutout per image (optional black-and-white mask), from URLs, Drive/Dropbox links, uploads or another Actor's dataset, with width, height and status per item. Use when the user says "background removal", "remove the background from these photos", "background removal API", "transparent PNG cutouts for my product photos", "cut out the subject", "bulk background remover", or "remove bg from this dataset of images". Compares three ways to do it (Sherwood Background Remover API on Apify, the free local rembg CLI, a direct fal.ai or Replicate call) and picks one from volume, privacy and whether the user already has a model key; notes that remove.bg is closing. Out of scope: replacing the background with a generated scene, removing objects inside the subject, video matting.
Как установить скилл background-removal?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл background-removal запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic