---
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](https://assets.runware.ai/covers/bria-rmbg-v2-0.jpg)

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.

- **Status**: live
- **ID**: `bria:2@1`
- Try in Playground
- **Creator**: Bria
- **Release Date**: November 13, 2024
- **Capabilities**: Image to Image, Remove Background, Checkpoint, Transparency

## Pricing

$0.018 per run · ~5s per request

**4 example generations**

- [remove-background](https://runware.ai/docs/models/bria-rmbg-v2-0/examples#example-polar-habitat-relighting-cutout): `$0.018` (~4s)
- [remove-background](https://runware.ai/docs/models/bria-rmbg-v2-0/examples#example-salmon-fly-ecommerce-cutout): `$0.018` (~5s)
- [remove-background](https://runware.ai/docs/models/bria-rmbg-v2-0/examples#example-lion-dance-head-compositing-cutout): `$0.018` (~5s)
- [remove-background](https://runware.ai/docs/models/bria-rmbg-v2-0/examples#example-vintage-marionette-archive-cutout): `$0.018` (~4s)

times vary, measured end to end · [How pricing works](https://runware.ai/docs/models-api/pricing)

## 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**: `PNG`

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`

Webhook URL that receives JSON responses 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/models-api/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 results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/models-api/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`

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

**Core Parameters**

Primary parameters that define the task output.

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

- **Type**: `string`
- **Required**: true
- **Value**: `bria:2@1`

Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).

**Learn more** (3 resources):

- [Text To Image: Model Selection](https://runware.ai/docs/learn/text-to-image#model-selection) (learn)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/learn/image-inpainting#model-specialized-inpainting-models) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

**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`

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`

Identifier for the type of task this response belongs to.

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

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

UUID v4 identifier echoed from the original request, used to match async responses to their tasks.

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

### remove-background (remove-background)

![Polar Habitat Relighting Cutout](https://assets.runware.ai/examples/bria-rmbg-v2-0/4166d964-2c29-41e6-86a5-0d5689cc48c2.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "cca2f125-17c8-4057-89fc-069b1b901d98",
  "model": "bria:2@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/cc5e858f-bbbb-4f44-aab3-b1399f5bacfe.jpg"
  }
}
```

---

### remove-background (remove-background)

![Salmon Fly Ecommerce Cutout](https://assets.runware.ai/examples/bria-rmbg-v2-0/898f80dc-0314-491a-9125-701d5a96e434.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "596e6f67-a0e1-43e8-996a-2d159b004d48",
  "model": "bria:2@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/81ad114e-97c7-47dc-9a4a-42f2b6cf3847.jpg"
  }
}
```

---

### remove-background (remove-background)

![Lion Dance Head Compositing Cutout](https://assets.runware.ai/examples/bria-rmbg-v2-0/2bd9622e-949a-461a-bc67-2d180150b172.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "48042132-965a-4c63-82a6-3d474c5703db",
  "model": "bria:2@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/2dadb713-40e0-4467-b504-03b72639e590.jpg"
  }
}
```

---

### remove-background (remove-background)

![Vintage Marionette Archive Cutout](https://assets.runware.ai/examples/bria-rmbg-v2-0/7aa248e0-9ddb-4424-b5a8-f3e57e712f64.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "6bc83ef8-e2c8-4854-943a-485604b4e03f",
  "model": "bria:2@1",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/af32a509-d819-45f6-b3b0-51e0b2ad8d81.jpg"
  }
}
```