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

Grounding with web and image search

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.

Introduction

An image model draws from what it saw in training. A landmark it saw a handful of times comes back as a plausible guess at the real building, and a fact that changed after its training, such as a record broken since, comes back stale or invented and typeset as confidently as a true one.

FLUX 3.1 Image can search the web for reference images and facts before it generates. settings.grounding decides when that search runs, and by default it never does.

The prompt names the church and the street and describes the shape of neither, so the facade and the tower have to come from what the model looked up. That is the job grounding does in a travel header a visitor will compare against the real view.

This guide covers the three values of the setting, matching a real appearance, stating a current fact, writing a prompt a search can act on, and the cases where the search should stay off.

The setting

settings.grounding takes one of three values:

  • off is the default, and never searches, so the model works from the prompt alone.
  • auto lets the model decide per request whether a search would help.
  • force searches on every request, before the image is generated.
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 destination header photograph for a travel app: Hallgrímskirkja in Reykjavík as it stands today, seen from the foot of Skólavörðustígur with the street leading uphill to the church and the tower rising at the top of it. Clear late-evening summer light, a few pedestrians on the pavement, deep focus. Photoreal travel photography, natural color, no text.',
  width: 1248,
  height: 832,
  settings: {
    grounding: 'force'
  }
})
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 destination header photograph for a travel app: Hallgrímskirkja in Reykjavík as it stands today, seen from the foot of Skólavörðustígur with the street leading uphill to the church and the tower rising at the top of it. Clear late-evening summer light, a few pedestrians on the pavement, deep focus. Photoreal travel photography, natural color, no text.",
            "width": 1248,
            "height": 832,
            "settings": {
                "grounding": "force"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "imageInference",
      "taskUUID": "6e1a9c37-2b48-4f05-8d71-a3c5e0f2b914",
      "model": "bfl:flux@3.1-image",
      "positivePrompt": "A destination header photograph for a travel app: Hallgrímskirkja in Reykjavík as it stands today, seen from the foot of Skólavörðustígur with the street leading uphill to the church and the tower rising at the top of it. Clear late-evening summer light, a few pedestrians on the pavement, deep focus. Photoreal travel photography, natural color, no text.",
      "width": 1248,
      "height": 832,
      "settings": {
        "grounding": "force"
      }
    }
  ]'
runware run bfl:flux@3.1-image \
  positivePrompt="A destination header photograph for a travel app: Hallgrímskirkja in Reykjavík as it stands today, seen from the foot of Skólavörðustígur with the street leading uphill to the church and the tower rising at the top of it. Clear late-evening summer light, a few pedestrians on the pavement, deep focus. Photoreal travel photography, natural color, no text." \
  width=1248 \
  height=832 \
  settings.grounding=force
{
  "taskType": "imageInference",
  "taskUUID": "6e1a9c37-2b48-4f05-8d71-a3c5e0f2b914",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "A destination header photograph for a travel app: Hallgrímskirkja in Reykjavík as it stands today, seen from the foot of Skólavörðustígur with the street leading uphill to the church and the tower rising at the top of it. Clear late-evening summer light, a few pedestrians on the pavement, deep focus. Photoreal travel photography, natural color, no text.",
  "width": 1248,
  "height": 832,
  "settings": {
    "grounding": "force"
  }
}
Response
{
  "data": [
    {
      "taskType": "imageInference",
      "taskUUID": "6e1a9c37-2b48-4f05-8d71-a3c5e0f2b914",
      "imageUUID": "b4d8f2a6-7c19-4e53-9a06-1f3b8c5d2e70",
      "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/b4d8f2a6-7c19-4e53-9a06-1f3b8c5d2e70.jpg"
    }
  ]
}

auto suits general work, where a search helps some prompts and not others. When the image will be checked against the real world, set force instead: a per-request decision can go the other way on exactly the request where accuracy mattered.

The response carries the image and nothing about what the search found, so a grounded result cannot be traced back to its sources. Check any figure that matters before the image ships.

A grounded image reflects what the search returned when the request ran. Keep the file you approve: a rerun searches again, and with no seed it draws a new image either way.

Matching a real appearance

Force the search when the subject has one correct appearance a reader could check. Both images below come from the same prompt, which names a desert plant and says nothing about its shape.

Welwitschia grows only two leaves, which split into long ribbons over its lifetime and spread across the gravel. That is what a biology teacher looks for, and with the search off the model has nothing but the name to draw it from. With the search forced it has pictures of the plant, and the ribbons are there.

The same holds for anything the image has to resemble rather than evoke: a landmark, a venue, an animal breed, a vehicle type. An educational illustration or a destination header loses its value the moment the subject is recognizably wrong.

Stating a current fact

A fact that changed after training can only be right if it is fetched. Both cards below come from one prompt that asks for the current men's marathon world record.

The record changed in April 2026. With the search off, the model prints the record it knew, from 2023, and places it in Cheltenham, though that record was set in Chicago. With the search forced, every line of the card matches the new record.

That is the risk with every stated fact: a fetched value and an invented one look identical once they are typeset. Records, prices, schedules and anything else that changes belong under force.

Live values such as today's date, the local time in a city or the current weather come back right under force as well. Under auto the model does not search for today's date and prints one from its training instead.

Writing a prompt the search can act on

The search runs on what the prompt names, so the prompt has to name something a search can find.

  • Name the entity itself. "Hallgrímskirkja in Reykjavík" is a query. "A modernist concrete church in Iceland" is a description, and many buildings fit it.
  • Ask for the current value. "The current official world record time" marks the value as one to look up rather than one to compose for the layout.
  • Anchor it in time. "As it stands today" asks for the current state of a place that has changed over the years.
  • Name the view. A landmark is photographed from a few favorite spots, so say which one you want, the way the hero names the foot of Skólavörðustígur.

When to leave it off

Keep the default, off, when there is nothing to look up: an invented subject, such as a fictional brand or a product that does not exist yet, or a prompt that already describes everything the image needs. auto can still decide to search on a name it recognizes, so off is the value that guarantees the model works from your description alone.

Tips for best results

  1. Force the search when accuracy is checkable. A real place or a stated fact is where auto deciding against a search costs you.

  2. Live values need a forced search too. Under auto the model prints a date from its training instead of today's.

  3. Name the narrowest entity you can. A named building beats a building type, and a species beats "a desert plant".

  4. Ask for the current value in words. "The current world record" and "as it stands today" tell the model what has to be looked up.

  5. Leave it off for invented subjects. There is nothing to look up, and off, the default, keeps the model on your description.

  6. Check figures before the image ships. The response does not say where a value came from.

  7. Keep the file you approve. A rerun searches again and draws again.