---
title: "FLUX Pro Expand API & Playground - Comfy"
description: "FLUX Pro Expand by Black Forest Labs: Outpaints an image with per-side pixel expansion. Run it in your browser or via API. Typical cost: 10.6 credits per run."
canonical: https://comfy.org/hub/models/flux-pro-expand/
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 Expand

Outpaints an image with per-side pixel expansion.

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

10.6 credits /Run

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

## Playground

Input

Prompt

Image

-

Expand bottom

Add pixels below the image.

Expand left

Add pixels to the left of the image.

Expand right

Add pixels to the right of the image.

Expand top

Add pixels above the image.

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 Expand: Halftone city widened to a panorama](https://media.comfy.org/website/workshop/bfl/flux-pro-expand/halftone-city-widened-to-a-panorama.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-expand--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-expand

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 Fill](https://comfy.org/hub/models/flux-pro-fill/) | 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/) | — | — | — |
