---
id: sm-background-removal
name: "background-removal"
url: https://skills.yangsir.net/skill/sm-background-removal
author: inferen-sh
domain: multimedia
tags: ["image-editing", "photoshop", "figma", "canva", "ai-image-tools"]
install_count: 6469
rating: 4.50 (259 reviews)
github: https://github.com/inferen-sh/skills
---

# background-removal

> 快速准确地从图像中移除背景，突出主体，广泛应用于电商产品图、人像处理和创意设计等领域，提升视觉效果。

**Stats**: 6,469 installs · 4.5/5 (259 reviews)

## Before / After 对比

### 快速精准移除图像背景

## Readme

# background-removal

# Background Removal

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

## Quick Start

Requires inference.sh CLI (`infsh`). [Install instructions](https://raw.githubusercontent.com/inference-sh/skills/refs/heads/main/cli-install.md)

```
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 150+ 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

- [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

Weekly Installs4.3KRepository[inferen-sh/skills](https://github.com/inferen-sh/skills)GitHub Stars159First Seen6 days agoSecurity Audits[Gen Agent Trust HubPass](/inferen-sh/skills/background-removal/security/agent-trust-hub)[SocketPass](/inferen-sh/skills/background-removal/security/socket)[SnykWarn](/inferen-sh/skills/background-removal/security/snyk)Installed onclaude-code3.5Kgemini-cli3.1Kcodex3.1Kamp3.1Kopencode3.1Kkimi-cli3.1K

---
*Source: https://skills.yangsir.net/skill/sm-background-removal*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-background-removal/markdown*