Skip to main content
BiRefNetFastUltra

BiRefNet

State-of-the-art open-source background removal. BiRefNet's high-fidelity dichotomous image segmentation delivers excellent edge quality on hair, fur, and fine details.

5 credits
per image
State-of-the-art segmentation quality
Excellent edges on hair, fur, and fine details
Adjustable processing resolution
Simple one-input API
Open-source (research-backed BiRefNet)

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "men1scus/birefnet",
  "input": {
    "image": "https://example.com/portrait.jpg"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringYes-Input image to remove the background from
resolutionstringNo-Processing resolution in WxH format, e.g. '1024x1024'. Empty uses the default

How to Provide File Input

There are 3 ways to provide files for the image parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=men1scus/birefnet" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "men1scus/birefnet",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

High-Fidelity Portrait Cutout

Remove the background from a portrait with fine hair details

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "men1scus/birefnet",
  "input": {
    "image": "https://example.com/portrait.jpg"
  }
}'

Tips & Best Practices

1Best-in-class for hair, fur, and semi-transparent edges
2Raise resolution (e.g. '2048x2048') for large source images when edges matter
3For bulk low-cost processing, Background Remover (2 credits) may be sufficient
4Output is a transparent PNG ready for compositing

Use Cases

High-fidelity cutouts of people and animals
Professional product photography
Print-quality composites
Difficult subjects (hair, lace, branches)
Design asset preparation