BiRefNet v2 Matte & Cutout
Permissive MIT open-weight 2048×2048 matting and cutout engine: $0.00 locally in ComfyUI or compute-second pennies on fal.ai with refine_foreground.
BiRefNet v2 (Bilateral Reference Network, MIT open weights and hosted at fal-ai/birefnet/v2) is the studio standard for permissive open-weight Dichotomous Image Segmentation (DIS) and high-resolution matting. Unlike Bria RMBG-2.0's non-commercial public weights, BiRefNet is MIT-licensed for unrestricted commercial self-hosting in ComfyUI/PyTorch ($0/image), while fal.ai exposes specialized General Use (Light/Heavy), Portrait, and Matting presets up to 2048×2048 operating_resolution with refine_foreground and standalone mask export.
Quick Cost Estimator ($0.20)
When should you choose BiRefNet v2—and what are its limits?
Best fit for BiRefNet v2
- High-volume local ComfyUI or Python batch pipelines processing 1,000+ product or portrait cutouts at $0.00 API cost under MIT
- Extracting crisp 2048×2048 standalone grayscale alpha masks (output_mask: true) for Photoshop, Blender, DaVinci Resolve, or IC-Light V2 relighting
- Eliminating white or colored fringe halos along dark hair and edges via refine_foreground: true
- Studios needing specialized Portrait vs. Matting vs. General Use (Heavy) model weights inside one consistent API
Watch out for (limitations)
- Does not accept text prompts to pick one object out of a crowded scene—use Bria RMBG 2.0 ($0.03 prompted) when isolating a specific named foreground item
- 2048×2048 operating_resolution takes noticeably more VRAM and ~2× compute time than 1024×1024—reserve HR mode for hair, jewelry, mesh, and print hero assets
- Like all single-frame image mattes, applying BiRefNet independently per frame on video clips can introduce slight edge chatter unless temporally smoothed
- Does not relight the foreground—pair with IC-Light V2 ($0.10/MP) when dropping cutouts into dramatically different lighting scenes
How much does BiRefNet v2 cost across tiers?
Standardized rate is $0.00 local GPU · ~$0.20 per 100 hosted cutouts. Verified against official pricing documentation on Dec 1, 2026:
| Tier / Variant | Verified rate | What you get |
|---|---|---|
| Local Open-Weight Self-Hosting (MIT License · ComfyUI / PyTorch) | $0.00 / image | Runs smoothly on 6GB–8GB VRAM consumer GPUs or Apple Silicon with zero API fees and full commercial production rights under MIT. |
| fal.ai Compute-Second Serverless (fal-ai/birefnet/v2) | Metered by GPU compute seconds (~$0.001–$0.003 / image) | Fast serverless inference supporting General Use (Light/Heavy), Portrait, and Matting models plus 2048×2048 operating_resolution. |
Full specs, audio support & commercial rights
| Specification | Verified value |
|---|---|
| Maker & version | ZhengPeng7 (Open Source) — BiRefNet v2 / HR-Matting (fal-ai/birefnet/v2 · MIT) |
| Release date | Oct 1, 2024 |
| Output type | Single RGBA PNG / WebP cutout plus optional standalone grayscale alpha mask |
| Max resolution | Up to 2048×2048 operating_resolution (HR matting preserves fine strands and mesh) |
| Aspect ratios | Preserves exact source aspect ratio with native alpha channel and optional mask PNG |
| Reference & control limits | 1 image_url + model selector (General Use Light/Heavy, Portrait, Matting) + operating_resolution (1024x1024, 2048x2048) + refine_foreground boolean + output_mask boolean + mask_only |
| Watermark & provenance | Zero watermark (MIT open weights and hosted fal.ai output) |
| Commercial rights | Unrestricted commercial production and SaaS embedding under the permissive MIT open-source license |
| Where to access | fal.ai serverless API (fal-ai/birefnet/v2), Hugging Face weights (ZhengPeng7/BiRefNet), ComfyUI BiRefNet nodes |
Safe to self-host commercially inside ComfyUI, SaaS backends, and NDA studio pipelines.
Captures fine flyaway hair, bicycle spokes, lace, and translucent edges.
Strips bright white/green background color spill out of semi-transparent edge pixels.
Emits standalone grayscale mattes directly for IC-Light V2 or Nuke/Photoshop compositing.
Workflows using BiRefNet v2
Prompts & skills for BiRefNet v2
Compare BiRefNet v2 side-by-side
Frequently Asked Questions
- Is BiRefNet v2 free for commercial e-commerce and SaaS use?
- Yes. BiRefNet is released under the permissive MIT License, allowing unrestricted commercial self-hosting on local GPUs, ComfyUI servers, or cloud containers at $0.00 per image—unlike Bria RMBG-2.0's public weights, which are non-commercial unless called via Bria's paid API.
- What does refine_foreground do in BiRefNet v2?
- When an object sits in front of a bright white studio wall or green backdrop, edge pixels blend foreground pigment with background spill. Enabling refine_foreground estimates true foreground color along semi-transparent pixels, preventing bright white halos when compositing onto dark backgrounds.
- Which BiRefNet v2 model preset should I choose?
- Use General Use (Heavy) for complex e-commerce products and mixed props, Portrait for human headshots and fashion models, and Matting at 2048×2048 operating_resolution for wispy hair, tulle, glass, or smoke-like soft alpha edges.
- How do I pair BiRefNet v2 with IC-Light V2 for realistic composites?
- Run BiRefNet v2 with refine_foreground: true and output_mask: true to get a decontaminated RGBA PNG and clean mask, then pass that foreground into IC-Light V2 ($0.10/MP) with a directional lighting prompt so shadows and highlights match the new environment.