---
title: FLUX.1 Kontext [dev] | Runware Docs
url: https://runware.ai/docs/models/bfl-flux-1-kontext-dev
description: Open image editing model for fast iterative workflows
---
# FLUX.1 Kontext [dev]

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

FLUX.1 Kontext [dev] is an open weights image editing model tuned for fast iterative development. It supports local edits and full scene changes from prompts. Use it for style transfer, background swaps, object edits, and character consistent variations in your pipelines.

- **Status**: live
- **ID**: `runware:106@1`
- Try in Playground
- **Creator**: Black Forest Labs
- **Release Date**: June 17, 2025
- **Zero Data Retention**: Yes
- **Capabilities**: Text to Image, Image to Image, Edit, Checkpoint

## Pricing

$0.0149 from, per run · ~12s per request

**Measured runs**

- 1024×1024 · steps 28: `$0.0149` (~26s)
- 1024×1024 · steps 50: `$0.0209` (~11s)

**4 example generations**

- [text-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-dev/examples#example-coastal-floodgate-winter-lighting-visualization) · 1248×832: `$0.0098` (~7s)
- [text-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-dev/examples#example-subsea-robot-reef-survey-composite) · 1248×832: `$0.0098` (~7s)
- [reference-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-dev/examples#example-urban-raptor-conservation-portrait) · 832×1248: `$0.013` (~13s)
- [reference-to-image](https://runware.ai/docs/models/bfl-flux-1-kontext-dev/examples#example-foley-artist-editorial-headshot) · 832×1248: `$0.013` (~38s)

billed by compute time, so a request costs what it took · times vary, measured end to end · [How pricing works](https://runware.ai/docs/models-api/pricing)

## Compatibility & Validation

Either provide `inputs.referenceImages`, or specify `width/height`.

---

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

---

The following dimension combinations are supported:

| Configuration | Dimensions |
| --- | --- |
| `1K (~21:9)` | `1568x672` |
| `1K (~20:9)` | `1504x688` |
| `1K (~2:1)` | `1456x720` |
| `1K (~17:9)` | `1392x752` |
| `1K (5:3)` | `1328x800` |
| `1K (3:2)` | `1248x832` |
| `1K (~4:3)` | `1184x880` |
| `1K (~7:6)` | `1104x944` |
| `1K (1:1)` | `1024x1024` |
| `1K (~6:7)` | `944x1104` |
| `1K (~3:4)` | `880x1184` |
| `1K (2:3)` | `832x1248` |
| `1K (3:5)` | `800x1328` |
| `1K (~9:17)` | `752x1392` |
| `1K (~1:2)` | `720x1456` |
| `1K (~9:20)` | `688x1504` |
| `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-dev#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-dev#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-dev#request-outputtype)

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

Image output type.

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

### [outputFormat](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#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-dev#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-dev#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-dev#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-dev#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-dev#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-dev#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-dev#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-dev#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#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.

### [acceleratorOptions](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions)

- **Path**: `acceleratorOptions.cacheEndStep`
- **Type**: `object (12 properties)`

Advanced caching mechanisms to speed up generation.

#### [cacheEndStep](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-cacheendstep)

- **Path**: `acceleratorOptions.cacheEndStep`
- **Type**: `integer`
- **Min**: `1`

Absolute step number to end caching. Must be greater than `cacheStartStep` and less than or equal to `steps`.

#### [cacheEndStepPercentage](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-cacheendsteppercentage)

- **Path**: `acceleratorOptions.cacheEndStepPercentage`
- **Type**: `integer`
- **Min**: `1`
- **Max**: `100`

Percentage of steps to end caching. Alternative to `cacheEndStep`. Must be greater than `cacheStartStepPercentage`.

#### [cacheMaxConsecutiveSteps](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-cachemaxconsecutivesteps)

- **Path**: `acceleratorOptions.cacheMaxConsecutiveSteps`
- **Type**: `integer`
- **Min**: `1`
- **Max**: `5`
- **Default**: `3`

Limits the maximum number of consecutive steps that can use cached computations before forcing a fresh computation.

#### [cacheStartStep](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-cachestartstep)

- **Path**: `acceleratorOptions.cacheStartStep`
- **Type**: `integer`
- **Min**: `0`

Absolute step number to start caching. Must be less than `cacheEndStep`.

#### [cacheStartStepPercentage](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-cachestartsteppercentage)

- **Path**: `acceleratorOptions.cacheStartStepPercentage`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `99`

Percentage of steps to start caching. Alternative to `cacheStartStep`. Must be less than `cacheEndStepPercentage`.

#### [fbCache](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-fbcache)

- **Path**: `acceleratorOptions.fbCache`
- **Type**: `boolean`

First Block Cache (FBCache) acceleration. Reuses feature block computations across steps.

#### [fbCacheThreshold](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-fbcachethreshold)

- **Path**: `acceleratorOptions.fbCacheThreshold`
- **Type**: `float`
- **Min**: `0`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.25`

Controls the sensitivity threshold for determining when to reuse cached computations. Lower values reuse more aggressively.

#### [teaCache](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-teacache)

- **Path**: `acceleratorOptions.teaCache`
- **Type**: `boolean`

TeaCache acceleration for transformer-based models. Estimates step differences to skip redundant computations.

#### [teaCacheDistance](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-teacachedistance)

- **Path**: `acceleratorOptions.teaCacheDistance`
- **Type**: `float`
- **Min**: `0`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.5`

Controls the aggressiveness of the TeaCache feature. Lower values prioritize quality, higher values prioritize speed.

#### [dbCache](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-dbcache)

- **Path**: `acceleratorOptions.dbCache`
- **Type**: `boolean`

DB Cache (CacheDiT) acceleration. Caches and reuses intermediate transformer block outputs to skip redundant computations.

#### [dbCacheThreshold](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-dbcachethreshold)

- **Path**: `acceleratorOptions.dbCacheThreshold`
- **Type**: `float`
- **Min**: `0`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.25`

Controls the sensitivity threshold for DB Cache. Lower values reuse cached blocks more aggressively, higher values prioritize quality.

#### [dbCacheSkipInterval](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-acceleratoroptions-dbcacheskipinterval)

- **Path**: `acceleratorOptions.dbCacheSkipInterval`
- **Type**: `integer`
- **Min**: `1`
- **Default**: `5`

Controls how many steps to skip between cache refreshes. Higher values skip more steps for faster generation at the cost of quality.

**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-dev#request-inputs-referenceimages)

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

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-dev#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `runware:106@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-dev#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)

### [negativePrompt](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-negativeprompt)

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

Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).

**Learn more** (1 resource):

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

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

- **Type**: `integer`
- **Required**: conditional — Required when inputs.referenceImages is not provided
- **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-dev#request-height)

- **Type**: `integer`
- **Required**: conditional — Required when inputs.referenceImages is not provided
- **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-dev#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):

- [Seed](https://runware.ai/docs/learn/seed) (learn)

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

- **Type**: `integer`
- **Min**: `1`
- **Max**: `100`
- **Default**: `28`

Total number of denoising steps. Higher values generally produce more detailed results but take longer.

**Learn more** (1 resource):

- [Steps](https://runware.ai/docs/learn/steps) (learn)

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

- **Type**: `string`

Scheduler to use for the diffusion process.

**Allowed values**: `DDIM` `DDIMScheduler` `DDPMScheduler` `DEISMultistepScheduler` `Default` `DPM++` `DPM++ 2M` `DPM++ 2M Beta` `DPM++ 2M Exponential` `DPM++ 2M Karras` `DPM++ 2M SDE` `DPM++ 2M SDE Beta` `DPM++ 2M SDE Exponential` `DPM++ 2M SDE Karras` `DPM++ 2M SDE Uniform` `DPM++ 2M Uniform` `DPM++ 3M` `DPM++ 3M Beta` `DPM++ 3M Exponential` `DPM++ 3M Karras` `DPM++ 3M SDE Uniform` `DPM++ 3M Uniform` `DPM++ Beta` `DPM++ Exponential` `DPM++ Karras` `DPM++ SDE` `DPM++ SDE Beta` `DPM++ SDE Exponential` `DPM++ SDE Karras` `DPM++ Uniform` `DPM++ Uniform Beta` `DPM++ Uniform Exponential` `DPM++ Uniform Karras` `DPMSolverMultistepInverse` `DPMSolverMultistepScheduler` `DPMSolverSinglestepScheduler` `EDMDPMSolverMultistepScheduler` `EDMEulerScheduler` `Euler` `Euler a` `Euler Beta` `Euler Exponential` `Euler Karras` `EulerAncestralDiscreteScheduler` `EulerDiscreteScheduler` `FlowMatchEulerDiscreteScheduler` `Heun` `HeunDiscreteScheduler` `Heun Karras` `IPNDMScheduler` `IPNDM Uniform` `IPNDM Uniform Beta` `IPNDM Uniform Exponential` `IPNDM Uniform Karras` `KDPM2AncestralDiscreteScheduler` `KDPM2DiscreteScheduler` `LCM` `LCMScheduler` `LMS` `LMSDiscreteScheduler` `LMS Karras` `PNDMScheduler` `TCDScheduler` `UniPC` `UniPC 2M` `UniPC 2M Karras` `UniPC 2M Uniform` `UniPC 3M` `UniPC 3M Karras` `UniPC 3M Uniform` `UniPC Karras` `UniPC Uniform` `UniPC Uniform Beta` `UniPC Uniform Exponential` `UniPC Uniform Karras`

**Learn more** (2 resources):

- [Schedulers](https://runware.ai/docs/learn/schedulers) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

### [CFGScale](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-cfgscale)

- **Type**: `float`
- **Min**: `0`
- **Max**: `50`
- **Step**: `0.01`

Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.

**Learn more** (1 resource):

- [Cfg Scale](https://runware.ai/docs/learn/cfg-scale) (learn)

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

- **Path**: `lora.model`
- **Type**: `array of objects (2 properties)`
- **Min items**: `1`

With LoRA (Low-Rank Adaptation), you can adapt a model to specific styles or features by emphasizing particular aspects of the data. This technique enhances the quality and relevance of generated content and can be especially useful when the output needs to adhere to a specific artistic style or follow particular guidelines.

Multiple LoRA models can be used simultaneously to achieve different adaptation goals.

**Examples**:

```json
"lora": [
  {
    "model": "<lora-model-air>",
    "weight": 0.8
  }
]
```

**Learn more** (1 resource):

- [Loras](https://runware.ai/docs/learn/loras) (learn)

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

- **Path**: `lora.model`
- **Type**: `string`
- **Required**: true

LoRA model identifier.

#### [weight](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-lora-weight)

- **Path**: `lora.weight`
- **Type**: `float`
- **Min**: `-4`
- **Max**: `4`
- **Step**: `0.01`
- **Default**: `1`

Strength of the LoRA influence. A value of 0 means no influence. Higher values increase the influence, and negative values can be used to steer away from the LoRA's style.

### [trueCFGScale](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-truecfgscale)

- **Type**: `float`

True Classifier-Free Guidance scale. Higher values increase prompt adherence at the cost of quality.

**Features**

Standalone addons and post-processing features.

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

- **Path**: `ultralytics.CFGScale`
- **Type**: `object (9 properties)`

Configuration object for Ultralytics face enhancement during generation. This feature uses face detection and inpainting to improve facial details in the same generation step, without requiring post-processing.

> [!NOTE]
> Face enhancement is available for Stable Diffusion 1.X, SDXL, and FLUX models. The system automatically detects faces and applies targeted refinement to improve quality while maintaining consistency with the overall generation.

#### [CFGScale](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-cfgscale)

- **Path**: `ultralytics.CFGScale`
- **Type**: `float`
- **Min**: `0`
- **Max**: `50`
- **Step**: `0.1`
- **Default**: `8`

Face refinement guidance scale.

#### [confidence](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-confidence)

- **Path**: `ultralytics.confidence`
- **Type**: `float`
- **Min**: `0`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.9`

Confidence threshold for detection.

#### [inpaintSize](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-inpaintsize)

- **Path**: `ultralytics.inpaintSize`
- **Type**: `integer`
- **Min**: `128`
- **Max**: `2048`
- **Default**: `1024`

Image size (in pixels) to use for each inpainting region. YOLO detects faces, crops the region, and scales it to this size before running diffusion. Set so most faces land in the 2–4× range of their original pixel size. Going beyond 8× may degrade identity resemblance.

#### [maskBlur](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-maskblur)

- **Path**: `ultralytics.maskBlur`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `100`
- **Default**: `5`

Mask feathering amount. Higher values create softer transitions between the enhanced face region and surrounding areas.

#### [maskPadding](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-maskpadding)

- **Path**: `ultralytics.maskPadding`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `20`
- **Default**: `5`

Padding around detected face in pixels. Expands the refinement area to include surrounding context like hair and neck.

#### [negativePrompt](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-negativeprompt)

- **Path**: `ultralytics.negativePrompt`
- **Type**: `string`

Negative prompt for detection.

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

- **Path**: `ultralytics.positivePrompt`
- **Type**: `string`

Positive prompt for detection.

#### [steps](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-steps)

- **Path**: `ultralytics.steps`
- **Type**: `integer`
- **Min**: `1`
- **Max**: `100`
- **Default**: `20`

Number of face refinement steps.

#### [strength](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#request-ultralytics-strength)

- **Path**: `ultralytics.strength`
- **Type**: `float`
- **Max**: `1`
- **Step**: `0.01`
- **Default**: `0.3`

Refinement strength. Lower values preserve more of the original, higher values allow more aggressive reconstruction.

### [watermark](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#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-dev#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-dev#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-dev#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-dev#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-dev#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-dev#request-advancedfeatures-watermark-bgcolor)

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

Background color in hex format.

## Response Parameters

### [taskType](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#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-dev#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-dev#response-imageuuid)

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

UUID of the output image.

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

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

URL of the output image.

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

- **Type**: `string`

Base64-encoded image data.

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

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

Data URI of the output image.

### [seed](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#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-dev#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/bfl-flux-1-kontext-dev#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)

![Coastal Floodgate Winter Lighting Visualization](https://assets.runware.ai/examples/bfl-flux-1-kontext-dev/77511c1f-5e77-4893-8835-fc1338adf8a0.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "18e6d02f-74d2-4314-aab6-640c3dea4842",
  "model": "runware:106@1",
  "positivePrompt": "Create a photorealistic architectural visualization of a monumental 1970s coastal floodgate station converted into a marine research center, shown during a clear winter blue hour just after sunset. Compose a wide landscape view from the opposite side of the tidal basin, with the low brutalist concrete control building, three enormous steel sluice gates, exterior stairs, railings and service gantries fully visible. Relight the architecture with a restrained professional lighting scheme: warm recessed light glowing through narrow windows, amber linear fixtures beneath the cantilevered concrete roof, subtle white grazing light revealing board-marked concrete, and small red marine navigation lamps reflected in the water. Add thin snow caught along parapets and catwalks, patches of black ice on wet concrete, dormant salt-marsh grasses and a faint veil of sea mist near the gates. Deep cobalt sky, cold cyan ambient light, charcoal concrete, oxidized steel and precise warm highlights. Quiet, windswept, technically credible and cinematic without looking theatrical. Eye-level architectural photography, clean perspective, realistic materials, crisp structural detail, natural reflections, no people, no signage, no lettering, no logos.",
  "negativePrompt": "daylight, summer foliage, tropical weather, heavy snowfall obscuring the building, fantasy architecture, neon cyberpunk lighting, exaggerated orange-and-teal grading, dramatic lightning, crowds, vehicles, boats, text, watermark, logo, interface elements, distorted structure, implausible reflections",
  "width": 1248,
  "height": 832
}
```

---

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

![Subsea Robot Reef Survey Composite](https://assets.runware.ai/examples/bfl-flux-1-kontext-dev/4b9cb271-4c4e-4761-b214-ed9696a87109.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "f6711dc6-d36f-43a0-a942-93c9a1d3ac30",
  "model": "runware:106@1",
  "positivePrompt": "Create a polished background-replacement-style environmental composite for a marine robotics company’s annual report. The subject is a compact professional subsea inspection ROV with a bright safety-yellow pressure housing, black protective frame, paired manipulator claws, four small thrusters, front camera dome, work lights and a thin tether trailing behind it. Show the complete ROV in crisp three-quarter profile, moving from left to right and occupying the left-center of the landscape frame. Place it naturally in a cold-water kelp forest survey site: tall olive-green kelp columns, suspended particles, slate rock formations, a few restrained schools of silver fish and pale shafts of sunlight descending through deep teal water. One work light softly illuminates a rock face covered with small anemones, clearly communicating scientific inspection rather than adventure fantasy. Match underwater haze, directional light, color absorption and contact shadows across the robot so the composite feels physically convincing. Premium documentary photography, technically credible equipment, calm scientific mood, turquoise, olive and safety-yellow palette, generous open water on the right for editorial layout, no lettering, no logo, no interface graphics.",
  "negativePrompt": "Cartoon styling, fantasy sea creatures, tropical coral reef, scuba divers, submarine cockpit, military weapons, excessive bubbles, murky subject, distorted machinery, duplicated thrusters, extra claws, unreadable labels, text, logos, borders, app interface",
  "width": 1248,
  "height": 832
}
```

---

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

![Urban Raptor Conservation Portrait](https://assets.runware.ai/examples/bfl-flux-1-kontext-dev/e957fcec-49e0-4e09-a2ab-bcf04623a7ee.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "c0c1bb10-b981-4c7c-b391-bdfabae22df2",
  "model": "runware:106@1",
  "positivePrompt": "Replace only the plain studio background with an authentic city rooftop used for an evening urban-raptor survey. Preserve the wildlife handler and barn owl as the same recognizable subjects from the reference: keep her face, hair, expression, body proportions, charcoal field clothing, pose, leather glove, and every visible strap and buckle unchanged; retain the owl's exact facial markings, cream-and-tawny plumage, scale, posture, feet, and jesses. Place them naturally near a low weathered parapet with discreet survey equipment and distant apartment roofs behind them. Blue-hour sky, inky cyan shadows, restrained amber window bokeh, and a soft rooftop security light that matches the original key-light direction. Photorealistic conservation editorial photography, calm and watchful mood, realistic contact shadows and edge integration, shallow background depth of field. Vertical annual-report cover composition at 832x1248 with modest clear space above the subjects; no lettering, logos, fantasy elements, or additional people or animals.",
  "width": 832,
  "height": 1248,
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/0d890e01-75d4-460c-9c0b-179b43a9c74b.jpg"
    ]
  }
}
```

---

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

![Foley Artist Editorial Headshot](https://assets.runware.ai/examples/bfl-flux-1-kontext-dev/1d682d84-78a1-4094-983c-6eed70190aad.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "acee8b58-c8a4-43ef-a019-8ba9ab948d79",
  "model": "runware:106@1",
  "positivePrompt": "Edit the supplied photograph into a refined vertical editorial headshot for this Foley artist's film-industry conference speaker profile. Preserve her exact identity, facial structure, silver bob, dark round glasses, mole below the left cheekbone, earrings, age, skin tone, and warm self-assured expression. Correct the green color cast and uneven exposure. Apply restrained professional retouching: retain pores, smile lines, realistic under-eye texture, and individual silver hairs; remove only temporary blemishes, flyaways crossing the eyes, and distracting lens glare. Replace the rumpled flannel overshirt with a tailored cobalt-blue cotton chore jacket over a clean ivory crewneck. Reframe from mid-chest upward with comfortable space above her hair. Use soft high-key window light with a crisp catchlight and gentle facial modeling. Organize the Foley studio background into a softly defocused, credible arrangement of shoes, textured floor samples, and sound props, accented by butter-yellow and powder-blue acoustic panels. Optimistic, intelligent, contemporary trade-editorial art direction; clean color separation; natural photographic detail; no text or logos.",
  "negativePrompt": "De-aging, changed identity, altered face shape, plastic skin, heavy beauty makeup, erased wrinkles, missing mole, changed hairstyle, different glasses, distorted hands, duplicate props, fake bokeh halos, harsh rim light, corporate office background, fantasy elements, text, logos, watermark",
  "width": 832,
  "height": 1248,
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/744b6657-72c4-4e91-ae59-879fbdd983eb.jpg"
    ]
  }
}
```