FLUX.1 Kontext [dev]
bfl/flux-2/kontext/devFlux 2 Kontext Dev 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.03USD / run
- Execution
- async
- Model type
- image
- Input fields
- 7
Try the model
Playground
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.03 / 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/kontext/dev
- 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
- #71 of 77
- Elo
- 883 ±21
- Gap to #1
- −316
Image-editing arena: people pick the better of two edits of the same image and instruction, without seeing the model names.
- #66FLUX.1 Kontext [pro]916±19
- #67FIBO Edit915±19
- #68SeedEdit 3.0901±20
- #69LongCat Image897±20
- #70Qwen Image Edit889±20
- #71FLUX.1 Kontext [dev]883±21
- #72HiDream-O1-Image-Dev880±15
- #73GLM-Image824±22
- #74Bagel792±25
- #75OmniGen V2785±23
API README
FLUX.1 Kontext [dev]
FLUX.1 Kontext [dev] edits a single image from an instruction: change objects, text, or style while keeping the rest consistent.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
image | image URL, required | — | Image to edit. JPEG, PNG, or WebP URL. |
guidance_scale | number 1–20 | 2.5 | How strictly to follow the prompt. |
num_inference_steps | integer 10–50 | 28 | More steps add detail and time. |
output_format | jpeg / png | jpeg | Output file format. |
resolution_mode | auto / match_input / 1:1 / 16:9 / 21:9 / 3:2 / 2:3 / 4:5 / 5:4 / 3:4 / 4:3 / 9:16 / 9:21 | match_input | match_input keeps the input size; or choose a ratio. |
seed | integer | random | Fix it to compare prompt changes. |
Billing
$0.025 per image.
| Request | Price |
|---|---|
| One image | $0.025 |
Failed runs are not charged.
Prompting
- State the change and what must stay the same.
Limits
- One input image.
Also on SandBase
Related: bfl/flux-2/dev/edit (FLUX.2, multi-image).
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/kontext/dev",
"image": "https://static.sandbase.ai/examples/bfl/flux-2/kontext/dev/input_image_0.webp",
"prompt": "Change the setting to a day time, add a lot of people walking the sidewalk while maintaining the same style of the painting",
"output_format": "jpeg",
"guidance_scale": 2.5,
"resolution_mode": "match_input",
"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.1 Kontext [dev]This model BFL | Image | $0.03 / run | May 28, 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.1 Kontext [dev] through SandBase?
Create a SandBase API key, then send requests with the model ID "bfl/flux-2/kontext/dev" 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.1 Kontext [dev] and the other models in the catalog; you do not need to sign up with BFL separately.

