Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
starchild-ai-agent avatar

Image Bg Remove

  • 1.7k installs
  • 21 repo stars
  • Updated August 3, 2026
  • starchild-ai-agent/official-skills

image-bg-remove is an agent skill for background removal: transparent pngs, cutouts, product photos, portraits, pets, group photos. uses dedicated bria rmbg 2.0 model — no prompt needed, fast (~3s), cheap ($0.01).

About

The image-bg-remove skill is designed for background removal: transparent PNGs, cutouts, product photos, portraits, pets, group photos. Uses dedicated Bria RMBG 2.0 model — no prompt needed, fast (~3s), cheap ($0.01). image-bg-remove Use this skill for all background removal requests on Starchild. Covers: portrait background removal (ID photos, headshots), product cutouts (e-commerce white-background), group photo background removal, pet/animal cutouts, object isolation, and preparing transparent PNGs for compositing. Invoke when the user asks about image bg remove or related SKILL.md workflows.

  • Background removal: transparent PNGs, cutouts, product photos, portraits, pets, group photos. Uses dedicated Bria RMBG 2
  • User asks about image bg remove or related SKILL.md workflows.
  • Developers using image bg remove workflows documented in SKILL.md.

Image Bg Remove by the numbers

  • 1,741 all-time installs (skills.sh)
  • +64 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #328 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

image-bg-remove capabilities & compatibility

Capabilities
background removal: transparent pngs, cutouts, p · user asks about image bg remove or related skill · developers using image bg remove workflows docum
Use cases
seo
From the docs

What image-bg-remove says it does

Background removal: transparent PNGs, cutouts, product photos, portraits, pets, group photos. Uses dedicated Bria RMBG 2.0 model — no prompt needed, fast (~3s), cheap ($0.01).
SKILL.md
Background removal: transparent PNGs, cutouts, product photos, portraits, pets, group photos. Uses dedicated Bria RMBG 2.0 model — no prompt needed, fast (~3s),
SKILL.md
npx skills add https://github.com/starchild-ai-agent/official-skills --skill image-bg-remove

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.7k
repo stars21
Last updatedAugust 3, 2026
Repositorystarchild-ai-agent/official-skills

How do I background removal: transparent pngs, cutouts, product photos, portraits, pets, group photos. uses dedicated bria rmbg 2.0 model — no prompt needed, fast (~3s), cheap ($0.01)?

Background removal: transparent PNGs, cutouts, product photos, portraits, pets, group photos. Uses dedicated Bria RMBG 2.0 model — no prompt needed, fast (~3s), cheap ($0.01).

Who is it for?

Developers using image bg remove workflows documented in SKILL.md.

Skip if: Skip when the task falls outside image-bg-remove scope or needs a different stack.

When should I use this skill?

User asks about image bg remove or related SKILL.md workflows.

What you get

Completed image-bg-remove workflow with documented commands, files, and expected deliverables.

  • transparent PNG cutout

By the numbers

  • Uses Bria RMBG 2.0 with ~3 second processing time
  • Costs approximately $0.01 per background removal
  • Skill version 1.0.0 in Starchild official-skills

Files

SKILL.mdMarkdownGitHub ↗

image-bg-remove

Use this skill for all background removal requests on Starchild.

Covers: portrait background removal (ID photos, headshots), product cutouts (e-commerce white-background), group photo background removal, pet/animal cutouts, object isolation, and preparing transparent PNGs for compositing.

Core principle: call the provided script. Do not re-implement proxy/billing plumbing.

Key difference from other image skills: this skill uses a dedicated background removal model (fal-ai/bria/background/remove — Bria RMBG 2.0), not the general-purpose nanopro/gpt models. No prompt is needed — just provide an image.

---

1. Quick start — local file (most common)

exec(open('skills/image-bg-remove/remove_bg.py').read())
result = remove_bg(image_path="uploads/photo.jpg")
# result -> {"success": True, "image": {"local_path": "output/images/..."}, "cost": 0.01, "duration_s": 3.2}

The script reads the local file, base64-encodes it, and sends it to fal.ai as a data URI — no manual URL publishing needed.

2. Quick start — public URL

exec(open('skills/image-bg-remove/remove_bg.py').read())
result = remove_bg(image_url="https://example.com/photo.jpg")

3. Quick start — custom output path

exec(open('skills/image-bg-remove/remove_bg.py').read())
result = remove_bg(
    image_path="uploads/product.jpg",
    output_path="output/images/product_transparent.png",
)

Delivering the result to the user — IMPORTANT

Never hand the user the raw fal.media URL. fal serves files with restrictive CSP headers. The only reliable delivery path is the already-downloaded local file:

1. Use the image's local_path (e.g. output/images/xxx.png) — the script always downloads on success. 2. Tell the user the file is saved to output/images/ and viewable in the workspace file panel. 3. On Web channel, embed inline so the user can preview in chat:

   ![transparent](output/images/<filename>.png)

4. On Telegram / WeChat: send via send_to_telegram(file_path="output/images/...", message_type="image") or send_to_wechat(file_path="output/images/...", message_type="image").

---

4. Parameters

ParameterRequiredDefaultDescription
image_pathyes*Local workspace file path to the source image
image_urlyes*Public HTTPS URL of the source image
output_pathnoautoCustom output file path. If not set, saves to output/images/ with timestamp.

*At least one of image_path or image_url must be provided. If both are given, image_path takes priority.

No prompt parameter — this is a pure tool skill. The dedicated model handles background removal automatically without any text instruction.

---

5. When to use this skill

Use image-bg-remove when the user wants to:

User saysUse this skill
"remove the background" / "去背景" / "抠图"✅ Yes
"make it transparent" / "透明背景"✅ Yes
"create a cutout" / "cut out the person"✅ Yes
"product photo with white background" / "白底图"✅ Yes
"extract the foreground" / "isolate the subject"✅ Yes
"remove background from headshot" / "证件照去背景"✅ Yes
"transparent PNG" / "PNG cutout"✅ Yes
"remove background from pet photo"✅ Yes
"batch remove backgrounds" (multiple images)✅ Yes — call remove_bg() in a loop

---

6. When NOT to use this skill — use image-edit instead

User saysUse instead
"replace background with a beach" / "换背景"image-edit (action="replace_bg")
"blur the background" / "背景虚化"image-edit (action="edit")
"change background color to blue"image-edit (action="replace_bg")
"edit the image" / "enhance the photo"image-edit
"generate an image from text"image-create

Key distinction:

  • image-bg-removeremoves the background → outputs transparent PNG
  • image-edit (replace_bg) → replaces the background with a new scene using a general-purpose model

For background replacement workflows, the recommended approach is: 1. First use image-bg-remove to get a clean transparent cutout 2. Then use image-edit (action="blend") to composite onto a new background

This two-step approach produces better results than a single replace_bg call because the dedicated RMBG model produces cleaner edges.

---

7. Model details

PropertyValue
Modelfal-ai/bria/background/remove (Bria RMBG 2.0)
Speed~3 seconds
Cost~$0.01 per image
OutputTransparent PNG (RGBA)
Input formatsJPEG, PNG, WEBP, BMP
Max input size10 MB

This is the only image skill that uses a dedicated single-purpose model. All other image skills use nanopro or gpt general-purpose models.

---

8. Response format

{
    "success": true,
    "image": {
        "url": "https://fal.media/files/...",
        "local_path": "output/images/20250531_153000_bg_removed.png",
        "size_bytes": 245760,
        "request_id": "abc123"
    },
    "cost": 0.01,
    "duration_s": 3.2
}

On error:

{
    "success": false,
    "error": "File not found: uploads/missing.jpg"
}

---

9. Use case examples

Portrait background removal (ID photo / headshot)

exec(open('skills/image-bg-remove/remove_bg.py').read())
result = remove_bg(image_path="uploads/headshot.jpg")
if result["success"]:
    print(f"Transparent headshot saved: {result['image']['local_path']}")

Product cutout for e-commerce

exec(open('skills/image-bg-remove/remove_bg.py').read())
result = remove_bg(image_path="uploads/product.jpg")
# Output: transparent PNG ready for white-background product listing

Batch processing multiple images

exec(open('skills/image-bg-remove/remove_bg.py').read())
import glob

images = glob.glob("uploads/products/*.jpg")
for img in images:
    result = remove_bg(image_path=img)
    if result["success"]:
        print(f"✓ {img} → {result['image']['local_path']}")
    else:
        print(f"✗ {img}: {result['error']}")

Background removal + replacement (two-step workflow)

# Step 1: Remove background with dedicated model (better edges)
exec(open('skills/image-bg-remove/remove_bg.py').read())
result = remove_bg(image_path="uploads/portrait.jpg")
transparent_path = result["image"]["local_path"]

# Step 2: Composite onto new background with image-edit
exec(open('skills/image-edit/edit_image.py').read())
final = edit_image(
    image_path=transparent_path,
    prompt="place this person on a tropical beach at sunset",
    action="blend",
)

---

10. Supported input formats

FormatExtensionNotes
JPEG.jpg, .jpegMost common input
PNG.pngSupports existing alpha channel
WebP.webpModern web format
BMP.bmpLegacy format

Maximum file size: 10 MB.

---

11. Troubleshooting

IssueSolution
"File not found"Check the file path is relative to workspace root
"Unsupported image format"Convert to JPEG/PNG/WebP first
"Image too large"Resize to under 10 MB before processing
"Submit failed: 401"Check FAL_KEY env var (local) or sc-proxy config (production)
TimeoutRare — the model usually completes in ~3s. Retry once.

Related skills

How it compares

Choose image-bg-remove for fast no-prompt cutouts; use full generative image skills when creating new visuals rather than isolating subjects.

FAQ

What does image-bg-remove do?

Background removal: transparent PNGs, cutouts, product photos, portraits, pets, group photos. Uses dedicated Bria RMBG 2.0 model — no prompt needed, fast (~3s), cheap ($0.01).

When should I use image-bg-remove?

User asks about image bg remove or related SKILL.md workflows.

Is image-bg-remove safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.