ImageBlack Forest LabsNew

FLUX Kontext Pro

Edit images with text instructions

model: "flux-kontext-pro"

API docsDocs for agents

Modes

One model id, every mode below. The fields you send pick the mode, and the price follows the mode.

ModeSelected byTypical price
Image editimage_url
Example request
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.040
Structure controlmodecontrol_image_url
Example request
{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg",
    "mode": "structure",
    "control_image_url": "https://example.com/image.jpg"
  }
}
$0.050

Input

Required

Prompt

Required

Image to edit. A public https URL, or an upload URL from POST /v1/uploads.

Optional
1

Count

Optional

Control image (https URL), with mode "structure".

Optional

Selects a mode that the other fields cannot: "structure" follows the edges or depth of a control image.

Optional

Follow the control image's edges (canny) or its depth.

Advanced options (4)

Provider settings beyond the main controls. Leave them empty to use the model's defaults.

Optional

Let the model rewrite the prompt for better results.

Optional
-

How strictly the model follows the prompt. Higher is more literal.

Optional

File format of the result.

Optional

Random seed. The same seed and input reproduce the same result.

Result

FLUX Kontext ProExample output

A real result from this model. Run it to see yours here.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-kontext-pro",
  "input": {
    "prompt": "man with the bycycle"
  }
}'
FLUX Kontext Pro 1FLUX Kontext Pro 2FLUX Kontext Pro 3FLUX Kontext Pro 4FLUX Kontext Pro 5FLUX Kontext Pro 6