---
title: BiRefNet Massive TR DIS5K TR TES | Runware Docs
url: https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes
description: Large-scale BiRefNet model trained on diverse segmentation datasets
---
# BiRefNet Massive TR DIS5K TR TES

![BiRefNet Massive TR DIS5K TR TES](https://assets.runware.ai/covers/birefnet-massive-tr-dis5k-tr-tes.jpg)

This model is trained on multiple large-scale datasets, including DIS5K, to improve robustness across object scales, backgrounds, and visual distributions. It prioritizes generalization and consistency in real-world imagery.

- **Status**: live
- **ID**: `runware:112@8`
- Try in Playground
- **Release Date**: January 7, 2024
- **Zero Data Retention**: Yes
- **Capabilities**: Image to Image, Remove Background, Checkpoint, Transparency

## Pricing

$0.0006 from, per run · ~6s per request

**Measured runs**

- 1024×1024 input: `$0.0006` (~6s)

**4 example generations**

- [remove-background](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes/examples#example-clear-electric-violin-product-cutout): `$0.0006` (~6s)
- [remove-background](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes/examples#example-wardian-terrarium-interior-placement-cutout): `$0.0006` (~4s)
- [remove-background](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes/examples#example-couture-fascinator-virtual-try-on-cutout): `$0.0006` (~6s)
- [remove-background](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes/examples#example-night-observatory-relighting-cutout): `$0.0006` (~7s)

billed by compute time, so a request costs what it took · 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/birefnet-massive-tr-dis5k-tr-tes#request-tasktype)

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

Identifier for the type of task being performed.

### [taskUUID](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#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-massive-tr-dis5k-tr-tes#request-outputtype)

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

Image output type.

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

### [outputFormat](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#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/birefnet-massive-tr-dis5k-tr-tes#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-massive-tr-dis5k-tr-tes#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/birefnet-massive-tr-dis5k-tr-tes#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/birefnet-massive-tr-dis5k-tr-tes#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-massive-tr-dis5k-tr-tes#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-massive-tr-dis5k-tr-tes#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/birefnet-massive-tr-dis5k-tr-tes#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/birefnet-massive-tr-dis5k-tr-tes#request-model)

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

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)

## Response Parameters

### [taskType](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#response-tasktype)

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

Identifier for the type of task this response belongs to.

### [taskUUID](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#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/birefnet-massive-tr-dis5k-tr-tes#response-imageuuid)

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

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#response-imageurl)

- **Type**: `string`
- **Format**: `uri`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#response-imagedatauri)

- **Type**: `string`
- **Format**: `uri`

Data URI of the output image.

### [cost](https://runware.ai/docs/models/birefnet-massive-tr-dis5k-tr-tes#response-cost)

- **Type**: `float`

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

## Examples

### remove-background (remove-background)

![Clear Electric Violin Product Cutout](https://assets.runware.ai/examples/birefnet-massive-tr-dis5k-tr-tes/3e5ef797-8402-4f6b-aa90-aa7c74971ddb.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "455cd135-f462-495a-aae7-5e5b6140bfde",
  "model": "runware:112@8",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/f18372b7-730f-4c82-a42b-531284cacda6.jpg"
  }
}
```

---

### remove-background (remove-background)

![Wardian Terrarium Interior Placement Cutout](https://assets.runware.ai/examples/birefnet-massive-tr-dis5k-tr-tes/8bd541ac-e7f1-405d-8e6c-a4974f88e746.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "a5d94c2b-1f1b-4810-9d9c-f531285d8d05",
  "model": "runware:112@8",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/1ca49887-a5d2-486a-8814-c7edded087b7.jpg"
  }
}
```

---

### remove-background (remove-background)

![Couture Fascinator Virtual Try-On Cutout](https://assets.runware.ai/examples/birefnet-massive-tr-dis5k-tr-tes/aaad7f4b-0059-4d5f-ad55-53e9aeccc8de.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "05dfe8e4-f782-40c7-9796-fff17dc7e1f4",
  "model": "runware:112@8",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/7564c071-52fa-44ee-af0c-f1a278c05cf8.jpg"
  }
}
```

---

### remove-background (remove-background)

![Night Observatory Relighting Cutout](https://assets.runware.ai/examples/birefnet-massive-tr-dis5k-tr-tes/d487f762-a624-4c50-9d00-9049ff120c17.png)

```json
{
  "taskType": "removeBackground",
  "taskUUID": "f08b5c6c-cdb4-4a17-a6e1-27daf0a5c487",
  "model": "runware:112@8",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/27a78b06-a579-4b79-9ac2-e5e067ed7b19.jpg"
  }
}
```