by Black Forest Labs

Draw a scene from text, then edit faces, outfits and lettering in place

black-forest-labs/flux-1-kontext-pro/text-to-image
FLUX.1 Kontext Pro AI Image Generator online
  • 6 aspect ratios
  • Create Image
  • Edit Image

About FLUX.1 Kontext Pro

Draw a scene from text, then edit faces, outfits and lettering in place.

Call it with the model name black-forest-labs/flux-1-kontext-pro/text-to-image on POST /jobs/createTask, from $0.028.

Introduction

FLUX.1 Kontext [pro] Text to image is the faster of the two commercial Kontext models that Black Forest Labs released on 29 May 2025. Kontext was built as an in-context model: the same network that draws a picture from a sentence can later take that picture back and change one thing about it. This endpoint is the first half of that loop. Write a scene, get a photograph of about one megapixel, and send the keeper to the edit endpoint when you want a different outfit, a different light or a corrected sign.

Choose a mode by starting material

What you haveMode
a written scene and nothing elseFLUX.1 Kontext [pro] Text to image
one photo you want to changeFLUX.1 Kontext [pro] Edit

Key features

Text that lands where you put it

Kontext [pro] reads quoted words as lettering to draw. Our vanity test asked for a lipstick note on the mirror and got "Room 412 - Midnight" in a hand-written red stroke on the glass, and the motel test got "PALM COURT" as a pink neon script sign, both spelled as written.

Six shapes, one megapixel each

Square, two widescreen shapes, two portrait shapes and an ultra-wide 21:9. Each comes back at roughly one megapixel: 1280x720 at 16:9, 864x1152 at 3:4, 1520x656 at 21:9 in our runs.

Built to be edited afterwards

Pictures from this endpoint go straight into the edit endpoint. The same model then changes clothing, weather or text while the face and pose stay put, which is why a scene drawn here is a good first frame for a series.

Quick turnaround

Most of our text-to-image runs came back in 10 to 30 seconds, including the 21:9 and 9:16 shapes.

Request parameters

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

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

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

Character and wardrobe boards

Draw a person once in a setting that suits your story, then branch that frame into outfits and moods with edits instead of re-rolling a new face every time.

Signage, notes and set dressing

Hotel doors, neon signs, handwritten notes and labels that have to say a specific thing in a specific place.

Social and campaign frames

Vertical 9:16 frames for stories, 16:9 for headers and 21:9 for banners from the same written brief.

Prompt guide & pro tips

Describe the shot, not a list of tags

Who, what they wear, where they are, where the light comes from and what lens it feels like. Kontext [pro] follows plain sentences better than strings of keywords.

Quote every word that must appear

Put the exact lettering in quotes and say where it goes: on the mirror, above the door, on a ticket.

Let expansion help with short prompts

A one-line prompt can come back plain. Switch on prompt expansion to let the model add detail, or keep it off when every word of your brief matters.

Plan for the edit step

If you know you will change the outfit later, describe the face, hair and pose clearly now; that is what the edit will hold on to.

API quick start

Call the FLUX.1 Kontext 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-1-kontext-pro/text-to-image 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-pro/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "aspect_ratio": "1:1",
    "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 Pro API questions

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

FLUX.1 Kontext Pro starts at $0.028 per image with Create 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 is the model name for FLUX.1 Kontext Pro in the API?

Put black-forest-labs/flux-1-kontext-pro/text-to-image for Create Image; black-forest-labs/flux-1-kontext-pro/edit for Edit Image in the model field of POST /jobs/createTask.

What is FLUX.1 Kontext [pro]?

It is the faster commercial tier of Black Forest Labs' Kontext family, announced on 29 May 2025. Kontext models generate from text and also edit an existing picture in context, which means they read the photo you send instead of redrawing the whole scene.

How is an in-context edit different from regenerating?

A regenerated image starts from noise, so faces and rooms drift. Kontext [pro] starts from your photo and changes only what the instruction names; in our vanity test the face, hair, lights and mirror lettering stayed while the slip became black lace.

Can I keep the same person across several edits?

Yes. Use each result as the source of the next edit and repeat the anchors in every instruction. Small steps hold identity better than one long instruction.

Can it write or change text inside the image?

Yes. Put the words in quotes and name the surface they sit on. Our runs drew a lipstick note reading Room 412 - Midnight on a mirror and a PALM COURT neon sign, both spelled as quoted, and kept them through later edits.

Which languages can I write prompts in?

Any. Kontext [pro] works in English, so other languages are translated automatically before rendering. A Japanese prompt in our tests produced the scene it described. For exact lettering, write the quoted words in English.

What are the limits of the FLUX.1 Kontext Pro API?

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

Can I try FLUX.1 Kontext Pro without writing code?

Run FLUX.1 Kontext Pro in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All FLUX models

More about FLUX.1 Kontext Pro