---
title: BiRefNet v1 Base | Runware Docs
url: https://runware.ai/docs/models/birefnet-v1-base
description: Foundation BiRefNet model for high-accuracy binary image segmentation
---
# BiRefNet v1 Base

BiRefNet v1 Base is the core model of the BiRefNet family, designed for dichotomous image segmentation. It produces clean foreground–background masks with strong boundary precision by leveraging bilateral reference cues that preserve spatial structure and object integrity across diverse scenes.

- **ID**: `runware:112@1`
- **Status**: live
- **Release Date**: January 7, 2024
- **Capabilities**: Image to Image, Remove Background

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/birefnet-v1-base#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `removeBackground`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/birefnet-v1-base#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/birefnet-v1-base#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/birefnet-v1-base#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [outputQuality](https://runware.ai/docs/models/birefnet-v1-base#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/birefnet-v1-base#request-webhookurl)

- **Type**: `string`
- **Format**: `URI`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/birefnet-v1-base#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/birefnet-v1-base#request-uploadendpoint)

- **Type**: `string`
- **Format**: `URI`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [ttl](https://runware.ai/docs/models/birefnet-v1-base#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/birefnet-v1-base#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [image](https://runware.ai/docs/models/birefnet-v1-base#request-inputs-image)

- **Path**: `inputs.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

**Generation Parameters**

Core parameters for controlling the generated content.

### [model](https://runware.ai/docs/models/birefnet-v1-base#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `runware:112@1`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

## Response Parameters

### [taskType](https://runware.ai/docs/models/birefnet-v1-base#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `removeBackground`

Type of the task.

### [taskUUID](https://runware.ai/docs/models/birefnet-v1-base#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the task.

### [imageUUID](https://runware.ai/docs/models/birefnet-v1-base#response-imageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/birefnet-v1-base#response-imageurl)

- **Type**: `string`
- **Format**: `URI`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/birefnet-v1-base#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/birefnet-v1-base#response-imagedatauri)

- **Type**: `string`
- **Format**: `URI`

Data URI of the output image.

### [cost](https://runware.ai/docs/models/birefnet-v1-base#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### Weathered Toy Robot Cutout (Remove Background)

![Weathered Toy Robot Cutout](https://assets.runware.ai/examples/birefnet-v1-base/d15ef29b-7231-424a-8406-750babe22e05.png)

**Request**:

```json
{
  "taskType": "removeBackground",
  "taskUUID": "e49aa691-12d5-4e74-881b-1df23bc77a47",
  "outputFormat": "PNG",
  "model": "runware:112@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/6510bc3a-41e3-4461-a0e3-59f1240b6522.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageBackgroundRemoval",
  "taskUUID": "e49aa691-12d5-4e74-881b-1df23bc77a47",
  "imageUUID": "890f9d50-8614-4259-a01e-b77a08364bcb",
  "imageURL": "https://im.runware.ai/image/os/a15d18/ws/4/ii/890f9d50-8614-4259-a01e-b77a08364bcb.png",
  "cost": 0.0006,
  "inputImageUUID": "4a41ffb3-d730-41eb-914a-2cd702ce2361"
}
```

---

### Ornate Masquerade Feathered Headpiece (Remove Background)

![Ornate Masquerade Feathered Headpiece](https://assets.runware.ai/examples/birefnet-v1-base/214aa382-6860-4b86-8b03-0399a3348039.png)

**Request**:

```json
{
  "taskType": "removeBackground",
  "taskUUID": "3af04188-f83c-4650-87c0-40afe13e8e07",
  "outputFormat": "PNG",
  "model": "runware:112@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/b1a19a69-7506-432d-a720-a6e6eccd3ce3.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageBackgroundRemoval",
  "taskUUID": "3af04188-f83c-4650-87c0-40afe13e8e07",
  "imageUUID": "94ec8d0e-c30f-40c7-b479-d8ca719f44fd",
  "imageURL": "https://im.runware.ai/image/os/a21d05/ws/4/ii/94ec8d0e-c30f-40c7-b479-d8ca719f44fd.png",
  "cost": 0.0006,
  "inputImageUUID": "5018a301-4691-491a-a2d9-9179b0574cb2"
}
```

---

### Antique Violin Velvet Case (Remove Background)

![Antique Violin Velvet Case](https://assets.runware.ai/examples/birefnet-v1-base/317c5b0e-2fae-4e82-b847-4cc55e630274.png)

**Request**:

```json
{
  "taskType": "removeBackground",
  "taskUUID": "c541d870-b291-4cc7-864e-a83064d91c5d",
  "outputFormat": "PNG",
  "model": "runware:112@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/38451971-8f48-4d3a-b6ff-f75599c739a8.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageBackgroundRemoval",
  "taskUUID": "c541d870-b291-4cc7-864e-a83064d91c5d",
  "imageUUID": "3580be88-4e6d-4696-964d-75d6962cfa72",
  "imageURL": "https://im.runware.ai/image/os/a21d05/ws/4/ii/3580be88-4e6d-4696-964d-75d6962cfa72.png",
  "cost": 0.0006,
  "inputImageUUID": "b27998e7-183e-40c4-b1ca-7983a5e2a3fc"
}
```