---
title: FLUX 3.1 Image | Runware Docs
url: https://runware.ai/docs/models/bfl-flux-3-1-image
description: Fast image generation and precise editing up to 4K, with mask and bounding-box control
---
# FLUX 3.1 Image

![FLUX 3.1 Image](https://assets.runware.ai/covers/bfl-flux-3-1-image.jpg)

FLUX 3.1 Image is Black Forest Labs' image generation and editing model, built for speed at every size from 1 MP up to native 4K. It keeps people and objects consistent across multiple references, edits locally through masks and bounding boxes while leaving the rest of the image untouched, and changes or translates text in its original lettering. It suits high-volume work such as product catalogs, virtual try-on, storyboards and key art.

- **Status**: live
- **ID**: `bfl:flux@3.1-image`
- [Try in Playground](https://runware.ai/playground?modelAIR=bfl%3Aflux%403.1-image)
- **Creator**: Black Forest Labs
- **Release Date**: December 3, 2026
- **Zero Data Retention**: Yes
- **Capabilities**: Text to Image, Image to Image, Edit

## Pricing

*50% OFF until December 17, 2026*

$0.0075 ~~$0.015~~ from, per run · ~8s per request

**Rates** (per run)

*Quality*

- 1K: `$0.015` ~~`$0.03`~~
- 1.5K: `$0.021` ~~`$0.042`~~
- 2K: `$0.03` ~~`$0.06`~~
- 2.5K: `$0.065` ~~`$0.13`~~
- 3.5K: `$0.102` ~~`$0.203`~~
- 4K: `$0.14` ~~`$0.28`~~

*Fast*

- 1K: `$0.0075` ~~`$0.015`~~
- 1.5K: `$0.012` ~~`$0.024`~~
- 2K: `$0.02` ~~`$0.04`~~
- 2.5K: `$0.033` ~~`$0.066`~~
- 3.5K: `$0.0445` ~~`$0.089`~~
- 4K: `$0.055` ~~`$0.11`~~

**5 example generations**

- [bounding-boxes](https://runware.ai/docs/models/bfl-flux-3-1-image/examples#example-bell-foundry-editorial-photograph) · 1024×1024: `$0.03` (~6s)
- [reference-bounding-boxes](https://runware.ai/docs/models/bfl-flux-3-1-image/examples#example-stained-glass-grinder-lifestyle-photo) · 1K: `$0.03` (~8s)
- [text-to-image](https://runware.ai/docs/models/bfl-flux-3-1-image/examples#example-organ-voicer-press-headshot) · 1216×832: `$0.03` (~7s)
- [inpaint](https://runware.ai/docs/models/bfl-flux-3-1-image/examples#example-pinball-restorer-birthday-portrait) · 1K: `$0.03` (~10s)
- [reference-to-image](https://runware.ai/docs/models/bfl-flux-3-1-image/examples#example-rotary-snowplow-phone-wallpaper) · 1.5K: `$0.042` (~12s)

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

## Compatibility & Validation

When `inputs.maskImage` is provided, `inputs.referenceImages` is limited to 9 items.

---

When `inputs.referenceImages` is not provided, each `settings.boundingBoxes` item requires `targetBox` and cannot set `referenceIndex` or `sourceBox`.

---

When `inputs.referenceImages` is provided, each `settings.boundingBoxes` item takes either `referenceIndex` and `sourceBox`, or `targetBox` with no `referenceIndex` or `sourceBox`.

---

`resolution` cannot be used with `width/height`.

---

When `sourceBox` is provided, `referenceIndex` is required (in `settings.boundingBoxes`).

---

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

---

Width and height are not fixed to a set of pairs. Any combination is accepted within these bounds:

| Property | Bounds |
| --- | --- |
| Size | `177 px to 11600 px` |
| Area | `0.25 MP to 16.82 MP` |
| Aspect ratio | `1:8 to 8:1` |

## Request Parameters

The same request as an OpenAPI document: [schema.json](https://runware.ai/docs/models/bfl-flux-3-1-image/schema.json).

**API Options**

Platform-level options for task execution and delivery.

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

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

Identifier for the type of task being performed.

### [taskUUID](https://runware.ai/docs/models/bfl-flux-3-1-image#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-3-1-image#request-outputtype)

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

Image output type.

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

### [outputFormat](https://runware.ai/docs/models/bfl-flux-3-1-image#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**: Output that needs transparency must use a format with an alpha channel: `PNG`, `WEBP`. `JPG` does not support transparency.

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

### [outputQuality](https://runware.ai/docs/models/bfl-flux-3-1-image#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-3-1-image#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-3-1-image#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-3-1-image#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-3-1-image#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (2 properties)`

Content safety checking configuration for image generation.

#### [checkContent](https://runware.ai/docs/models/bfl-flux-3-1-image#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.

#### [blockContent](https://runware.ai/docs/models/bfl-flux-3-1-image#request-safety-blockcontent)

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

Content blocking before generation. Moderates the request's text and input images, and rejects the request when they are flagged, so nothing is generated or charged. Input videos, audio and documents are not moderated. Adds a short delay before generation starts.

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

- **Type**: `boolean`

Include task cost in the response.

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

### [maskImage](https://runware.ai/docs/models/bfl-flux-3-1-image#request-inputs-maskimage)

- **Path**: `inputs.maskImage`
- **Type**: `string`

Image used to specify which areas of the input image should be edited (UUID, URL, Data URI, or Base64). White marks the area to edit, black is preserved. Applies to the first reference image and must be within 3% of its aspect ratio. The output keeps that image's aspect ratio, so `width` and `height` must be within 3% of it too.

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

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`
- **Min items**: `1`
- **Max items**: `10`
- **Size (each)**: `128 px or more`
- **Area (each)**: `up to 20 MP`
- **File size (each)**: `up to 20 MB`

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-3-1-image#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `bfl:flux@3.1-image`

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.md).

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

- **Type**: `string`
- **Required**: true
- **Min**: `1`
- **Max**: `32768`

Text prompt describing elements to include in the generated output. At most 32,768 bytes in UTF-8, and must satisfy `E / 32768 + N / 10922 <= 1`, where `N` counts the non-ASCII characters and `E` the rest.

**Learn more** (1 resource):

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

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

- **Type**: `integer`
- **Min**: `177`
- **Max**: `11600`

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-3-1-image#request-height)

- **Type**: `integer`
- **Min**: `177`
- **Max**: `11600`

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)

### [resolution](https://runware.ai/docs/models/bfl-flux-3-1-image#request-resolution)

- **Type**: `string`
- **Default**: `1K`

Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input. With reference images, the first one sets it and must have an aspect ratio within 8:1. Without reference images, the model picks the aspect ratio from the prompt.

**Allowed values**:

- `1K` About 1 megapixel.
- `1.5K` About 2 megapixels.
- `2K` About 4 megapixels.
- `2.5K` About 8 megapixels.
- `3.5K` About 12 megapixels.
- `4K` About 16 megapixels.
- `auto` Size picked by the model from the prompt.

**Settings**

Technical parameters to fine-tune the inference process. These must be nested inside the `settings` object.

### [boundingBoxes](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-boundingboxes)

- **Path**: `settings.boundingBoxes`
- **Type**: `array of objects (5 properties)`
- **Min items**: `1`
- **Max items**: `32`

Regions that place, move, resize or remove elements.

#### [description](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-boundingboxes-description)

- **Path**: `settings.boundingBoxes.description`
- **Type**: `string`
- **Min**: `1`
- **Max**: `1000`

What the region holds.

#### [id](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-boundingboxes-id)

- **Path**: `settings.boundingBoxes.id`
- **Type**: `string`
- **Required**: true
- **Min**: `1`
- **Max**: `64`

Region identifier, unique within the request. Referenced from `positivePrompt` as `<id>`.

#### [referenceIndex](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-boundingboxes-referenceindex)

- **Path**: `settings.boundingBoxes.referenceIndex`
- **Type**: `integer | null`
- **Min**: `0`
- **Max**: `9`

Index into `inputs.referenceImages` the element is taken from. Must be less than the number of reference images. Null for a new element.

#### [sourceBox](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-boundingboxes-sourcebox)

- **Path**: `settings.boundingBoxes.sourceBox`
- **Type**: `array | null`
- **Min**: `0`
- **Max**: `1000`
- **Items**: `4`

Position of the element inside the reference as \[top, left, bottom, right\] on a 0 to 1000 scale. Matching `sourceBox` and `targetBox` keep the element in place, different values move or resize it. Null for a new element.

#### [targetBox](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-boundingboxes-targetbox)

- **Path**: `settings.boundingBoxes.targetBox`
- **Type**: `array | null`
- **Min**: `0`
- **Max**: `1000`
- **Items**: `4`

Position in the output as \[top, left, bottom, right\] on a 0 to 1000 scale, whatever the output size. Top must be lower than bottom and left lower than right. Null removes the element, which requires reference images.

### [grounding](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-grounding)

- **Path**: `settings.grounding`
- **Type**: `string`
- **Default**: `off`

Web and image search before generating.

**Allowed values**:

- `auto` The model decides per request whether to search.
- `force` Always searches.
- `off` Never searches.

### [mode](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-mode)

- **Path**: `settings.mode`
- **Type**: `string`
- **Default**: `quality`

Speed and quality trade-off.

**Allowed values**:

- `quality` Better typography, consistency across many references and fine detail.
- `fast` Lower cost per image, built for high volume.

### [safetyTolerance](https://runware.ai/docs/models/bfl-flux-3-1-image#request-settings-safetytolerance)

- **Path**: `settings.safetyTolerance`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `4`
- **Default**: `2`

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

**Features**

Standalone addons and post-processing features.

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

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

Configuration object for adding watermarks to generated images. 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-3-1-image#request-advancedfeatures-watermark-text)

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

Watermark text.

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

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

Text color in hex format.

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

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

UUID of the output image.

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

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

URL of the output image.

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

- **Type**: `string`

Base64-encoded image data.

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

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

Data URI of the output image.

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

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

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

- **Type**: `float`

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

## Examples

### Organ Voicer Press Headshot (text-to-image)

![Organ Voicer Press Headshot](https://assets.runware.ai/examples/bfl-flux-3-1-image/13f23907-b8b9-484a-a19a-143a53c2e3c3.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "6e31a7aa-57cf-4c3b-a08a-8a5cbebd54cf",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall's restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border.",
  "width": 1216,
  "height": 832
}
```

---

### Rotary Snowplow Phone Wallpaper (reference-to-image)

![Rotary Snowplow Phone Wallpaper](https://assets.runware.ai/examples/bfl-flux-3-1-image/db60f065-e947-4dee-afe5-d91e8986e5a4.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "b03a9656-a135-44f1-ba11-e3df0968856e",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow's outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference's flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image's head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup.",
  "resolution": "1.5K",
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/a8b87477-9ac1-4a5d-91fe-288bdbbc7863.jpg",
      "https://assets.runware.ai/assets/inputs/c6fa84f1-d674-47ad-988f-d2ee53c9489e.jpg"
    ]
  }
}
```

---

### Pinball Restorer Birthday Portrait (inpaint)

![Pinball Restorer Birthday Portrait](https://assets.runware.ai/examples/bfl-flux-3-1-image/eece2c7a-0579-478c-a280-808e2410c329.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "98244e29-818a-4829-9690-f37b36b90bce",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in's height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering.",
  "resolution": "1K",
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/367965b2-f8d9-46ee-abb3-b10d13238d23.jpg"
    ],
    "maskImage": "https://assets.runware.ai/assets/inputs/df1adb89-3f78-4d8e-9fdd-def4263765d8.png"
  }
}
```

---

### Bell Foundry Editorial Photograph (bounding-boxes)

![Bell Foundry Editorial Photograph](https://assets.runware.ai/examples/bfl-flux-3-1-image/47cc2c07-e0f3-491d-b6fd-b85ce7f63b77.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "d0f756f7-e045-4497-a96e-03ba05ae54d9",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell's crown and flared lip as well as the fork's shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays.",
  "width": 1024,
  "height": 1024,
  "settings": {
    "boundingBoxes": [
      {
        "id": "main",
        "targetBox": [
          180,
          100,
          800,
          480
        ]
      },
      {
        "id": "accent",
        "targetBox": [
          480,
          570,
          810,
          900
        ]
      }
    ]
  }
}
```

---

### Stained Glass Grinder Lifestyle Photo (reference-bounding-boxes)

![Stained Glass Grinder Lifestyle Photo](https://assets.runware.ai/examples/bfl-flux-3-1-image/47676525-35e6-4e74-916b-57f4af4d4c41.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "875330e2-99a0-47eb-b13c-9418664667f5",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props.",
  "resolution": "1K",
  "settings": {
    "boundingBoxes": [
      {
        "id": "subject",
        "referenceIndex": 0,
        "sourceBox": [
          300,
          100,
          700,
          400
        ],
        "targetBox": [
          300,
          600,
          700,
          900
        ]
      }
    ]
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/1a197d34-2a4b-4107-89b3-cb40ff725a37.jpg"
    ]
  }
}
```

## Guides

- [Prompting](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/prompting.md): How to write text-to-image prompts for FLUX 3.1 Image: ordering the scene, trading adjectives for concrete detail, and setting the shape and size of the frame.
- [Fast and quality modes](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/fast-and-quality-modes.md): How to choose between the fast and quality modes of FLUX 3.1 Image: what quality adds to long copy and intricate detail, and when fast is enough.
- [Rendering text](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/text-rendering.md): How to render text with FLUX 3.1 Image: quoting the exact string, directing the type, laying out several strings, and changing or translating copy in place.
- [Editing images](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/editing-images.md): How to edit a photo with FLUX 3.1 Image from a single instruction: scoping the change, relighting, turning a gaze, swapping objects in and out, and chaining passes.
- [Multi-reference composition](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/multi-reference-composition.md): How to combine reference images with FLUX 3.1 Image: assigning roles, dressing a model from packshots, keeping faces across shots and transferring a style.
- [Masked edits](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/masked-edits.md): How to aim a FLUX 3.1 Image edit with a mask: picking one of two identical objects, placing something new and putting a reference onto a product.
- [Bounding boxes](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/bounding-boxes.md): How to place, add, move and remove elements by region with FLUX 3.1 Image: reading the 0 to 1000 grid, laying out a frame and editing an image box by box.
- [Grounding with web and image search](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/grounded-generation.md): How to ground FLUX 3.1 Image in real places and current facts with settings.grounding, and when to force a search or leave it to the model.