by Black Forest Labs

Load Your Own LoRAs

black-forest-labs/flux-2-dev-lora/edit
FLUX.2 Dev LoRA AI Image Generator online
  • Up to 2K
  • Up to 3 reference images
  • 9 aspect ratios
  • Loads your own LoRA
  • Create Image
  • Edit Image

About FLUX.2 Dev LoRA

FLUX.2 Dev LoRA runs Black Forest Labs' open 32-billion-parameter FLUX.2 Dev with up to three of your own LoRA files, for text to image at 1K or 2K and edits from up to three reference photos.

Call it with the model name black-forest-labs/flux-2-dev-lora/edit on POST /jobs/createTask, from $0.036.

Introduction

FLUX.2 Dev LoRA Image Edit changes or combines one to three photos on FLUX.2 [dev], Black Forest Labs' 32-billion-parameter open-weights model, with up to three of your own LoRA files loaded. Describe the finished picture, name what must stay, and get one image back.

Choose a mode by starting material

What you haveMode
one to three photos to change or combineFLUX.2 Dev LoRA Image Edit
a written description onlyFLUX.2 Dev LoRA Text to image

Key features

A LoRA on top of the edit

Load a style LoRA and the edit takes its look: in our tests a vintage colour-photo LoRA and a painted-interior LoRA restyled the whole frame while the faces stayed recognisable.

Up to three references

List the photos in the order your prompt mentions them. In our test three travellers from three separate portraits were seated at one dining-car table with all three faces intact.

Framing that follows the source

With the aspect ratio on auto the result keeps the first photo's shape at about one megapixel. Pick a ratio and 2k for a new crop or more pixels; every one of the 18 sizes came back exactly as requested.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 9:21 · Default: auto
image_urlsYesPhotos to edit or combine. Say in the prompt what each one adds.
lorasNoAdd LoRA weights compatible with this model to guide its style or character. Default: []
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 2k · Default: 1k
seedNoUse the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per image
Standard$0.036

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

Use cases

A new outfit, place and light for the same person

Move a traveller from a foggy platform to a lamplit dining car, swap the coat for an open shirt or a velvet dress, and keep the face for a whole series of shots.

Two or three people in one scene

Bring people from separate portraits into one frame for a couple shot or a small cast, then describe where each of them sits and what they wear.

Restyling photos in a custom look

Add a style LoRA to turn a set of photos into vintage colour prints or quiet painted interiors, so every edit in a campaign shares one look.

Prompt guide & pro tips

Describe the result, not the removal

Write "the same woman, now at night in a burgundy velvet dress" rather than "remove her coat". Instruction-only prompts sometimes returned the source almost unchanged in our tests.

Say what stays

End with "keep her face exactly as it is" or "keep both faces". It held faces well in our tests, including with a LoRA loaded.

Number your people

When combining photos, write "the man from image 1 and the woman from image 2" and describe where each of them is.

Start on auto

Leave the aspect ratio on auto first, then choose a ratio and 2k once you like the content.

API quick start

Call the FLUX.2 Dev LoRA API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model black-forest-labs/flux-2-dev-lora/edit and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "black-forest-labs/flux-2-dev-lora/edit",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "image_urls": [
      "https://media.popnow.ai/influencer/examples/marco.webp"
    ],
    "aspect_ratio": "auto",
    "resolution": "1k"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

FLUX.2 Dev LoRA API questions

How much does the FLUX.2 Dev LoRA API cost?

FLUX.2 Dev LoRA starts at $0.036 per image with Edit Image, its lowest-priced task. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What are the limits of the FLUX.2 Dev LoRA · Edit Image API?

Resolutions: 1K · 2K; Aspect ratios: auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 +4; Reference images: 3; Prompt length (characters): 5,000; Largest upload: 10 MB. Requests outside these limits are rejected before anything is charged.

More about FLUX.2 Dev LoRA