by Black Forest Labs

FLUX.2 Pro edit API: merge a person, product and place from up to 3 references, or relight a scene from noon to night, seedable, single per-image price.

black-forest-labs/flux-2-pro/edit
FLUX.2 Pro AI Image Generator online
  • Up to 2K
  • Up to 3 reference images
  • 9 aspect ratios
  • Create Image
  • Edit Image

About FLUX.2 Pro

FLUX.2 Pro edit takes a prompt and up to three image_urls and returns one image, typically in 45 to 120 seconds.

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

Introduction

FLUX.2 [pro] Edit runs Black Forest Labs' FLUX.2 [pro] on images you already have. It accepts one to three sources, applies the change you describe, and returns 1k or 2k in the source shape or one of nine shapes.

Choose a mode by starting material

What you haveMode
a written briefFLUX.2 [pro] Text to image
one to three images to change or combineFLUX.2 [pro] Edit

Key features

Multi-reference composites

Combine a person, a product and a place from separate photos. In our headphone ad the face, hair and cardigan and the headphones' design stayed as in the sources.

Scene and light changes

Swap the setting or relight a photo while the subject stays put. Our sunny street became a rainy neon night with raindrops on the blazer.

Text added in the edit

Add a headline to the picture in the same step. Ours was spelled as quoted.

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.
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.0578

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

Advertisements from separate assets

Bring a model photo, a product shot and a location together into one visual.

Mood variations

Show the same scene by day, at night or in rain for a client choosing a direction.

Product and place restyling

Change the background, light or style of a product, a room or a clothed portrait.

Prompt guide & pro tips

Number the sources

Say image 1 is the person, image 2 the product, image 3 the place, in upload order.

Name what must stay

After the change, list the face, outfit, pose or design that has to remain exactly as it was.

Change one thing at a time

A single clear change keeps the rest of the frame stable; chain edits instead of packing several into one.

Allow time

Edits took 45 to 120 seconds in our tests.

Keep it clothed and safe for work

This model is strict on people, so use it for products, places and clothed portraits.

API quick start

Call the FLUX.2 Pro 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-pro/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-pro/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.

About the FLUX.2 Pro Edit Image endpoint

It handles ad composites well: a person, a product and a setting combined with the product worn or held correctly when the prompt says how.

Relighting works by naming the time change while keeping the framing, for example the same street on a rainy night.

Portrait edits are moderated strictly; handle content_rejected gracefully.

seed is supported for consistent iterations.

A good request names the target exactly: the man from image 1 wears the headphones from image 2 over his ears on a rooftop at night.

FLUX.2 Pro API questions

How much does the FLUX.2 Pro API cost?

FLUX.2 Pro starts at $0.0578 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 Pro · 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 Pro