Flux 2 Flex Edit
bfl/flux-2/flex/editFlux 2 Flex Edit by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.
- Base price
- $0.12USD / run
- Execution
- async
- Model type
- image
- Input fields
- 7
Try the model
Playground
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.12 / run
Context & modalities
- Input
- Schema-defined
- Output
- image
Capabilities
- Chat
- Not supported
- Vision
- Not supported
- Reasoning
- Not supported
- Structured output
- Not supported
- Function calling
- Not supported
- Audio input
- Not supported
Access
- Provider
- BFL
- Model ID
- bfl/flux-2/flex/edit
- Execution
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
Human preference
Arena
Elo ratings from blind side-by-side votes, compared with other image and video models.
Rankings sourced from Artificial Analysis Arena
- Leaderboard
- Image Editing
- Rank
- #37 of 69
- Elo
- 1012 ±20
- Gap to #1
- −186
Image-editing arena: people pick the better of two edits of the same image and instruction, without seeing the model names.
- #32Seedream 4.51040±14
- #33Wan 2.71037±14
- #34HunyuanImage 3.0 (Tencent Cloud)1023±18
- #35FLUX.2 [dev] Flash1021±21
- #36FLUX.2 [dev] Turbo1014±21
- #37FLUX.2 [flex]1012±20
- #38FLUX.2 [klein] 9B1011±14
- #39FLUX.2 [pro]1008±17
- #40Step Image Edit 21005±14
- #41FLUX.2 [dev]1000
API README
Flux 2 Flex Edit
FLUX.2 [flex], the tunable tier: adjust steps and guidance for typography-heavy or detailed work. 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, … |
guidance_scale | number 1.5–10 | 3.5 | How strictly to follow the prompt. |
num_inference_steps | integer 2–50 | 28 | More steps add detail and time. |
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.12 per image.
| Request | Price |
|---|---|
| One image | $0.12 |
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/pro/edit, bfl/flux-2/dev/edit, bfl/flux-2/turbo/edit, bfl/flux-2/flex.
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bfl/flux-2/flex/edit",
"images": [
"https://static.sandbase.ai/examples/bfl/flux-2/flex/edit/input_images_0.png"
],
"prompt": "Change colors of the vase. In a cozy living room setting, visualize a gradient vase placed on a table, flowing from rich #6a0dad to soft #ff69b4. Add an artistic carving text with a big font on vase says \"FLEX\" in the middle.",
"output_format": "jpeg",
"guidance_scale": 3.5,
"num_inference_steps": 28
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Choose your model
Compare models
| Model | Type | Default price | Released |
|---|---|---|---|
Flux 2 Flex EditThis model BFL | Image | $0.12 / run | Nov 25, 2025 |
BFL | Image | $0.05 / run | Oct 1, 2026 |
BFL | Image | $0.05 / run | Oct 1, 2026 |
BFL | Image | $0.02 / run | Jan 15, 2026 |
BFL | Image | $0.02 / run | Jan 15, 2026 |
BFL | Image | $0.01 / run | Jan 15, 2026 |
Questions
FAQ
How do I call BFL Flux 2 Flex Edit through SandBase?
Create a SandBase API key, then send requests with the model ID "bfl/flux-2/flex/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 Flex Edit and the other models in the catalog; you do not need to sign up with BFL separately.

