by Black Forest Labs

Edit Image

black-forest-labs/flux-1-kontext-max/edit
FLUX.1 Kontext Max AI Image Generator online
  • 6 aspect ratios
  • Create Image
  • Edit Image

About FLUX.1 Kontext Max

Premium Kontext for busy scenes, detailed lettering and whole-image restyles.

Call it with the model name black-forest-labs/flux-1-kontext-max/edit on POST /jobs/createTask, from $0.056.

Introduction

FLUX.1 Kontext [max] Edit restyles or changes one photo from a written instruction using Black Forest Labs' premium Kontext model, released on 29 May 2025. It is the tier to reach for when an edit touches the whole frame, such as a new era, a new time of day or a new season, and you still need the people and the lettering to come through intact.

Choose a mode by starting material

What you haveMode
one finished photo to restyle or changeFLUX.1 Kontext [max] Edit
a written scene with no picture yetFLUX.1 Kontext [max] Text to image

Key features

Whole-frame restyles that keep the cast

Our rooftop couple became a 1950s black-and-white noir still with hard key light. Both faces, the embrace and the gown's silhouette carried over; the wall sign stayed readable, slightly cropped by the new framing.

Several changes in one instruction

Kontext [max] handled three changes at once in the cabin edit: light, garment and prop. Each was carried out without disturbing the rest.

Shape follows the source

On auto the result keeps the source framing; a 16:9 rooftop came back at 1328x752 and a 3:4 cabin at 864x1152.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. auto · 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 21:9 · Default: auto
enable_prompt_expansionNoLets the model add detail to a short prompt. Default: false
image_urlYesThe picture to start from.
output_formatNoFile type of the result. jpeg · png · Default: jpeg
promptYesDescribe what you want to make.

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

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

Period and genre looks

Film noir, 1970s colour film, glossy magazine: one photograph re-shot in another era for a campaign or a mood board.

Continuity across a day

Morning, golden hour and night versions of the same scene with the same people in it.

Recovering a near-miss

Fix the one thing that is off in an otherwise good frame instead of generating again.

Prompt guide & pro tips

Say the look, then the anchors

"Restyle as a 1950s black-and-white film noir still" and then "keep both faces, their pose and the sign exactly as they are".

Mention lettering you want kept

Name the sign or label by its words so the edit treats it as something to preserve.

Crop on purpose

Choose a ratio only when you want a new frame; otherwise auto avoids unexpected crops.

Review faces after a big restyle

Era and lighting changes are the hardest test for identity. Compare the result with the source side by side, and if a face drifts, repeat the restyle with the face named first in the list of things to keep.

API quick start

Call the FLUX.1 Kontext Max 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-1-kontext-max/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-1-kontext-max/edit",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "aspect_ratio": "auto",
    "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.

FLUX.1 Kontext Max API questions

How much does the FLUX.1 Kontext Max API cost?

FLUX.1 Kontext Max starts at $0.056 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.1 Kontext Max · Edit Image API?

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

More about FLUX.1 Kontext Max