by Black Forest Labs

Integrate FLUX.2 Klein 9B editing with ordered image arrays, source-shaped framing and its own image billing unit for asynchronous revisions.

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

About FLUX.2 Klein 9B

This route produces a revised still from prompt and image_urls. A useful implementation is a version stack: keep the input picture, submitted instruction and resulting asset together. Photo to pencil is an example of the style revision this interface can represent. Let users compare the result with its own source instead of whichever picture happens to be selected when the job finishes.

Call it with the model name black-forest-labs/flux-2-klein-9b/edit on POST /jobs/createTask, from $0.0163.

Introduction

FLUX.2 [klein] 9B Edit is the editing mode of Black Forest Labs' small, fast image model, released on 15 January 2026.

Choose a mode by starting material

What you haveMode
a written briefFLUX.2 Klein 9B Text to image
images to changeFLUX.2 Klein 9B Edit

Key features

Same person, new look

In our tests the face, hair and pose carried through changes of outfit and background. List what must stay, then describe the change.

Resize while you edit

Choose a shape and a size tier, and the edit comes back at 2048 pixels on the long side. With auto it keeps the source shape.

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

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

Outfit and scene swaps

Change the clothes, the room or the time of day while the people stay recognisable.

Quick variations of a photo

Several moods of one picture in the time of one coffee.

Combining up to three sources

A person, a place and an item brought into one frame, each named in the prompt.

Prompt guide & pro tips

Name what stays

Face, hair, pose, seat. Then describe the change in one or two sentences.

Name the new garments

Say the cut and fabric you want; in our tests edits followed the garments named in the prompt.

Change one thing at a time

For bigger transformations, chain two edits.

Pick a shape for 2k

Auto gives about one megapixel; choose a shape if you want the 2k tier.

Check hands and faces

Small models can slip on both. Try another seed if one does.

API quick start

Call the FLUX.2 Klein 9B 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-klein-9b/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-klein-9b/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 Klein 9B Edit Image endpoint

The source array accepts up to three images and cannot be empty. Its order should match the way the prompt refers to inputs. If your editor lets users assign references different roles, express those roles in the instruction rather than sending extra object properties. Keep the exact source sequence in your version record.

aspect_ratio defaults to auto, which keeps the first source image's shape. When a user chooses an explicit ratio, resolution selects the requested size tier. These related settings deserve a clear summary before submission: an auto-framed edit should not be described as a guaranteed square output simply because a general form default says 1k.

Write both the desired change and important preserved details in prompt. There is no dedicated negative prompt, mask, or output format control in this schema. A generic editing toolbar should expose only operations that compile to actual supported fields. Save optional seed with the rest of the request for comparison records.

Editing uses its own per-image unit without the text generation endpoint's size-rate table. Do not multiply an edit estimate by a creation tier adjustment. Fetch the quote for the final edit request, approve the USD maximum and read the completed costUsd when settling your project usage display.

The accepted task runs asynchronously. Poll recordInfo or process a signed task-level callback after verification, and update only the version linked to taskId. If a source is unavailable, preserve the instruction while the user repairs the link. If request validation fails, inspect the nonempty array, seed type and ratio enum before retrying.

FLUX.2 Klein 9B API questions

How much does the FLUX.2 Klein 9B API cost?

FLUX.2 Klein 9B starts at $0.0163 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 Klein 9B · 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 Klein 9B