Background removal

From inference-sh/skills · View interactive version

Background removal is an AI agent skill from the GitHub repository inference-sh/skills. 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, b

How to use this skill

Skill file

Install the belt CLI skill: npx skills add belt-sh/cli

Background Removal

Remove backgrounds from images via inference.sh CLI.

!Background Removal

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

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

How To

Use Reve for image editing including background changes:

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

Or change background directly:

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

Workflow: Generate and Edit

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

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

Use Cases

Output

Returns a PNG with transparent background.

Related Skills

# Full platform skill (all 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: belt app list --category image

Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.