Image
Birefnet Background Removal V2
Separate a subject from its background with BiRefNet V2.
- Image editing
Sign in to create. Review the credit cost in the studio before running.
Catalog preview for Birefnet Background Removal V2. Review your own result before publishing.
A starting point.
Separate a subject from its background with BiRefNet V2. Choose a variant for general images, portraits or matting before refining the cutout.
Before you publish.
Check hair, glass and gaps against light and dark backgrounds. Compare the selected foreground with the untouched source.
Review the quote before running. A failed generation releases its reserved credits. Download the results you want to keep; stored media is retained for 30 days.
Settings and model questionsCheck the available settings and guidance when preparing your input.
Inputs and settings
Provide image_url and choose model and operating_resolution. The 2304x2304 resolution requires General Use (Dynamic).
Use output_mask to include a mask; mask_only returns the mask instead of a cutout. Select output_format and review refine_foreground.
Inputs, all modes and APIModel IDs, current input limits and the API generation workflow.
Supported inputs
These fields come from the current studio form for birefnet/v2. Other modes may require different inputs.
| Input | Type | Requirement | Options and limits |
|---|---|---|---|
image_url | Text | Required | — |
mask_only | On/off | Optional | — |
model | Text | Optional | — |
operating_resolution | Text | Optional | — |
output_format | Text | Optional | webp, png, gif |
output_mask | On/off | Optional | — |
refine_foreground | On/off | Optional | — |
Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.
Use Birefnet Background Removal V2 through the API.
Start with this model ID for the endpoint featured on this page:
birefnet/v2
Input requirements belong to this model ID. Check a different mode’s schema separately when switching modes.
Check the current model schema for supported inputs and options. Other tasks may use different model IDs.
From quote to result.
Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.
Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.