---
title: "Bria Generative Fill API & Playground - Comfy"
description: "Bria Generative Fill: Generates objects or scenery inside a masked image region. Run it in your browser or call it via API. Typical cost: 9.05 credits per run."
canonical: https://comfy.org/hub/models/bria-generative-fill/
lang: en
index: https://comfy.org/llms.txt
---

[Models](https://comfy.org/hub/models/)

Bria

[Edit images](https://comfy.org/hub/models/?useCase=edit-images)

# Bria Generative Fill

Generates objects or scenery inside a masked image region.

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

9.05 credits /Run

- [inpaint](https://comfy.org/hub/models/?q=inpaint)
- [mask](https://comfy.org/hub/models/?q=mask)
- [image-edit](https://comfy.org/hub/models/?q=image-edit)

## Playground

Input

Prompt

Reference image

Provide the reference image or images used to guide the result.

-

Mask

Provide a mask: white fills, black keeps.

-

Advanced settings

Negative prompt

Keep transparency

Retain transparent areas from the input image.

Prompt enhancement

Let the model expand or refine your prompt before generation.

Seed

Reuse a seed with the same inputs to make results more repeatable.

Output

![Bria Generative Fill: Golden portal in the archway](https://media.comfy.org/website/workshop/bria/generative-fill/golden-portal-in-the-archway.png)

Example

## Try an example

-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#bria)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=bria--generative-fill--edit-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/bria/image-edit-gen-fill

Fill in the Playground inputs to generate a request.

## More from Bria

Compare Bria's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [Bria FIBO Image Edit](https://comfy.org/hub/models/bria-fibo-image-edit/) | 8.44 credits /Run | — | — |
| [Bria Eraser](https://comfy.org/hub/models/bria-eraser/) | 6.03 credits /Run | — | — |
| [Bria Expand Image](https://comfy.org/hub/models/bria-expand-image/) | 6.03 credits /Run | — | — |
| [Bria Green Screen Video](https://comfy.org/hub/models/bria-green-screen-video/) | — | — | — |
| [Bria Increase Resolution](https://comfy.org/hub/models/bria-increase-resolution/) | 6.03 credits /Run | — | — |
| [Bria Replace Video Background](https://comfy.org/hub/models/bria-replace-video-background/) | — | — | — |
| [Bria RMBG 2.0](https://comfy.org/hub/models/bria-rmbg-2-0/) | 3.8 credits /Run | — | — |
| [Bria Remove Video Background](https://comfy.org/hub/models/bria-remove-video-background/) | — | — | — |
