image-remove-background
24
总安装量
15
周安装量
#15364
全站排名
安装命令
npx skills add https://github.com/agntswrm/agent-media --skill image-remove-background
Agent 安装分布
claude-code
14
opencode
12
codex
11
gemini-cli
10
antigravity
10
windsurf
10
Skill 文档
Image Remove Background
Removes the background from an image, leaving only the foreground subject with transparency.
Command
agent-media image remove-background --in <path> [options]
Inputs
| Option | Required | Description |
|---|---|---|
--in |
Yes | Input file path or URL |
--out |
No | Output path, filename or directory (default: ./) |
--provider |
No | Provider to use (local, fal, replicate) |
Output
Returns a JSON object with the processed image path:
{
"ok": true,
"media_type": "image",
"action": "remove-background",
"provider": "fal",
"output_path": "nobg_123_abc.png",
"mime": "image/png",
"bytes": 34567
}
Examples
Remove background from local file:
agent-media image remove-background --in portrait.jpg
Remove background using specific provider:
agent-media image remove-background --in portrait.jpg --provider replicate
Providers
local
Runs locally on CPU using Transformers.js, no API key required.
- Uses
Xenova/modnetmodel - Models downloaded on first use (~25MB)
- You may see a
mutex lock failederror â ignore it, the output is correct if"ok": true
agent-media image remove-background --in portrait.jpg --provider local
fal
- Requires
FAL_API_KEY - Uses
birefnet/v2model
replicate
- Requires
REPLICATE_API_TOKEN - Uses
birefnetmodel