> ## Documentation Index
> Fetch the complete documentation index at: https://docs.poyo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bria RMBG 3.0

> The Bria RMBG 3.0 API removes the background from one image and returns a transparent PNG at the input size, with an optional plain-language prompt to choose what to keep.

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the response result through the unified [Query Task Status](https://docs.poyo.ai/api-manual/task-management/status.md) endpoint.

Use `bria-rmbg-3.0` to cut the subject out of a photo for product listings, profile pictures, design mockups, and compositing. Send one image and get back a transparent PNG at the same size. Add a short prompt when you want a different cutout than the obvious subject, such as keeping a second object or only one item in the scene.

## Models

* **bria-rmbg-3.0** — One image in; one transparent PNG cutout out

## Features

* Automatic cutout of the most prominent subject from a single image.
* Prompt-guided cutout: add an object to the subject, leave an object out, or keep only one item.
* Kept areas are the original pixels with a new alpha channel.
* Output is a PNG with transparency at the same width and height as the input.
* Accepts JPEG, PNG, WebP, GIF, AVIF, HEIC, and HEIF images.

## Required parameters

* `image_urls` (array of strings): Exactly 1 publicly accessible HTTP(S) image URL (JPEG, PNG, WebP, GIF, AVIF, HEIC, or HEIF).

## Optional parameters

* `prompt` (string): What to keep, in plain words, up to 2,000 characters. Examples: "the person with the mat and the plant", "the woman at her desk without the lamp", "only the chair". Leave `prompt` empty to keep the most prominent subject of the photo.

## Output

When the task finishes, `files` in [Query Task Status](https://docs.poyo.ai/api-manual/task-management/status.md) and in the callback holds one PNG image with an alpha channel. The background is transparent and the image has the same width and height as the input.

```json theme={"dark"}
{
  "files": [
    {
      "file_url": "https://storage.poyo.ai/images/task-unified-1795564800-abcd1234/task-unified-1795564800-abcd1234.png",
      "file_type": "image"
    }
  ]
}
```

## Examples

### Fine Detail Cutout

Cut out a dandelion head together with the seeds drifting away from it:

```json theme={"dark"}
{
  "model": "bria-rmbg-3.0",
  "input": {
    "image_urls": ["https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-dandelion-3dfee980c4a6.png"]
  }
}
```

### Keep Only the Product

Take a street-style photo and keep only the crochet cardigan, ready for a product listing:

```json theme={"dark"}
{
  "model": "bria-rmbg-3.0",
  "input": {
    "image_urls": ["https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-crochet-da4fe2ab38df.png"],
    "prompt": "only the crochet cardigan"
  }
}
```

### With Callback

Cut out a portrait with wind-blown hair and a sheer scarf, and receive the result by callback:

```json theme={"dark"}
{
  "model": "bria-rmbg-3.0",
  "callback_url": "https://your-domain.com/callback",
  "input": {
    "image_urls": ["https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-scarf-5b87af427ae2.png"]
  }
}
```

## Notes

* Each request processes one image. Send separate requests for multiple images.
* A request usually finishes within a minute; prompt-guided cutouts take longer than automatic ones.


## OpenAPI

````yaml api-manual/image-series/bria-rmbg-3-0.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: PoYo AI - Bria RMBG 3.0 API
  description: >-
    The Bria RMBG 3.0 API removes the background from one image and returns a
    transparent PNG at the input size, with an optional plain-language prompt to
    choose what to keep.
  version: 1.0.0
servers:
  - url: https://api.poyo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Bria RMBG 3.0
      summary: Submit Bria RMBG 3.0 Task
      description: >-
        Bria RMBG 3.0 background removal: one input image in, one transparent
        PNG cutout out.
      operationId: submitBriaRmbg30Task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              fine-detail-cutout:
                summary: Fine Detail Cutout
                value:
                  model: bria-rmbg-3.0
                  input:
                    image_urls:
                      - >-
                        https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-dandelion-3dfee980c4a6.png
              keep-only-product:
                summary: Keep Only the Product
                value:
                  model: bria-rmbg-3.0
                  input:
                    image_urls:
                      - >-
                        https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-crochet-da4fe2ab38df.png
                    prompt: only the crochet cardigan
              with-callback:
                summary: With Callback
                value:
                  model: bria-rmbg-3.0
                  callback_url: https://your-domain.com/callback
                  input:
                    image_urls:
                      - >-
                        https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-scarf-5b87af427ae2.png
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          enum:
            - bria-rmbg-3.0
          description: Bria RMBG 3.0 model identifier.
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for task completion or failure.
        input:
          type: object
          additionalProperties: false
          required:
            - image_urls
          description: >-
            Remove the background from one image. The task returns one
            transparent PNG file at the same width and height as the input.
          properties:
            image_urls:
              type: array
              minItems: 1
              maxItems: 1
              items:
                type: string
                format: uri
              description: >-
                Exactly 1 image URL to cut out. Must be an array. The URL must
                be a publicly accessible HTTP or HTTPS URL pointing to a JPEG,
                PNG, WebP, GIF, AVIF, HEIC, or HEIF image.
              example:
                - >-
                  https://storage.poyo.ai/models/bria-rmbg-3-0/examples/rmbg3-input-dandelion-3dfee980c4a6.png
            prompt:
              type: string
              maxLength: 2000
              description: >-
                Optional plain-language instruction for what to keep, up to 2000
                characters. Add something to the main subject ("the person with
                the mat and the plant"), leave something out ("the woman at her
                desk without the lamp"), or narrow the cutout ("only the
                chair"). Leave `prompt` empty to keep the most prominent subject
                of the photo.
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          description: >-
            Business status code. `200` means success; any other value means the
            request failed. Always check this field: some validation errors
            return HTTP 200 with `code: 400` in the body.


            - `200`: Success

            - `400`: Invalid request parameters

            - `401`: Missing or invalid API key

            - `402`: Insufficient credits

            - `403`: Permission denied

            - `404`: Resource not found

            - `408`: Request timeout

            - `429`: Rate limit exceeded

            - `500`: Internal server error

            - `502`: Upstream service error

            - `503`: Service unavailable


            See [Error Codes](/api-manual/error-codes) for details.
          enum:
            - 200
            - 400
            - 401
            - 402
            - 403
            - 404
            - 408
            - 429
            - 500
            - 502
            - 503
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-unified-1794470400-abcd1234
              description: Unique task identifier for status tracking
            status:
              type: string
              enum:
                - not_started
                - running
                - finished
                - failed
              example: not_started
              description: >-
                Task status. Always `not_started` right after submission. Use
                [Query Task Status](/api-manual/task-management/status) or
                `callback_url` to get later states.


                - `not_started`: Queued, waiting to be processed

                - `running`: Being generated

                - `finished`: Completed; results are in `files` or `output`

                - `failed`: Failed; details are in `error_message`
            created_time:
              type: string
              format: date-time
              example: '2026-11-12T10:30:00'
              description: ISO 8601 timestamp when the task was created
    ErrorResponse:
      type: object
      required:
        - code
        - error
      properties:
        code:
          type: integer
          example: 400
          enum:
            - 200
            - 400
            - 401
            - 402
            - 403
            - 404
            - 408
            - 429
            - 500
            - 502
            - 503
          description: >-
            Business status code. `200` means success; any other value means the
            request failed. Always check this field: some validation errors
            return HTTP 200 with `code: 400` in the body.


            - `200`: Success

            - `400`: Invalid request parameters

            - `401`: Missing or invalid API key

            - `402`: Insufficient credits

            - `403`: Permission denied

            - `404`: Resource not found

            - `408`: Request timeout

            - `429`: Rate limit exceeded

            - `500`: Internal server error

            - `502`: Upstream service error

            - `503`: Service unavailable


            See [Error Codes](/api-manual/error-codes) for details.
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
              example: Invalid request parameters
            type:
              type: string
              example: invalid_request_error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        All API endpoints require Bearer Token authentication.


        Create an API key: sign in to PoYo, open **Dashboard → API Key** at
        [poyo.ai/dashboard/api-key](https://poyo.ai/dashboard/api-key), and
        click to create a key.


        Add it to the request header:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.