简介
基于BiRefNet高精度模型,通过inference.sh CLI一键移除图像背景生成透明PNG,专为电商产品图和人像摄影优化。
原始描述
Remove backgrounds from images with BiRefNet via inference.sh CLI. Model: BiRefNet (high accuracy background removal). Use for: product photos, portraits, e-...
通过你的 Agent 添加
安装目录:background-removal/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: background-removal
description: "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"
allowed-tools: Bash(belt *)
Install the belt CLI skill: npx skills add belt-sh/cli
Background Removal
Install the belt CLI skill: npx skills add belt-sh/cli
Remove backgrounds from images via inference.sh CLI.

Quick Start
Requires inference.sh CLI (belt). Install instructions
belt login
belt app run infsh/birefnet --input '{"image": "https://your-photo.jpg"}'
How To
Requires inference.sh CLI (belt). Install instructions
belt login
belt app run infsh/birefnet --input '{"image": "https://your-photo.jpg"}'
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
- E-commerce: Clean product photos
- Portraits: Professional headshots
- Marketing: Assets for design
- Social Media: Profile pictures
- Design: Elements for compositions
Output
# 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>"
}'
- 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 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
# 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