Introduction
FLUX.2 [max] Edit runs Black Forest Labs' top-quality FLUX.2 model on photos you already have. It takes one to three sources and an instruction, and returns an image in the shape of the first source or in one of nine aspect ratios, at 1k or 2k.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a written brief | FLUX.2 Max Text to image |
| one to three photos to change or combine | FLUX.2 Max Edit |
Key features & highlights
Up to three references
Combine people and places from separate photos in one request. In our bookshop test two portraits and a room became one scene, with each face, hairstyle and outfit kept and the room's lamp light on both women.
Background and light changes
Swap a studio backdrop for a harbour at golden hour and relight the subject, with face, beard, expression and clothing unchanged.
One price per edit
An edit is billed per image at a single price, whatever the number of sources or the size tier. Refused requests are not charged.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Up to 5,000 characters. Say what to change and what must stay the same. at least 1 characters · at most 5000 characters |
image_urls | Yes | 1 to 3 source images, up to 10 MB each. Say in the prompt what each one contributes: a person, a room, a product. at least 1 items · at most 3 items |
aspect_ratio | No | auto (default) keeps the shape of the first source image at about one megapixel; or pick one of nine shapes from 21:9 to 9:21. The shape does not change the price. |
resolution | No | 1k (default) or 2k, used only when you pick an aspect ratio; with auto the result stays at about one megapixel. Edits cost the same at either tier. |
seed | No | Optional whole number from 0 to 2147483647. Reuse it with the same prompt and sources to compare changes more easily; it does not promise an identical image. |
Pricing
$0.076 / image
Billed per image at one price per edit, whatever the number of source images or the size tier. Failed or refused requests are not charged.
Use cases
Product and place photography
New backgrounds, new light and consistent scenes for catalogue and campaign images.
Everyday portrait retouching
Change the setting, light or style of an everyday portrait while the person stays recognisable.
Group scenes from separate photos
Bring people from individual portraits into one room or location.
Prompt guide & pro tips
Say what stays the same
After the change, list the faces, hair, clothing and pose that must not move.
Number your sources
Call them image 1, image 2 and image 3 in the order you uploaded them, and give each a role.
Use clean, everyday source photos
Edits are filtered strictly: in our tests Max refused portrait edits even at the Mild level. Products, places and plainly dressed portraits are the safe material.
Choose auto to keep the frame
Auto keeps the shape of the first source; pick a ratio and a tier when you want a different crop or 2k.
Allow up to two minutes
Our edits took about 45 to 120 seconds.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "black-forest-labs/flux-2-max/edit",
"input": {
"aspect_ratio": "auto",
"image_urls": [
"https://example.com/reference.png"
],
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"resolution": "1k"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.

























