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/edit on POST /jobs/createTask, from $0.028.
Introduction
FLUX.1 Kontext [pro] Edit takes one photo and a written instruction and returns the same photo with that instruction carried out. Black Forest Labs released Kontext on 29 May 2025 as a model that edits in context: it reads the picture you send rather than redrawing a scene from scratch, so faces, poses, rooms and lettering survive edits that would make a text-to-image model start over.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| one photo you want to change | FLUX.1 Kontext [pro] Edit |
| only a written scene | FLUX.1 Kontext [pro] Text to image |
Key features
Local changes, the rest left alone
Our vanity test swapped a champagne satin slip for black lace. The face, the hair, the bulb lights and the lipstick lettering on the mirror stayed where they were.
Weather, time and light on the same frame
The motel pool went from dusk to a rainy night: rain on the water, the neon reflected in wet tiles, the shirt soaked through, the man's face and pose unchanged.
Signs and lettering survive the edit
Text already in the photo is kept unless you ask to change it, and new text can be added in quotes.
Keeps your shape, or sets a new one
Leave the aspect ratio on auto and the result follows the source: a 1344x768 photo came back at 1328x752 and a square at 992x992. Pick a ratio to crop or extend instead.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The 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_expansion | No | Lets the model add detail to a short prompt. Default: false |
image_url | Yes | The picture to start from. |
output_format | No | File type of the result. jpeg · png · Default: jpeg |
prompt | Yes | Describe 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.
| 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
Mood and lighting variants
Day to night, dry to rain, warm to cold, without losing the person in the frame.
Continuity for a series
Feed each result back in as the next source to move a character through a sequence of small, controlled changes.
Fixing a detail
Change the wording of a sign, remove an object, recolour a garment.
Prompt guide & pro tips
Start with the change, then the anchors
"Change her slip into black lace" first, then "Keep her face, hair, pose and the mirror text exactly the same."
Name things by what they look like
Say "the champagne satin slip" rather than "her clothes"; the model finds the region by your description.
One change per pass
Several small edits in a row hold identity better than one long instruction that rewrites everything.
Use auto for the source shape
Only set a ratio when you want the frame cropped or extended.
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/edit 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/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 Pro API questions
How much does the FLUX.1 Kontext Pro API cost?
FLUX.1 Kontext Pro starts at $0.028 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 Pro · 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 Pro
- Endpoints
- FLUX.1 Kontext Pro · Create Image