---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "BiRefNet v2 Matte & Cutout — Verified Model Specification"
description: "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."
canonical: "https://framesfield.com/specs/birefnet-v2"
---

# BiRefNet v2 Matte & Cutout — Verified Model Specification

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

- **Canonical URL:** https://framesfield.com/specs/birefnet-v2
- **Maker:** ZhengPeng7 (Open Source)
- **Version:** BiRefNet v2 / HR-Matting (fal-ai/birefnet/v2 · MIT)
- **Category:** Image Generation
- **Deployment:** Cloud API + Local Weights
- **Release Date:** 2024-10-01
- **Last Verified:** 2026-12-01
- **Official Documentation:** https://fal.ai/models/fal-ai/birefnet/v2/api
- **Pricing Page:** https://fal.ai/models/fal-ai/birefnet/v2

## Technical Specifications & API Pricing

| Metric | Verified Value |
| --- | --- |
| API Unit Price | $0 local (MIT) · ~$0.002 fal.ai (per cutout on fal.ai compute-second billing ($0.00 MIT local GPU)) |
| Standardized Cost | $0.00 local GPU · ~$0.20 per 100 hosted cutouts |
| 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 Policy | 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 |
| License | MIT (Open Weights) · Hosted Serverless API |
| API Access | fal.ai serverless API (fal-ai/birefnet/v2), Hugging Face weights (ZhengPeng7/BiRefNet), ComfyUI BiRefNet nodes |

## Pricing Tiers

| Tier | Rate | Notes |
| --- | --- | --- |
| 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. |

## Best Suited For

- 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

## Verified 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

## FAQ

### 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.

## Related Workflows

- [Product Cutout to IC-Light V2 Relit Hero Compositing Pipeline ($0.20 / Hero)](https://framesfield.com/workflows/product-cutout-to-iclight-v2-relit-hero-compositing-pipeline)

## Related Agents & Skills

- [Bria RMBG 2.0, BiRefNet v2 & IC-Light V2 fal.ai Skill](https://framesfield.com/skills/bria-rmbg-birefnet-and-iclight-relight-fal-skill)
