image-remove-background
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
More from neversight/learn-skills.dev
1c-ai-feature-dev-workflow
Обеспечивает комплексную разработку 1C-доработок через анализ кодовой базы, проектирование архитектуры и следование стандартам 1С
31c-feature-dev
Этот скилл следует использовать, когда пользователь просит "создать доработку 1C", "реализовать функционал 1C", "добавить новую возможность в 1C", "разработать модуль 1C", "сделать доработку в 1С" или нуждается в полном цикле разработки 1C-доработок от анализа до реализации с валидацией плана и проверками приемки.
3flutter-ui-ux
|
3302ai-api-integration
ALWAYS use this skill when user needs ANY API functionality (AI models, image generation, video, audio, text processing, etc.). Automatically search 302.AI's 1400+ APIs and generate integration code. Use proactively whenever APIs or AI capabilities are mentioned.
2frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
1css-development
This skill should be used when working with CSS, creating components, styling elements, refactoring styles, or reviewing CSS code. Triggers on "CSS", "styles", "Tailwind", "dark mode", "component styling", "semantic class", "@apply", "stylesheet". Routes to specialized sub-skills for creation, validation, or refactoring.
1