---
title: Grounding with web and image search — FLUX 3.1 Image | Runware Docs
url: https://runware.ai/docs/models/bfl-flux-3-1-image/guides/grounded-generation
description: 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](https://runware.ai/docs/models/bfl-flux-3-1-image/guides/grounded-generation#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.

![Hallgrímskirkja in Reykjavík at the top of a rainbow-painted street rising uphill, its stepped concrete facade and central tower lit by clear evening light, a few pedestrians on the pavement](https://runware.ai/docs/assets/hero.CEfK7iRl_Z1Xwntx.jpg)

> **Prompt**: 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.

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

**TypeScript**:

```typescript
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'
  }
})
```

**Python**:

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

```bash
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"
      }
    }
  ]'
```

**CLI**:

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

**JSON**:

```json
{
  "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"
  }
}
```

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

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

![A low desert plant with a star of separate wavy leaves radiating from its center on a gravel plain in low sun](https://runware.ai/docs/assets/species-off.IsiURFJu_2k8S4b.jpg)

*Grounding off*

> **Prompt**: A field guide photograph for a biology app: a mature Welwitschia mirabilis growing on the gravel plains of the Namib desert, the whole plant in frame and nothing else growing around it. Low morning sun from the left, long shadows on the gravel. Eye-level shot from a few meters away, 35mm lens, deep focus. Photoreal natural history photography, no text.

![A mature Welwitschia on a gravel plain, its two long leaves split into tangled ribbons spreading across the ground in low morning sun](https://runware.ai/docs/assets/species-force.CTUGUiSy_2gLB72.jpg)

*Grounding forced*

> **Prompt**: A field guide photograph for a biology app: a mature Welwitschia mirabilis growing on the gravel plains of the Namib desert, the whole plant in frame and nothing else growing around it. Low morning sun from the left, long shadows on the gravel. Eye-level shot from a few meters away, 35mm lens, deep focus. Photoreal natural history photography, no text.

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

![A white card headed MEN'S MARATHON WORLD RECORD with 2:00:35 in large black numerals and Kelvin Kiptum, Cheltenham, 2023 in small gray type beneath](https://runware.ai/docs/assets/record-off.Ca9v5DbJ_1W4M4a.jpg)

*Grounding off*

> **Prompt**: A minimal infographic card on a white background: "MEN'S MARATHON WORLD RECORD" in small black capitals at the top, the current official world record time in large black numerals beneath it, and the record holder's name with the city and year the record was set in small gray type at the bottom. No people, no photos. Clean Swiss typographic design.

![The same white card with 1:59:30 in large black numerals and Sabastian Sawe, London, 2026 in small gray type beneath](https://runware.ai/docs/assets/record-force.CRIhH4g4_1G0KJ2.jpg)

*Grounding forced*

> **Prompt**: A minimal infographic card on a white background: "MEN'S MARATHON WORLD RECORD" in small black capitals at the top, the current official world record time in large black numerals beneath it, and the record holder's name with the city and year the record was set in small gray type at the bottom. No people, no photos. Clean Swiss typographic design.

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