# BFL Flux 2 Max Edit API

> Flux 2 Max 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/max/edit
API reference: https://www.sandbase.ai/models/bfl/flux-2/max/edit/docs

## Facts

- Provider: BFL
- Type: Image model
- Model ID: `bfl/flux-2/max/edit`
- Price: $0.10 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/max/edit",
  "images": [
    "https://static.sandbase.ai/examples/bfl/flux-2/max/edit/input_images_0.jpg"
  ],
  "prompt": "A high-fashion magazine cover featuring an android in an avant-garde geometric cloth dress, with logo prints from @Image1. The backdrop is an eye-catching scenery. The title text '"'"'FAL MAGAZINE'"'"' spans the top in bold white serif font. Overlay text at the bottom right reads '"'"'THE FUTURE OF AI'"'"' in a sleek, thin sans-serif font.",
  "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 Max Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "bfl/flux-2/max/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 Max Edit and the other models in the catalog; you do not need to sign up with BFL separately.

## README

### Flux 2 Max Edit

FLUX.2 [max], BFL's highest-quality FLUX.2 tier, with the best prompt following and detail. 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.10 per image.

| Request | Price |
|---|---|
| One image | $0.10 |

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/pro/edit`, `bfl/flux-2/flex/edit`, `bfl/flux-2/dev/edit`, `bfl/flux-2/turbo/edit`, `bfl/flux-2/max`.
