---
title: "FLUX Pro Fill API & Playground - Comfy"
description: "FLUX Pro Fill by Black Forest Labs: Inpaints an image using a mask region. Run it in your browser or call it via API. Typical cost: 10.6 credits per run."
canonical: https://comfy.org/hub/models/flux-pro-fill/
lang: en
index: https://comfy.org/llms.txt
---

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

Black Forest Labs

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

# FLUX Pro Fill

Inpaints an image using a mask region.

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

10.6 credits /Run

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

## Playground

Input

Prompt

Image

- 787 B

Mask image (white edits, black keeps)

- 562 B

Advanced settings

Guidance

Adjust how closely the result follows your prompt.

Output format

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.

Steps

Adjust the number of generation steps. More steps can take longer.

Output

![FLUX Pro Fill: Winged octopus engraved on the pink chrome](https://media.comfy.org/website/workshop/bfl/flux-pro-fill/winged-octopus-engraved-on-the-pink-chrome.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#black-forest-labs)

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=bfl--flux-pro-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/bfl/flux-pro-1.0-fill

Fill in the Playground inputs to generate a request.

## More from Black Forest Labs

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

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [FLUX 2 Pro Text-to-Image](https://comfy.org/hub/models/flux-2-pro-text-to-image/) | 6.3 credits /Run | — | — |
| [FLUX.1 Kontext Pro Image Edit](https://comfy.org/hub/models/flux-1-kontext-pro-image-edit/) | 8.44 credits /Run | — | — |
| [FLUX 2 Max Text-to-Image](https://comfy.org/hub/models/flux-2-max-text-to-image/) | 14.8 credits /Run | — | — |
| [FLUX Pro 1.1 Ultra Text-to-Image](https://comfy.org/hub/models/flux-pro-1-1-ultra-text-to-image/) | 12.7 credits /Run | — | — |
| [FLUX.1 Kontext Max Image Edit](https://comfy.org/hub/models/flux-1-kontext-max-image-edit/) | 16.88 credits /Run | — | — |
| [FLUX 3 Video Text-to-Video](https://comfy.org/hub/models/flux-3-video-text-to-video/) | — | 720p – 1080p | 5 – 20s |
| [FLUX 3 Video Image-to-Video](https://comfy.org/hub/models/flux-3-video-image-to-video/) | — | 720p – 1080p | 5 – 20s |
| [FLUX Tools Erase](https://comfy.org/hub/models/flux-tools-erase/) | — | — | — |
| [FLUX Virtual Try-On](https://comfy.org/hub/models/flux-virtual-try-on/) | — | — | — |
| [FLUX Pro Expand](https://comfy.org/hub/models/flux-pro-expand/) | 10.6 credits /Run | — | — |
| [FLUX Video Upscale](https://comfy.org/hub/models/flux-video-upscale/) | — | — | — |
| [FLUX Pro 1.1 Text-to-Image](https://comfy.org/hub/models/flux-pro-1-1-text-to-image/) | — | — | — |
