Loading...
Loading...
Removes the background from an image, leaving the foreground subject with transparency. Use when you need to isolate subjects, create cutouts, or prepare images for compositing.
npx skill4agent add agntswrm/agent-media image-remove-backgroundagent-media image remove-background --in <path> [options]| Option | Required | Description |
|---|---|---|
| Yes | Input file path or URL |
| No | Output path, filename or directory (default: ./) |
| No | Provider to use (local, fal, replicate) |
{
"ok": true,
"media_type": "image",
"action": "remove-background",
"provider": "fal",
"output_path": "nobg_123_abc.png",
"mime": "image/png",
"bytes": 34567
}agent-media image remove-background --in portrait.jpgagent-media image remove-background --in portrait.jpg --provider replicateXenova/modnetmutex lock failed"ok": trueagent-media image remove-background --in portrait.jpg --provider localFAL_API_KEYbirefnet/v2REPLICATE_API_TOKENbirefnet