# BFL Flux 2 Pro Edit API

> Flux 2 Pro Edit is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.

Source: https://www.sandbase.ai/models/bfl/flux-2/pro/edit
API reference: https://www.sandbase.ai/models/bfl/flux-2/pro/edit/docs

## Facts

- Provider: BFL
- Type: Image model
- Model ID: `bfl/flux-2/pro/edit`
- Price: $0.06 per run
- Capabilities: image to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bfl/flux-2/pro/edit",
  "images": [
    "https://static.sandbase.ai/examples/bfl/flux-2/pro/edit/input_images_0.png"
  ],
  "prompt": "Place realistic flames emerging from the top of the coffee cup, dancing above the rim",
  "output_format": "jpeg"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call BFL Flux 2 Pro Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "bfl/flux-2/pro/edit" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate BFL account?

No. One SandBase API key and balance gives you access to BFL Flux 2 Pro Edit and the other models in the catalog; you do not need to sign up with BFL separately.

## README

### Flux 2 Pro Edit

FLUX.2 [pro], BFL's production tier: high quality at a predictable per-image price. Edit or combine images with an instruction.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `images` | image URL[] | — | Images to edit or combine, Image 1, Image 2, … |
| `output_format` | `jpeg` / `png` | `jpeg` | Output file format. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | — | Output shape. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.06 per image.

| Request | Price |
|---|---|
| One image | $0.06 |

Failed runs are not charged.

#### Prompting

- Say which image is the base and what each other image contributes.
- List what must not change.

#### Limits

- One output image per request.

#### Also on SandBase

Other FLUX.2 endpoints: `bfl/flux-2/max/edit`, `bfl/flux-2/flex/edit`, `bfl/flux-2/dev/edit`, `bfl/flux-2/turbo/edit`, `bfl/flux-2/pro`.
