by Black Forest Labs

Use FLUX 3 Klein Base editing for image revisions with ordered source arrays, automatic source framing, size tiers and explicit result formats.

black-forest-labs/flux-3-klein-base/edit
FLUX 3 Klein Base AI Image Generator online
  • Up to 2K
  • Up to 3 reference images
  • 15 aspect ratios
  • Create Image
  • Edit Image

About FLUX 3 Klein Base

The edit route requires prompt and image_urls. It suits a scene versioning tool where a user revises an existing composition rather than starts from a blank canvas. Studio to cafe is a catalog example of that workflow. Your application should preserve the earlier image and show the new version as a related asset, rather than destructively overwriting the source.

Call it with the model name black-forest-labs/flux-3-klein-base/edit on POST /jobs/createTask, from $0.054.

Introduction

FLUX 3 Klein Base Image editing changes or combines one to three source images from a written instruction on Black Forest Labs' FLUX 3 Image Klein Base, the undistilled 5.6B checkpoint. Refer to sources as image 1, image 2 and image 3, keep the first image's shape with auto or pick one of fifteen, and choose 1k or 2k.

Choose a mode by starting material

What you haveMode
a written descriptionFLUX 3 Klein Base Text to image
one to three images to change or combineFLUX 3 Klein Base Image editing

Key features

Garments from a product shot

Give the person as image 1 and a garment photographed on a hanger as image 2, and the edit dresses one in the other.

Same person, new place

Face, beard and build carried through a full change of outfit and setting: a hiker in a red jacket in a snowy forest became the same man in an open linen shirt on a cedar bench. Short, concrete instructions held faces best.

Combine up to three images

Two separate photos of two women became one scene on a sauna bench in matching dresses, both faces recognisable. With three sources, say what each one brings so nothing is dropped.

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 · 4:5 · 5:4 · 21:9 · 9:21 · 2:1 · 1:2 · 3:1 · 1:3 · Default: auto
image_urlsYesPhotos to edit or combine. Say in the prompt what each one adds.
output_formatNoFile type of the result. jpeg · png · webp · Default: jpeg
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
resolution 1K$0.054
resolution 2K$0.216

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

Lookbooks and styling

Put a garment from a product photo on a model from another photo, in a new place and light, for lookbooks and mood boards.

Location and wardrobe changes

Move a person into a new setting and outfit in one pass while keeping who they are, for character sheets and series.

Prompt guide & pro tips

Use image numbers

Write image 1, image 2 and image 3 in upload order and give each a role: the woman from image 1, the dress from image 2. The first image also sets the shape when the aspect ratio is auto.

Protect first, then change

Start with what must stay the same, such as face, hair and build, then describe the change: garment, place, pose and light. The model may leave clothing in place, so say exactly what the person should wear.

API quick start

Call the FLUX 3 Klein Base 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-3-klein-base/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-3-klein-base/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",
    "output_format": "jpeg"
  }
}'

# 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 3 Klein Base Edit Image endpoint

Supply up to three source images and refer to their positions as image 1, image 2 and image 3. Explain what changes and what should remain. Store this array in the same order displayed to the author. Sorting URLs for caching can change the meaning of the prompt, so any cache key should represent the ordered sequence.

aspect_ratio defaults to auto on this route, preserving the first source image's shape. That makes source position important even before considering the written instruction. Offer explicit ratios when a project needs a new layout, and preview that choice in the revision dialog. The creation endpoint has different ratio defaults and should use a separate form configuration.

resolution accepts the published size tiers, and output_format selects jpeg, png or webp. Keep a chosen format with the completed asset so a later export action does not mislabel the file. A seed can help organize comparison runs, but the application should still store the full instruction and source set for every take.

The edit meter is per output image with a rate determined by resolution. Do not calculate its expected cost from a previous text-only quote, because the endpoint has its own rate rows. Request a quote after the source list and size are final, authorize the stated USD maximum and display settled costUsd once the revision completes.

Associate taskId with a specific version before returning the user to the board. A verified task callback can update that version, while recordInfo is the polling alternative. If an image link is invalid, preserve the remaining references and ask for a repair. If validation fails, check array bounds and enum spelling instead of dropping context or retrying unchanged JSON.

Examples

Studio to cafe
Studio to cafeExamples

FLUX 3 Klein Base API questions

How much does the FLUX 3 Klein Base API cost?

FLUX 3 Klein Base starts at $0.054 per image with Edit Image, its lowest-priced task. Prices by option: 1K $0.054 per image, 2K $0.216 per image. 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 3 Klein Base · Edit Image API?

Resolutions: 1K · 2K; Aspect ratios: auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 +10; 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 3 Klein Base