live
MODEL IDbfl:flux@3.1-image

FLUX 3.1 Image

Black Forest Labs
by
Available with Zero Data Retention

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.

FLUX 3.1 Image

Prompting

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.

Introduction

FLUX 3.1 Image turns one prompt into one image, and the prompt carries nearly all of the control. The request has no negative prompt, seed or step count. Besides the words, you set the size of the output, and when you leave the shape open, the prompt decides that too.

The model also expands your prompt before it renders, and there is no switch to turn that off. Whatever you leave unsaid, it decides for you. A prompt that settles the subject, the light and the camera leaves it little to decide.

This guide covers the order a prompt reads best in, the detail that keeps the expansion from drifting, and the three ways to set the shape and size of the output.

Ordering the scene

Write the prompt in the order a shot gets set up: who is in it, what they are doing, where they are, where the camera stands, and how the picture should look. By the time the camera clause arrives the setting already exists, so "35mm lens from the sidewalk" has a doorway to frame.

A woman in her thirties in a blue striped cotton shirt and wide-leg jeans, taking a cardboard parcel from a courier at her front door, both hands under the box, smiling down at the label, A townhouse doorway with a sage green door, a brass house number and a potted bay tree on the step. Late morning sun from the left falling across the door frame, Medium shot from the sidewalk at chest height, 35mm lens, the doorway centered and the arm of the courier entering from the right edge, Photoreal lifestyle photography, fresh natural palette
SubjectActionSettingCameraStyle

The action clause fixes the pose. "A woman at her front door" lets the expander choose one, and it chooses again on every run. "Taking a parcel from a courier, both hands under the box" names the posture outright, which is what makes the frame repeatable across a set of delivery images.

Keep the prompt to a description of the finished frame. Very complex prompts, the kind that need many reasoning steps, are less reliable on this model. Counting objects against each other, comparing sizes or attaching conditions to parts of the scene all ask the model to work something out first. Say where each thing is and what it looks like, and the model only has to draw it.

Try in Playground
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })

const [result] = await client.run({
  model: 'bfl:flux@3.1-image',
  positivePrompt: 'A woman in her thirties in a blue striped cotton shirt and wide-leg jeans taking a cardboard parcel from a courier at her front door, both hands under the box, smiling down at the label. A townhouse doorway with a sage green door, a brass house number and a potted bay tree on the step. Late morning sun from the left falling across the door frame. Medium shot from the sidewalk at chest height, 35mm lens, the doorway centered and the arm of the courier entering from the right edge. Photoreal lifestyle photography, fresh natural palette.',
  width: 1248,
  height: 832
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "bfl:flux@3.1-image",
            "positivePrompt": "A woman in her thirties in a blue striped cotton shirt and wide-leg jeans taking a cardboard parcel from a courier at her front door, both hands under the box, smiling down at the label. A townhouse doorway with a sage green door, a brass house number and a potted bay tree on the step. Late morning sun from the left falling across the door frame. Medium shot from the sidewalk at chest height, 35mm lens, the doorway centered and the arm of the courier entering from the right edge. Photoreal lifestyle photography, fresh natural palette.",
            "width": 1248,
            "height": 832
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "3c7e9a12-5b84-4f06-9d21-7a8e4c6b0f53",
      "model": "bfl:flux@3.1-image",
      "positivePrompt": "A woman in her thirties in a blue striped cotton shirt and wide-leg jeans taking a cardboard parcel from a courier at her front door, both hands under the box, smiling down at the label. A townhouse doorway with a sage green door, a brass house number and a potted bay tree on the step. Late morning sun from the left falling across the door frame. Medium shot from the sidewalk at chest height, 35mm lens, the doorway centered and the arm of the courier entering from the right edge. Photoreal lifestyle photography, fresh natural palette.",
      "width": 1248,
      "height": 832
    }
  ]'
runware run bfl:flux@3.1-image \
  positivePrompt="A woman in her thirties in a blue striped cotton shirt and wide-leg jeans taking a cardboard parcel from a courier at her front door, both hands under the box, smiling down at the label. A townhouse doorway with a sage green door, a brass house number and a potted bay tree on the step. Late morning sun from the left falling across the door frame. Medium shot from the sidewalk at chest height, 35mm lens, the doorway centered and the arm of the courier entering from the right edge. Photoreal lifestyle photography, fresh natural palette." \
  width=1248 \
  height=832
{
  "taskType": "imageInference",
  "taskUUID": "3c7e9a12-5b84-4f06-9d21-7a8e4c6b0f53",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "A woman in her thirties in a blue striped cotton shirt and wide-leg jeans taking a cardboard parcel from a courier at her front door, both hands under the box, smiling down at the label. A townhouse doorway with a sage green door, a brass house number and a potted bay tree on the step. Late morning sun from the left falling across the door frame. Medium shot from the sidewalk at chest height, 35mm lens, the doorway centered and the arm of the courier entering from the right edge. Photoreal lifestyle photography, fresh natural palette.",
  "width": 1248,
  "height": 832
}
Response
{
  "data": [
    {
      "taskType": "imageInference",
      "taskUUID": "3c7e9a12-5b84-4f06-9d21-7a8e4c6b0f53",
      "imageUUID": "8f1d2b6e-0a47-4c93-b5e8-2d6f9a3c7e14",
      "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/8f1d2b6e-0a47-4c93-b5e8-2d6f9a3c7e14.jpg"
    }
  ]
}

Trading adjectives for detail

Expansion fills every gap you leave, and each gap is a place the result drifts from one run to the next. "Good lighting" becomes whatever the model considers good on that run. "Hard light from the upper right casting a short shadow to the left" is a setup you can repeat for the next product in the range.

The longer prompt adds decisions rather than adjectives. Each clause takes one choice away from the expander, and the choices it takes are the ones a product range has to share: the finish, which way the light falls and how hard it is, where the camera stands and where the product sits in the frame. Write those down once and the second bottle in the range can be shot to match the first.

Setting the shape and size

Three approaches decide the size of the output, and each one leaves a different part to the model:

  • Tier only: resolution sets a size tier, from 1K at about 1 megapixel up to 4K at about 16, and the model picks the aspect ratio from the prompt.
  • Exact size: width and height fix both dimensions in pixels.
  • Model's choice: resolution: "auto" lets the model pick the size as well as the shape.

resolution is rejected alongside width or height, so a request picks one of the three. A request that sends no size at all runs at the 1K tier, with the prompt choosing the shape.

Letting the prompt pick the shape

With only a tier in the request, the format the prompt names becomes the aspect ratio. Both requests below sent resolution: "1K" and nothing else about size, and differ in where the prompt says the image will run.

Name the format by where the image will run: a phone story, a website banner, a print poster, a square feed post. Then write the composition for that shape, so the camera clause and the format agree on what fills the frame.

Try in Playground
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })

const [result] = await client.run({
  model: 'bfl:flux@3.1-image',
  positivePrompt: 'A wide banner frame for a restaurant website: a steaming bowl of tonkotsu ramen on a long dark walnut counter seen from the side at counter height, a halved soft-boiled egg, two slices of chashu pork and sliced scallions on top, chopsticks resting across the rim. The bowl sits on the left third and the counter runs out to the right edge, a row of empty stools blurred behind it. Warm light from a single pendant overhead. Photoreal food photography, warm low-key palette.',
  resolution: '1K'
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "bfl:flux@3.1-image",
            "positivePrompt": "A wide banner frame for a restaurant website: a steaming bowl of tonkotsu ramen on a long dark walnut counter seen from the side at counter height, a halved soft-boiled egg, two slices of chashu pork and sliced scallions on top, chopsticks resting across the rim. The bowl sits on the left third and the counter runs out to the right edge, a row of empty stools blurred behind it. Warm light from a single pendant overhead. Photoreal food photography, warm low-key palette.",
            "resolution": "1K"
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "6a2f8d04-9c13-4e7b-a5d6-1b9e3f7c2a80",
      "model": "bfl:flux@3.1-image",
      "positivePrompt": "A wide banner frame for a restaurant website: a steaming bowl of tonkotsu ramen on a long dark walnut counter seen from the side at counter height, a halved soft-boiled egg, two slices of chashu pork and sliced scallions on top, chopsticks resting across the rim. The bowl sits on the left third and the counter runs out to the right edge, a row of empty stools blurred behind it. Warm light from a single pendant overhead. Photoreal food photography, warm low-key palette.",
      "resolution": "1K"
    }
  ]'
runware run bfl:flux@3.1-image \
  positivePrompt="A wide banner frame for a restaurant website: a steaming bowl of tonkotsu ramen on a long dark walnut counter seen from the side at counter height, a halved soft-boiled egg, two slices of chashu pork and sliced scallions on top, chopsticks resting across the rim. The bowl sits on the left third and the counter runs out to the right edge, a row of empty stools blurred behind it. Warm light from a single pendant overhead. Photoreal food photography, warm low-key palette." \
  resolution=1K
{
  "taskType": "imageInference",
  "taskUUID": "6a2f8d04-9c13-4e7b-a5d6-1b9e3f7c2a80",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "A wide banner frame for a restaurant website: a steaming bowl of tonkotsu ramen on a long dark walnut counter seen from the side at counter height, a halved soft-boiled egg, two slices of chashu pork and sliced scallions on top, chopsticks resting across the rim. The bowl sits on the left third and the counter runs out to the right edge, a row of empty stools blurred behind it. Warm light from a single pendant overhead. Photoreal food photography, warm low-key palette.",
  "resolution": "1K"
}
Response
{
  "data": [
    {
      "taskType": "imageInference",
      "taskUUID": "6a2f8d04-9c13-4e7b-a5d6-1b9e3f7c2a80",
      "imageUUID": "c4e7a1b9-3d58-4f20-8e6a-5b0d2c9f7a31",
      "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/c4e7a1b9-3d58-4f20-8e6a-5b0d2c9f7a31.jpg"
    }
  ]
}

resolution: "auto" hands the model the size as well as the shape. It suits a pipeline that accepts whatever comes back and a prompt that already says what the image is for. When the output has to fill a known slot, set a tier or an exact size instead.

Setting an exact size

width and height take sizes from 0.25 to about 16.8 megapixels (250,000 to 16,822,272 pixels), each side from 177 to 11,600 pixels, at aspect ratios up to 8:1 in either direction. They are the route when a layout dictates the frame, such as an email header, a homepage hero or a marketplace listing with a fixed size.

An extreme ratio leaves a long stretch of frame to fill, so say what fills it. This prompt describes the space reserved for the headline as railing, sea and sky, which keeps it clear for copy and still reads as part of the scene.

Try in Playground
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })

const [result] = await client.run({
  model: 'bfl:flux@3.1-image',
  positivePrompt: 'A panoramic homepage banner of a seaside promenade in late afternoon. A woman in her thirties in a white linen shirt dress and flat leather sandals walks toward the camera at the right edge of the frame, a straw tote over her shoulder. To her left, the rest of the frame is a pale stone railing running along a calm turquoise sea under a clear sky, open scenery for headline copy. Warm low sun from the right, long soft shadows across the paving. Eye-level shot, 50mm lens. Photoreal fashion lifestyle photography, bright summer palette.',
  width: 2048,
  height: 512
})
import asyncio
import os

from runware import Runware


async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "bfl:flux@3.1-image",
            "positivePrompt": "A panoramic homepage banner of a seaside promenade in late afternoon. A woman in her thirties in a white linen shirt dress and flat leather sandals walks toward the camera at the right edge of the frame, a straw tote over her shoulder. To her left, the rest of the frame is a pale stone railing running along a calm turquoise sea under a clear sky, open scenery for headline copy. Warm low sun from the right, long soft shadows across the paving. Eye-level shot, 50mm lens. Photoreal fashion lifestyle photography, bright summer palette.",
            "width": 2048,
            "height": 512
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "9b5c3e17-2f60-4d8a-b1e4-7c3a0d5f9e26",
      "model": "bfl:flux@3.1-image",
      "positivePrompt": "A panoramic homepage banner of a seaside promenade in late afternoon. A woman in her thirties in a white linen shirt dress and flat leather sandals walks toward the camera at the right edge of the frame, a straw tote over her shoulder. To her left, the rest of the frame is a pale stone railing running along a calm turquoise sea under a clear sky, open scenery for headline copy. Warm low sun from the right, long soft shadows across the paving. Eye-level shot, 50mm lens. Photoreal fashion lifestyle photography, bright summer palette.",
      "width": 2048,
      "height": 512
    }
  ]'
runware run bfl:flux@3.1-image \
  positivePrompt="A panoramic homepage banner of a seaside promenade in late afternoon. A woman in her thirties in a white linen shirt dress and flat leather sandals walks toward the camera at the right edge of the frame, a straw tote over her shoulder. To her left, the rest of the frame is a pale stone railing running along a calm turquoise sea under a clear sky, open scenery for headline copy. Warm low sun from the right, long soft shadows across the paving. Eye-level shot, 50mm lens. Photoreal fashion lifestyle photography, bright summer palette." \
  width=2048 \
  height=512
{
  "taskType": "imageInference",
  "taskUUID": "9b5c3e17-2f60-4d8a-b1e4-7c3a0d5f9e26",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "A panoramic homepage banner of a seaside promenade in late afternoon. A woman in her thirties in a white linen shirt dress and flat leather sandals walks toward the camera at the right edge of the frame, a straw tote over her shoulder. To her left, the rest of the frame is a pale stone railing running along a calm turquoise sea under a clear sky, open scenery for headline copy. Warm low sun from the right, long soft shadows across the paving. Eye-level shot, 50mm lens. Photoreal fashion lifestyle photography, bright summer palette.",
  "width": 2048,
  "height": 512
}
Response
{
  "data": [
    {
      "taskType": "imageInference",
      "taskUUID": "9b5c3e17-2f60-4d8a-b1e4-7c3a0d5f9e26",
      "imageUUID": "e2a6f0c8-7b19-4d53-9a2e-4f8c1b6d3e05",
      "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/e2a6f0c8-7b19-4d53-9a2e-4f8c1b6d3e05.jpg"
    }
  ]
}

Generating at 4K

Size decides how much fine detail survives, and the largest sizes take longer to render and cost more. Reach for 4K when the image will be cropped or printed, and stay near 1K for comps and drafts.

The loupe enlarges a patch an eighth of the frame wide at the foot of the bed, and the weave of the throw and the creases in the linen still hold at that magnification. One render at this size covers both the room shot and the detail crop for the listing.

Rerunning a prompt at a larger size returns a different picture, because there is no seed to carry the first one over. To keep a frame you already like and make it bigger, run it through FLUX 3 Upscaler.

Tips for best results

  1. Set up the scene before the camera. Subject, action, setting, camera, style. The camera clause frames what the earlier clauses built.

  2. Give every figure an action. A gesture or a posture fixes the pose. Without one, the expander picks a new pose on every run.

  3. Describe what is there. There is no negativePrompt, and "no people" written into the prompt still puts people in the sentence. "An empty sidewalk at dawn, wet paving reflecting the streetlights" describes the scene without them.

  4. Describe the frame, not a puzzle. Counting, comparisons and conditions are where long prompts go wrong. Place each element and say what it looks like.

  5. Name where the image will run when you send only a tier, so the aspect ratio the prompt sets is the one you meant.

  6. Generate at the size you deliver. A 1K render does not hold the detail a 4K render does, and a rerun at 4K is a new picture.

  7. Bring a reference for a specific look. Text-to-image covers a narrower range of styles than the model's reference work, so a house illustration style or an unusual art direction lands more reliably from a style reference. See the multi-reference composition guide.

  8. Batch, then edit. Generate several, keep the one that landed, and make every later change as an edit so the rest of the frame stays put. The editing images guide covers that step.