---
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] 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.

- **ID**: `bfl:3@1`
- **Status**: live
- **Creator**: Black Forest Labs
- **Release Date**: July 11, 2025
- **Capabilities**: Image to Image, Image Editing

## Pricing

Each image generation costs $0.04 at 1024x1024.

- **1024x1024**: `$0.04`

## 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`

Specifies a webhook URL where JSON responses will be sent 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/platform/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 complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/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 (2 properties)`

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`
- **Default**: `false`

Enable or disable content safety checking. When enabled, defaults to `fast` mode.

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

- **Path**: `safety.mode`
- **Type**: `string`
- **Default**: `none`

Safety checking mode for image generation.

**Allowed values**:

- `none` Disables checking.
- `fast` Performs a single check.

### [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`
- **Default**: `false`

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`

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

**Generation Parameters**

Core parameters for controlling the generated content.

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

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

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [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** (2 resources):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [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):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

### [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):

- [Image To Image: Dimensions Changing Aspect Ratio](https://runware.ai/docs/guides/image-to-image#dimensions-changing-aspect-ratio) (guide)
- [Image Outpainting: Dimensions Critical For Outpainting](https://runware.ai/docs/guides/image-outpainting#dimensions-critical-for-outpainting) (guide)

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

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

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

**Learn more** (1 resource):

- [Text To Image: Seed Controlling Randomness Deterministically](https://runware.ai/docs/guides/text-to-image#seed-controlling-randomness-deterministically) (guide)

**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`
- **Default**: `false`

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**: `2`

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`

Type of the task.

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

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

UUID of the task.

### [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

### Rainy Glasshouse Fashion Tableau (Image to Image)

![Rainy Glasshouse Fashion Tableau](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/3f5f1d7d-8d1b-42a0-923c-3bdc3f314126.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "af0712bf-ab5d-4266-9268-2ad1258a3ac1",
  "model": "bfl:3@1",
  "positivePrompt": "Transform the reference subject into a high-fashion editorial scene inside a vast Victorian glasshouse during a thunderstorm, preserving facial identity, silver hair, and elegant silhouette. Surround the subject with towering tropical leaves, wet stone flooring, scattered fallen petals, and misted glass panes streaked with rain. Outfit evolved into sculptural avant-garde couture in black lacquered fabric with subtle emerald accents, dramatic tailoring, refined textures, and striking accessories. Cinematic natural storm light, reflections in puddles, soft fog, deep contrast, sophisticated composition, premium magazine aesthetic, ultra-detailed materials, poised and enigmatic mood.",
  "width": 1248,
  "height": 832,
  "seed": 36839,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true,
      "safetyTolerance": 2
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/140ed1d5-6a41-46c7-ab9e-527a23e4524d.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "af0712bf-ab5d-4266-9268-2ad1258a3ac1",
  "imageUUID": "365ca059-49a9-4bc5-89b4-a72a27b8ad35",
  "imageURL": "https://im.runware.ai/image/os/a23d05/ws/2/ii/365ca059-49a9-4bc5-89b4-a72a27b8ad35.jpg",
  "seed": 36839,
  "cost": 0.04
}
```

---

### Origami Menagerie Reading Hall (Image to Image)

![Origami Menagerie Reading Hall](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/35d7c4dd-0c8a-4221-bf43-af9ddfd3e7cd.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "b222c274-95fd-4a9b-924a-5ff05eaacfca",
  "model": "bfl:3@1",
  "positivePrompt": "Transform the reference image into a sweeping storybook scene inside a vast reading hall filled with towering bookshelves, suspended paper cranes, rolling ladders, and warm amber skylight. Preserve the folded-paper craftsmanship and sharp crease details of the reference subject, but expand it into an enchanting menagerie of origami creatures gathered among open books and parchment paths. Add depth, delicate texture, floating dust motes, elegant architectural symmetry, and a polished cinematic look with gentle wonder and handcrafted charm.",
  "width": 1248,
  "height": 832,
  "seed": 72286,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true,
      "safetyTolerance": 2
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/30ddb480-f410-48a8-a98c-0ecef464c262.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "b222c274-95fd-4a9b-924a-5ff05eaacfca",
  "imageUUID": "c1d6e5f3-f3b0-414b-81b7-d05e65ee4197",
  "imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/c1d6e5f3-f3b0-414b-81b7-d05e65ee4197.jpg",
  "seed": 72286,
  "cost": 0.04
}
```

---

### Kite Workshop Canal Courtyard (Image to Image)

![Kite Workshop Canal Courtyard](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/b75b81aa-4352-45cc-a0a5-0cc393f1e118.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "95d07b7b-d88e-4a46-91c4-a3a0e19b304c",
  "model": "bfl:3@1",
  "positivePrompt": "Transform the reference scene into an imaginative artisan courtyard devoted to elaborate kite making beside a narrow canal. Preserve the overall architecture and grounded realism of the space while enriching it with suspended geometric kites, painted silk patterns, reels of vivid thread, folded paper forms, carved bamboo frames, scattered design sketches, and a few craftspeople in practical work clothes. Emphasize tactile materials, layered depth, gentle reflections in the water, subtle color harmony of saffron, indigo, vermilion, and jade, candid documentary photography style, highly detailed but natural, airy atmosphere, premium editorial realism.",
  "width": 1248,
  "height": 832,
  "seed": 16555,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true,
      "safetyTolerance": 2
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/375cbd1a-ca89-41f9-9d73-1bf814fce3c3.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "95d07b7b-d88e-4a46-91c4-a3a0e19b304c",
  "imageUUID": "6080c9fd-b5dd-421f-8633-36f6ade3922a",
  "imageURL": "https://im.runware.ai/image/os/a11d13/ws/2/ii/6080c9fd-b5dd-421f-8633-36f6ade3922a.jpg",
  "seed": 16555,
  "cost": 0.04
}
```

---

### Copper Viaduct Tea Procession (Image to Image)

![Copper Viaduct Tea Procession](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/65848e84-c9b1-4302-ad43-cb923580f5fe.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "bc987cca-4dbb-4025-bc27-4a29ca54d91b",
  "model": "bfl:3@1",
  "positivePrompt": "Transform the reference scene into a lavish alternate-history riverside procession on a grand copper-riveted viaduct above a narrow canal, keeping the wide bridge composition and sense of depth from the reference image. Replace the ordinary pedestrians with elegantly dressed travelers carrying stacked porcelain tea chests, embroidered coats, lacquered parasols, and brass kettles releasing soft steam. The surrounding buildings become layered townhouses with curved glass awnings, hanging ivy, enamel signage, and intricate metal balconies. Add suspended banners in saffron, deep teal, and oxblood, polished wet cobblestones below, drifting vapor, distant boats loaded with crates, and fine atmospheric haze. Visual style: cinematic editorial fantasy, highly detailed textures, sophisticated color harmony, crisp focus, subtle glow, believable materials, dynamic yet refined worldbuilding.",
  "width": 1568,
  "height": 672,
  "seed": 9525,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true,
      "safetyTolerance": 2
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/0ef484bc-d181-442e-962a-24f134517e45.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "bc987cca-4dbb-4025-bc27-4a29ca54d91b",
  "imageUUID": "fdd6991e-a6f1-4488-93c4-34c538869331",
  "imageURL": "https://im.runware.ai/image/os/a15d18/ws/2/ii/fdd6991e-a6f1-4488-93c4-34c538869331.jpg",
  "seed": 9525,
  "cost": 0.04
}
```

---

### Kite Archive Harbor Basilica (Image to Image)

![Kite Archive Harbor Basilica](https://assets.runware.ai/examples/bfl-flux-1-kontext-pro/eac74192-a3bc-4871-b5db-3134d12c2f94.jpg)

**Request**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "2a605473-fd05-4b0a-88ca-ef26ab03aba5",
  "model": "bfl:3@1",
  "positivePrompt": "Transform the reference scene into a grand harbor archive devoted to ceremonial kites, preserving the core building silhouette and waterfront perspective while reimagining the facade with painted sailcloth canopies, suspended geometric kites, braided ropes, lacquered wood kiosks, fluttering catalog tags, and colorful wind-worn banners. Add librarians' ladders visible through tall arches, stacked storage racks for folded kites, polished stone steps scattered with paper scraps and twine, seabirds circling through open vaults, and a breezy atmosphere with rich textural detail. Elegant editorial fantasy, cinematic natural light, intricate materials, dynamic depth, sophisticated color harmony, highly detailed.",
  "width": 1392,
  "height": 752,
  "seed": 52716,
  "providerSettings": {
    "bfl": {
      "promptUpsampling": true,
      "safetyTolerance": 2
    }
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/ae3de299-69eb-4c7d-ac95-982b1ef30dfa.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "imageInference",
  "taskUUID": "2a605473-fd05-4b0a-88ca-ef26ab03aba5",
  "imageUUID": "6c196c7f-88ac-45c7-bae2-1cf569f09faf",
  "imageURL": "https://im.runware.ai/image/os/a11d13/ws/2/ii/6c196c7f-88ac-45c7-bae2-1cf569f09faf.jpg",
  "seed": 52716,
  "cost": 0.04
}
```