---
title: Bria RMBG v2.0 | Runware Docs
url: https://runware.ai/docs/models/bria-rmbg-v2-0
description: High precision AI background removal for images
---
# Bria RMBG v2.0

Bria RMBG v2.0 removes complex backgrounds and produces clean alpha mattes for product photos and portraits. It supports varied subjects and lighting. Ideal for ecommerce pipelines and design tools that need fast accurate subject isolation at scale.

- **ID**: `bria:2@1`
- **Status**: live
- **Creator**: Bria
- **Capabilities**: Image to Image, Remove Background

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/bria-rmbg-v2-0#request-tasktype)

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

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/bria-rmbg-v2-0#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/bria-rmbg-v2-0#request-outputtype)

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

Image output type.

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

### [outputFormat](https://runware.ai/docs/models/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#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/bria-rmbg-v2-0#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `bria:2@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)

**Provider Settings**

Parameters specific to this model provider. These must be nested inside the \`providerSettings.bria\` object.

### [preserveAlpha](https://runware.ai/docs/models/bria-rmbg-v2-0#request-providersettings-bria-preservealpha)

- **Path**: `providerSettings.bria.preserveAlpha`
- **Type**: `boolean`
- **Default**: `false`

Enable alpha channel preservation in output. Only affects images that already contain an alpha channel.

## Response Parameters

### [taskType](https://runware.ai/docs/models/bria-rmbg-v2-0#response-tasktype)

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

Type of the task.

### [taskUUID](https://runware.ai/docs/models/bria-rmbg-v2-0#response-taskuuid)

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

UUID of the task.

### [imageUUID](https://runware.ai/docs/models/bria-rmbg-v2-0#response-imageuuid)

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

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/bria-rmbg-v2-0#response-imageurl)

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

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/bria-rmbg-v2-0#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/bria-rmbg-v2-0#response-imagedatauri)

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

Data URI of the output image.

### [cost](https://runware.ai/docs/models/bria-rmbg-v2-0#response-cost)

- **Type**: `float`

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

## Examples

### Ceramic Teapot Herb Bundle (Remove Background)

![Ceramic Teapot Herb Bundle](https://assets.runware.ai/examples/bria-rmbg-v2-0/ce4d28d8-6acc-41ca-9626-81284f458798.png)

**Request**:

```json
{
  "taskType": "removeBackground",
  "taskUUID": "774667b4-96b9-4ee5-8cfc-c2f550145db2",
  "model": "bria:2@1",
  "providerSettings": {
    "bria": {
      "preserveAlpha": false
    }
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/35565f4c-e973-4f27-bb01-e988b23539ae.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageBackgroundRemoval",
  "taskUUID": "774667b4-96b9-4ee5-8cfc-c2f550145db2",
  "imageUUID": "5659b74f-885d-4589-94fd-5a0b52f164ef",
  "imageURL": "https://im.runware.ai/image/os/a24d12/ws/3/ii/5659b74f-885d-4589-94fd-5a0b52f164ef.png",
  "cost": 0.018,
  "inputImageUUID": "48ca9faf-715d-4128-8cb1-e90124606212"
}
```

---

### Woven Picnic Basket Still-Life (Remove Background)

![Woven Picnic Basket Still-Life](https://assets.runware.ai/examples/bria-rmbg-v2-0/b3be018a-c063-43c8-9942-c365627efbd6.png)

**Request**:

```json
{
  "taskType": "removeBackground",
  "taskUUID": "53921b36-29e7-4fc2-95b3-a9a4295efadd",
  "model": "bria:2@1",
  "providerSettings": {
    "bria": {
      "preserveAlpha": false
    }
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/29b11005-8d4f-4a60-ac57-c3d9b02bcd9a.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageBackgroundRemoval",
  "taskUUID": "53921b36-29e7-4fc2-95b3-a9a4295efadd",
  "imageUUID": "bbad17d8-60cd-453f-bf21-796bc807d7fa",
  "imageURL": "https://im.runware.ai/image/os/a23d05/ws/3/ii/bbad17d8-60cd-453f-bf21-796bc807d7fa.png",
  "cost": 0.018,
  "inputImageUUID": "2b60fd51-9b07-4661-9121-b4c1911142ea"
}
```

---

### Ornate Pastry Box Arrangement (Remove Background)

![Ornate Pastry Box Arrangement](https://assets.runware.ai/examples/bria-rmbg-v2-0/be8a037a-8e6c-4cb3-a27e-ec990849abd7.png)

**Request**:

```json
{
  "taskType": "removeBackground",
  "taskUUID": "bb61762c-8e9e-4049-827a-22dd9a7160c3",
  "model": "bria:2@1",
  "providerSettings": {
    "bria": {
      "preserveAlpha": false
    }
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/287e1c41-1f43-4f3f-8802-7dd388a99ac7.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageBackgroundRemoval",
  "taskUUID": "bb61762c-8e9e-4049-827a-22dd9a7160c3",
  "imageUUID": "a537918b-a01a-466b-8c8c-54f7accc60f9",
  "imageURL": "https://im.runware.ai/image/os/a13d12/ws/3/ii/a537918b-a01a-466b-8c8c-54f7accc60f9.png",
  "cost": 0.018,
  "inputImageUUID": "2890597c-67e1-4222-b8f5-26be33642518"
}
```