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 have | Mode |
|---|---|
| a written scene and nothing else | FLUX.1 Kontext [pro] Text to image |
| one photo you want to change | FLUX.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
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Describe what you want to make. |
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 21:9 · Default: 1:1 |
output_format | No | File type of the result. jpeg · png · Default: jpeg |
enable_prompt_expansion | No | Lets 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.
| Option | USD 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
- 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.
- 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.
- 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
- FLUX.2 Max APITop-tier FLUX: photoreal light and exact brand colorsFrom $0.07 per image
- FLUX.3 Image APIBlack Forest Labs' photoreal model: 1024×1024 square images and 4-image editsFrom $0.0408 per image
- FLUX 3 Klein Base LoRA APIFLUX 3 Klein Base that loads your own LoRAsFrom $0.042 per image
- FLUX 3 Klein Base APIFull-quality FLUX 3 Klein images and edits up to 2KFrom $0.036 per image
- FLUX 3 APIVideo with synced sound and a quick draft tierFrom $0.30 for a 5-second clip
- FLUX.2 Klein 9B LoRA APIFast FLUX.2 Klein 9B that loads up to three of your LoRAsFrom $0.018 per image
- FLUX.2 Klein Base 9B LoRA APIUndistilled Klein 9B for varied looks with your LoRAsFrom $0.024 per image
- FLUX.2 Klein 4B LoRA APISmall, quick FLUX.2 Klein 4B with your own LoRAsFrom $0.0156 per image
- FLUX.2 Klein Base 4B LoRA APIUndistilled Klein 4B that loads your own LoRAsFrom $0.018 per image
- FLUX.2 Klein 9B APIFast FLUX edits that keep faces and poses intactFrom $0.011 per image
- FLUX.2 Klein 4B APIThe smallest, quickest FLUX for rapid draftsFrom $0.0093 per image
- FLUX.2 Dev LoRA APIFLUX.2 Dev images and edits with your own LoRAsFrom $0.0216 per image
- FLUX.2 Pro APIPhotoreal images with readable text and hex color controlFrom $0.03 per image
- FLUX.2 Flex APISpells headlines and labels exactly as writtenFrom $0.0578 per image
- FLUX.2 Dev APIOpen-weights FLUX that can merge people into one sceneFrom $0.0116 per image
- FLUX.1 Krea Dev LoRA APIPhotographic FLUX.1 Krea with your own LoRAsFrom $0.024 per image
- FLUX.1 Kontext Max APIPremium Kontext for busy scenes, detailed lettering and whole-image restylesFrom $0.056 per image
- FLUX.1 Kontext Pro APIDraw a scene from text, then edit faces, outfits and lettering in placeFrom $0.028 per image
- FLUX.1 Dev ControlNet LoRA APIPose, depth or edge control on FLUX.1 with your LoRAsFrom $0.036 per image
- FLUX.1 Fill Dev LoRA APIMasked inpainting on FLUX.1 Fill with your own LoRAsFrom $0.042 per image
- FLUX.1 Dev LoRA APIClassic FLUX.1 Dev with up to three of your LoRAsFrom $0.018 per image
- FLUX.1 Schnell LoRA APIFast FLUX.1 Schnell that loads your own LoRAsFrom $0.006 per image
More about FLUX.1 Kontext Pro
- Endpoints
- FLUX.1 Kontext Pro · Edit Image