---
title: FLUX.1 Kontext [pro] | Runware Docs
url: https://runware.ai/docs/models/bfl-flux-1-kontext-pro
description: Context aware FLUX.1 image editing and generation model
---
# FLUX.1 Kontext [pro]

![FLUX.1 Kontext [pro]](https://assets.runware.ai/covers/bfl-flux-1-kontext-pro.jpg)

FLUX.1 Kontext [pro] combines fast text to image generation with precise image editing. It supports reference images, local region edits, and full scene changes while preserving style and character identity. Ideal for iterative workflows in design, product visuals, and storytelling pipelines.

- **Status**: live
- **ID**: `bfl:3@1`
- Try in Playground
- **Creator**: Black Forest Labs
- **Release Date**: July 11, 2025
- **Zero Data Retention**: Yes
- **Capabilities**: Text to Image, Image to Image, Edit, Checkpoint

## Pricing

$0.04 per run · ~8s per request

**4 example generations**

- [reference-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-pro/examples#example-air-ambulance-incubator-deployment-visual) · 880×1184: `$0.04` (~8s)
- [text-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-pro/examples#example-aquaculture-sensor-campaign-hero) · 1392×752: `$0.04` (~11s)
- [text-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-pro/examples#example-avalanche-patrol-team-composite) · 1392×752: `$0.04` (~7s)
- [reference-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-pro/examples#example-tattoo-machine-cobalt-colorway) · 880×1184: `$0.04` (~9s)

times vary, measured end to end · [How pricing works](https://runware.ai/docs/models-api/pricing)

## Compatibility & Validation

`width` and `height` must be used together.

---

The following dimension combinations are supported:

| Configuration | Dimensions |
| --- | --- |
| `1K (21:9)` | `1568x672` |
| `1K (16:9)` | `1392x752` |
| `1K (4:3)` | `1184x880` |
| `1K (3:2)` | `1248x832` |
| `1K (1:1)` | `1024x1024` |
| `1K (2:3)` | `832x1248` |
| `1K (3:4)` | `880x1184` |
| `1K (9:16)` | `752x1392` |
| `1K (9:21)` | `672x1568` |

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageInference`

Identifier for the type of task being performed.

### [taskUUID](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [outputQuality](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-webhookurl)

- **Type**: `string`
- **Format**: `uri`

Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/models-api/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/models-api/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-uploadendpoint)

- **Type**: `string`
- **Format**: `uri`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [safety](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (1 property)`

Content safety checking configuration for image generation.

#### [checkContent](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`

Enable or disable content safety checking. Increases total generation time and adds a small charge on top of the generation cost.

### [ttl](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `20`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [referenceImages](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-inputs-referenceimages)

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`
- **Min items**: `1`
- **Max items**: `2`

List of reference images (UUID, URL, Data URI, or Base64).

**Core Parameters**

Primary parameters that define the task output.

### [model](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `bfl:3@1`

Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).

**Learn more** (3 resources):

- [Text To Image: Model Selection](https://runware.ai/docs/learn/text-to-image#model-selection) (learn)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/learn/image-inpainting#model-specialized-inpainting-models) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

### [positivePrompt](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-positiveprompt)

- **Type**: `string`
- **Required**: true
- **Min**: `2`
- **Max**: `3000`

Text prompt describing elements to include in the generated output.

**Learn more** (1 resource):

- [Prompts](https://runware.ai/docs/learn/prompts) (learn)

### [width](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-width)

- **Type**: `integer`
- **Required**: true
- **Paired with**: height

Width of the generated media in pixels.

**Learn more** (2 resources):

- [Dimensions](https://runware.ai/docs/learn/dimensions) (learn)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/learn/image-outpainting#dimensions-critical-for-outpainting) (learn)

### [height](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-height)

- **Type**: `integer`
- **Required**: true
- **Paired with**: width

Height of the generated media in pixels.

**Learn more** (2 resources):

- [Dimensions](https://runware.ai/docs/learn/dimensions) (learn)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/learn/image-outpainting#dimensions-critical-for-outpainting) (learn)

### [seed](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-seed)

- **Type**: `integer`
- **Min**: `0`
- **Max**: `4294967295`

Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.

**Features**

Standalone addons and post-processing features.

### [watermark](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark)

- **Path**: `advancedFeatures.watermark`
- **Type**: `object (6 properties)`

Configuration object for adding watermarks to generated videos. Watermarks can be applied using either text or image content with customizable positioning and appearance. You must provide either `text` or `image` content for the watermark, but not both.

**Text watermark**:

```json
"advancedFeatures": {
  "watermark": {
    "text": "© 2025 Company",
    "displayPosition": "bottom-right",
    "opacity": 0.6,
    "fontColor": "#ffffff",
    "bgColor": "#000000"
  }
}
```

**Image watermark**:

```json
"advancedFeatures": {
  "watermark": {
    "image": "c64351d5-4c59-42f7-95e1-eace013eddab",
    "displayPosition": "top-left",
    "opacity": 0.6
  }
}
```

**Tiled watermark**:

```json
"advancedFeatures": {
  "watermark": {
    "text": "PREVIEW",
    "tiled": true,
    "opacity": 0.4,
    "fontColor": "#cccccc"
  }
}
```

#### [text](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark-text)

- **Path**: `advancedFeatures.watermark.text`
- **Type**: `string`
- **Min**: `2`
- **Max**: `32`

Watermark text.

#### [image](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark-image)

- **Path**: `advancedFeatures.watermark.image`
- **Type**: `string`

Watermark image (UUID, URL, Data URI, or Base64).

#### [displayPosition](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark-displayposition)

- **Path**: `advancedFeatures.watermark.displayPosition`
- **Type**: `string`

Watermark position.

**Allowed values**: `top-left` `top-center` `top-right` `center-left` `center-center` `center-right` `bottom-left` `bottom-center` `bottom-right` `tiled`

#### [opacity](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark-opacity)

- **Path**: `advancedFeatures.watermark.opacity`
- **Type**: `float`
- **Min**: `0.1`
- **Max**: `1`
- **Step**: `0.01`

Watermark opacity.

#### [fontColor](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark-fontcolor)

- **Path**: `advancedFeatures.watermark.fontColor`
- **Type**: `string`

Text color in hex format.

#### [bgColor](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-advancedfeatures-watermark-bgcolor)

- **Path**: `advancedFeatures.watermark.bgColor`
- **Type**: `string`

Background color in hex format.

**Provider Settings**

Parameters specific to this model provider. These must be nested inside the \`providerSettings.bfl\` object.

### [promptUpsampling](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-providersettings-bfl-promptupsampling)

- **Path**: `providerSettings.bfl.promptUpsampling`
- **Type**: `boolean`

Enable automatic enhancement and expansion of the input prompt.

### [safetyTolerance](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#request-providersettings-bfl-safetytolerance)

- **Path**: `providerSettings.bfl.safetyTolerance`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `6`
- **Default**: `6`

Tolerance level for content moderation. Lower values are stricter; higher values are more permissive.

## Response Parameters

### [taskType](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageInference`

Identifier for the type of task this response belongs to.

### [taskUUID](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier echoed from the original request, used to match async responses to their tasks.

### [imageUUID](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-imageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-imageurl)

- **Type**: `string`
- **Format**: `uri`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-imagedatauri)

- **Type**: `string`
- **Format**: `uri`

Data URI of the output image.

### [seed](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-seed)

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/bfl-flux-1-kontext-pro#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### text-to-image (text-to-image)

![Aquaculture Sensor Campaign Hero](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/2947e5ad-2107-49b7-9962-3d49772800b9.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "f156ca96-74d0-4943-8942-17eed40066c9",
  "model": "bfl:3@1",
  "positivePrompt": "Create a premium commercial campaign photograph for marine aquaculture equipment. The clear hero subject is a rugged multiparameter water-quality sonde suspended vertically beneath the surface at an offshore oyster farm: a precisely engineered brushed titanium cylinder with dark graphite collars, perforated sensor guard, several visible probe tips, a reinforced yellow data cable, and small signs of authentic wet use. Use a dramatic split-level composition with the camera half above and half below the water. Underwater, the sonde fills the right third in crisp detail while mesh oyster baskets and longlines recede diagonally through cold emerald water; suspended particles, bubbles, soft caustic light, and realistic marine growth create depth without obscuring the product. Above water, show low steel-gray waves, orderly rows of orange farm buoys, a small utilitarian workboat in the middle distance, and a pale overcast North Atlantic horizon. Wide cinematic landscape framing, low waterline perspective, restrained slate-gray, kelp-green, titanium, and safety-orange palette. Natural documentary realism elevated to meticulous industrial advertising, tactile materials, physically accurate reflections and refraction, subtle cold dawn light, sharp product silhouette, no people in the foreground, no logo, no lettering, no interface, no packaging.",
  "width": 1392,
  "height": 752,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true
    }
  }
}
```

---

### text-to-image (text-to-image)

![Avalanche Patrol Team Composite](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/3979284d-235b-471c-8452-768f571b7cae.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "c508fcc9-0ec6-4c9c-bc33-a9c98d607edf",
  "model": "bfl:3@1",
  "positivePrompt": "Create a finished, photorealistic environmental group portrait for a regional mountain rescue service. Twelve avalanche patrollers stand in a relaxed horizontal formation outside a utilitarian alpine rescue garage at blue hour, wearing coordinated navy technical uniforms with restrained coral-red panels, ski boots, radios, helmets carried at their sides, and realistic signs of a working shift. Seamlessly add the team’s retiring golden retriever avalanche rescue dog as the clear central subject, seated proudly between two kneeling handlers and wearing a well-used yellow rescue harness. The dog must feel genuinely present in the original photograph: identical cool dusk lighting, accurate scale and perspective, soft contact shadow, paws pressing naturally into the snow, subtle reflected light from the open garage, and believable interaction as one handler rests a gloved hand on its shoulder. Behind them are organized rescue sleds, probe poles, ropes, skis, and a tracked snow vehicle, with no logos or readable text. Fresh snow, faint breath vapor, distant dark firs and a pale mountain ridge create a crisp winter setting. Symmetrical wide composition with generous landscape breathing room, eye-level 35mm documentary photography, direct but softened portable flash balanced with cobalt ambient light, sharp faces, natural skin texture, subdued navy, coral, yellow and icy blue palette. Warm, dignified, quietly celebratory mood; premium editorial annual-report photography, not an advertisement, no borders, no typography.",
  "width": 1392,
  "height": 752,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true
    }
  }
}
```

---

### reference-to-image (reference-to-image)

![Air Ambulance Incubator Deployment Visual](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/7fff49fe-53d3-42f3-9772-717330b7006a.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "54505751-41db-4add-8574-fb163e4182d4",
  "model": "bfl:3@1",
  "positivePrompt": "Create a photorealistic medtech deployment image by placing the exact neonatal transport incubator from the reference photograph inside a compact fixed-wing air-ambulance cabin. Preserve the incubator's recognizable design precisely: identical transparent chamber, access ports, padded interior, monitor, oxygen cylinders, control module, tubular frame, wheels, handles, cables, proportions, materials, and viewing angle. Do not redesign, simplify, duplicate, or replace any component.\n\nSecure the incubator naturally to a certified floor-track mounting system along the center aisle. Show a flight nurse in a navy medical jumpsuit at the right edge, partially visible and checking one restraint buckle without obscuring the product. The cabin should feel operational and credible: pale gray molded wall panels, overhead medical equipment rails, compact storage, oxygen fittings, quilted insulation details, and an oval aircraft window revealing a quiet blue pre-dawn airport apron. No patient is visible inside the chamber.\n\nCompose as a polished portrait-format sales-brochure photograph, with the incubator occupying the central lower two-thirds and remaining completely readable as the hero product. Use cool blue ambient dawn light through the window balanced by clean warm-white cabin task lights, restrained slate, ivory, and navy palette, crisp material detail, realistic contact shadows, accurate perspective, and subtle reflections on the clear canopy. Calm, prepared, clinically trustworthy mood. No logos, captions, interface graphics, watermarks, or legible text.",
  "width": 880,
  "height": 1184,
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/b4017bf0-0c98-4720-b18b-e9aee8369551.jpg"
    ]
  }
}
```

---

### reference-to-image (reference-to-image)

![Tattoo Machine Cobalt Colorway](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/9efbf12f-8653-4152-b3c3-616cd9cedc13.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "62144e79-32a2-47ac-a79c-c82fbafd7b1a",
  "model": "bfl:3@1",
  "positivePrompt": "Create a finished portrait-format ecommerce colorway image by editing the supplied tattoo machine photograph. Preserve the exact machine identity, silhouette, proportions, viewing angle, grip texture, needle cartridge, adjustment ring, screws, charging port, engraved calibration marks, machining details, and realistic material construction. Recolor only the matte-black machined aluminum body panels to a rich electric cobalt-blue anodized finish with subtle metallic depth and natural tonal variation. Keep the ribbed rubber grip and needle cartridge black, and keep all stainless-steel components silver. The new finish must follow every contour, edge, seam, highlight, and shadow convincingly, with no color bleeding onto adjacent parts. Present the machine as a premium product hero on a warm pale-gray seamless studio surface, upright in the same three-quarter orientation, with a restrained soft-edged shadow beneath it. Use crisp directional lighting from the upper left, controlled highlights on the blue anodized aluminum, clean commercial retouching, accurate neutral color, and generous negative space. Single product only, fully visible, centered slightly below the vertical midpoint. No hands, ink, cables, extra equipment, packaging, decorative props, added logos, captions, borders, or graphic overlays.",
  "width": 880,
  "height": 1184,
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/3e0cdd12-4927-43b8-a183-023297e216e5.jpg"
    ]
  }
}
```