Skills background-removal

Remove backgrounds from images with BiRefNet via inference.sh CLI. Model: BiRefNet (high accuracy background removal). Use for: product photos, portraits, e-commerce, transparent PNGs, photo editing. Triggers: remove background, background removal, remove bg, transparent background, cut out image, background remover, rembg, product photo editing, cutout, transparent png, bg removal, photo cutout

install
source · Clone the upstream repo
git clone https://github.com/inference-sh/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/inference-sh/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/tools/image/background-removal" ~/.claude/skills/inference-sh-skills-background-removal && rm -rf "$T"
manifest: tools/image/background-removal/SKILL.md
source content

Background Removal

Remove backgrounds from images via inference.sh CLI.

Background Removal

Quick Start

Requires inference.sh CLI (

infsh
). Install instructions

infsh login

infsh app run infsh/birefnet --input '{"image_url": "https://your-photo.jpg"}'

How To

Use Reve for image editing including background changes:

infsh app run falai/reve --input '{
  "prompt": "remove the background, make it transparent",
  "image_url": "https://portrait.jpg"
}'

Or change background directly:

infsh app run falai/reve --input '{
  "prompt": "change the background to a beach",
  "image_url": "https://product-photo.jpg"
}'

Workflow: Generate and Edit

# 1. Generate an image
infsh app run falai/flux-dev-lora --input '{"prompt": "a cute robot mascot"}' > robot.json

# 2. Edit with Reve
infsh app run falai/reve --input '{
  "prompt": "remove background, transparent",
  "image_url": "<url-from-step-1>"
}'

Use Cases

  • E-commerce: Clean product photos
  • Portraits: Professional headshots
  • Marketing: Assets for design
  • Social Media: Profile pictures
  • Design: Elements for compositions

Output

Returns a PNG with transparent background.

Related Skills

# Full platform skill (all 250+ apps)
npx skills add inference-sh/skills@infsh-cli

# Image generation
npx skills add inference-sh/skills@ai-image-generation

# FLUX models (including inpainting)
npx skills add inference-sh/skills@flux-image

# Upscaling
npx skills add inference-sh/skills@image-upscaling

Browse all image apps:

infsh app list --category image

Documentation