Media & Image v0.1.0

background-removal

Remove backgrounds from images with BiRefNet via inference.sh CLI. Model: BiRefNet (high accuracy background removal)....

Background Removal 更新于 2026-11-23 1 浏览
下载 SKILL

技能说明

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

使用场景

Remove backgrounds from images via CLI.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/background-removal
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 17 kB
SKILL.md text/markdown
---
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(infsh *)
---

# Background Removal

Remove backgrounds from images via [inference.sh](https://inference.sh) CLI.

## Quick Start

```bash
curl -fsSL https://cli.inference.sh | sh && infsh login

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

## How To

Use Reve for image editing including background changes:

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

Or change background directly:

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

## Workflow: Generate and Edit

```bash
# 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

```bash
# Full platform skill (all 150+ apps)
npx skills add inference-sh/agent-skills@inference-sh

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

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

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

Browse all image apps: `infsh app list --category image`

## Documentation

- [Running Apps](https://inference.sh/docs/apps/running) - How to run apps via CLI
- [Image Generation Example](https://inference.sh/docs/examples/image-generation) - Complete image workflow guide
- [Apps Overview](https://inference.sh/docs/apps/overview) - Understanding the app ecosystem

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。