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

Rendering text

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.

Introduction

FLUX 3.1 Image sets text as part of the picture, so a can or an app screen comes back with its copy already printed on the surface, bent around the curve or lit by the same light as everything else. Every character, its typeface, its size and its position come from positivePrompt, which makes the wording of the text instruction your typographic control.

The same applies to images you already have. Send one as a reference and the model changes or translates the copy in its original lettering, which is how one approved render becomes a set of variants.

This guide covers how to get the characters right, how to direct the type, how to stack several strings into a layout, and how to change or translate the copy in an image that already exists.

Quoting the exact string

Put every string you want printed inside quotation marks. The quotes separate the part of the prompt that describes the scene from the part that is literal copy. A string you only describe is a brief, and the model writes its own copy to meet it.

The described poster says what the brief asked for in words the model picked, and it has no way to know the app is called Pacely. The quoted one prints the headline the campaign signed off on, character for character. For anything a client or a legal team has approved, the quote marks are what carry that approval into the image.

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 backlit advertising poster in a city bus shelter for a fitness app, with "YOUR FIRST MONTH IS ON US" in large bold white capitals across the top and "Download Pacely today" in a smaller white sans-serif beneath it, above a photo of a woman stretching on a running track. A glass and steel shelter, a wet pavement in front of it. Early evening light. Straight-on shot from the curb at standing height, 35mm lens. Photoreal out-of-home advertising photography, cool 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 backlit advertising poster in a city bus shelter for a fitness app, with \"YOUR FIRST MONTH IS ON US\" in large bold white capitals across the top and \"Download Pacely today\" in a smaller white sans-serif beneath it, above a photo of a woman stretching on a running track. A glass and steel shelter, a wet pavement in front of it. Early evening light. Straight-on shot from the curb at standing height, 35mm lens. Photoreal out-of-home advertising photography, cool 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": "3b8e1f42-6a7c-4d95-b0e3-9c2f5a1d7e64",
      "model": "bfl:flux@3.1-image",
      "positivePrompt": "A backlit advertising poster in a city bus shelter for a fitness app, with \"YOUR FIRST MONTH IS ON US\" in large bold white capitals across the top and \"Download Pacely today\" in a smaller white sans-serif beneath it, above a photo of a woman stretching on a running track. A glass and steel shelter, a wet pavement in front of it. Early evening light. Straight-on shot from the curb at standing height, 35mm lens. Photoreal out-of-home advertising photography, cool palette.",
      "width": 1248,
      "height": 832
    }
  ]'
runware run bfl:flux@3.1-image \
  positivePrompt="A backlit advertising poster in a city bus shelter for a fitness app, with \"YOUR FIRST MONTH IS ON US\" in large bold white capitals across the top and \"Download Pacely today\" in a smaller white sans-serif beneath it, above a photo of a woman stretching on a running track. A glass and steel shelter, a wet pavement in front of it. Early evening light. Straight-on shot from the curb at standing height, 35mm lens. Photoreal out-of-home advertising photography, cool palette." \
  width=1248 \
  height=832
{
  "taskType": "imageInference",
  "taskUUID": "3b8e1f42-6a7c-4d95-b0e3-9c2f5a1d7e64",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "A backlit advertising poster in a city bus shelter for a fitness app, with \"YOUR FIRST MONTH IS ON US\" in large bold white capitals across the top and \"Download Pacely today\" in a smaller white sans-serif beneath it, above a photo of a woman stretching on a running track. A glass and steel shelter, a wet pavement in front of it. Early evening light. Straight-on shot from the curb at standing height, 35mm lens. Photoreal out-of-home advertising photography, cool palette.",
  "width": 1248,
  "height": 832
}
Response
{
  "data": [
    {
      "taskType": "imageInference",
      "taskUUID": "3b8e1f42-6a7c-4d95-b0e3-9c2f5a1d7e64",
      "imageUUID": "c7a2e9d1-4f36-4b80-9e15-2d8b6f3a0c47",
      "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/c7a2e9d1-4f36-4b80-9e15-2d8b6f3a0c47.jpg"
    }
  ]
}

Directing the type

Quotes fix the characters. The look of the type is a separate instruction, and a prompt that gives only the string leaves the family, the case, the size and the placement to the model.

A cover is a layout before it is a picture, and the directed prompt hands the model that layout as four decisions:

  • Family and case: "tall cream serif capitals", "small letterspaced cream capitals"
  • Coverage: "across the top half", "filling the full width of the cover"
  • Line breaks: "stacked on three lines"
  • Scale between strings: "at a fifth of the height of the title letters"

Scale and coverage are the two to state as a proportion of something already in the frame. "Large" has nothing to be large against until the model has drawn the cover, while "the full width of the cover" and "a fifth of the title" give it a measurement it can hit.

Laying out several strings

An app screen or a ticket is several strings with a hierarchy between them. Write them in the order they are read, place each one relative to the last, and give each its own size and weight.

Each prompt introduces its strings top to bottom, in reading order, and ties each one to the string before it with "below it" or "under the button". The ticket adds a container, "inside a black box on the perforated stub", which is how a string lands in one specific part of a printed piece.

Accuracy drops on long text. Short strings such as a headline or a date line render reliably. A long paragraph or a full page of copy is where characters start to slip, so split long copy into short labeled strings, or keep it out of the generation and set it in your own layout.

settings.mode defaults to quality, the stronger of the two modes on typography. fast keeps the same features at a lower cost per image, so it suits drafts and volume work where small type is not the deliverable. The trade-off is covered in fast and quality modes.

Changing copy in an existing image

Send the image in inputs.referenceImages and name the string that changes. The new word is drawn in the lettering of the old one, on the same surface and under the same light, so a flavor or a date changes without the label being redesigned.

A jar of red jam with a gingham lid and a round kraft label reading HILLSIDE PANTRY, Strawberry in red script and Small batch · 340 g

A glass jar of red fruit jam with a gingham cloth lid tied with twine, standing on a pale wooden breakfast table. A round kraft paper label on the jar reads "HILLSIDE PANTRY" in small brown capitals arched along the top, "Strawberry" in a large red hand-lettered script across the middle, and "Small batch · 340 g" in fine brown capitals along the bottom. Soft morning light from the right, a short shadow to the left. Straight-on shot at jar height, 85mm lens, the jar centered. Photoreal food packaging photography, warm palette.

StrawberryRaspberry

The instruction quotes both the old word and the new one. A label carries three strings, and "change the flavor" would leave the model to decide which of them is the flavor. Quoting "HILLSIDE PANTRY" and "Small batch · 340 g" among the survivors pins them as firmly as the change.

Run the edit once per flavor and one label render becomes the whole range, with the jar and its lettering matching across every variant.

Translating text in place

A translation is the same edit with the target copy written out in the prompt. Give the model the translated strings in quotes, and say that the lettering stays.

A brushed brass sign on a limestone wall reading SPA & WELLNESS, Treatments · Sauna · Pool and Open daily 7am to 10pm, beside a frosted glass door

A brushed brass sign mounted on a pale limestone wall beside a frosted glass door in a hotel corridor. The sign reads "SPA & WELLNESS" in engraved letterspaced capitals at the top, "Treatments · Sauna · Pool" in a smaller engraved serif below it, and "Open daily 7am to 10pm" in fine engraved capitals at the bottom. Warm recessed downlight from above, a soft glow on the stone. Straight-on shot at eye height, 50mm lens, the sign filling the left two thirds of the frame and the edge of the door on the right. Photoreal hospitality interior photography, warm neutral palette.

EnglishSpanish

Supplying the translation keeps the wording in your hands: the copy that ships is the copy your translator approved, and the quoting rule from the start of this guide applies to it unchanged. Write accented characters exactly as they should appear, since they are part of the string.

Plan for length. A translation often runs longer than the source, and the new copy has to fit the same plate, so check the longest line when the target language is wordier than the original.

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: 'Translate the sign into Spanish: "SPA Y BIENESTAR", "Tratamientos · Sauna · Piscina" and "Abierto todos los días de 7:00 a 22:00". Keep the same engraved brass lettering, the same fonts, the same sizes and the same line positions. Keep the door, the wall, the framing and the lighting unchanged.',
  inputs: {
    referenceImages: [
      'https://assets.runware.ai/guides/bfl-flux-3-1-image/text-rendering/translate-source.jpg'
    ]
  },
  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": "Translate the sign into Spanish: \"SPA Y BIENESTAR\", \"Tratamientos · Sauna · Piscina\" and \"Abierto todos los días de 7:00 a 22:00\". Keep the same engraved brass lettering, the same fonts, the same sizes and the same line positions. Keep the door, the wall, the framing and the lighting unchanged.",
            "inputs": {
                "referenceImages": [
                    "https://assets.runware.ai/guides/bfl-flux-3-1-image/text-rendering/translate-source.jpg"
                ]
            },
            "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": "8d4f2a96-1c5b-4e73-a6d0-7b3e9f2c1a58",
      "model": "bfl:flux@3.1-image",
      "positivePrompt": "Translate the sign into Spanish: \"SPA Y BIENESTAR\", \"Tratamientos · Sauna · Piscina\" and \"Abierto todos los días de 7:00 a 22:00\". Keep the same engraved brass lettering, the same fonts, the same sizes and the same line positions. Keep the door, the wall, the framing and the lighting unchanged.",
      "inputs": {
        "referenceImages": [
          "https://assets.runware.ai/guides/bfl-flux-3-1-image/text-rendering/translate-source.jpg"
        ]
      },
      "width": 1248,
      "height": 832
    }
  ]'
runware run bfl:flux@3.1-image \
  positivePrompt="Translate the sign into Spanish: \"SPA Y BIENESTAR\", \"Tratamientos · Sauna · Piscina\" and \"Abierto todos los días de 7:00 a 22:00\". Keep the same engraved brass lettering, the same fonts, the same sizes and the same line positions. Keep the door, the wall, the framing and the lighting unchanged." \
  inputs.referenceImages.0=https://assets.runware.ai/guides/bfl-flux-3-1-image/text-rendering/translate-source.jpg \
  width=1248 \
  height=832
{
  "taskType": "imageInference",
  "taskUUID": "8d4f2a96-1c5b-4e73-a6d0-7b3e9f2c1a58",
  "model": "bfl:flux@3.1-image",
  "positivePrompt": "Translate the sign into Spanish: \"SPA Y BIENESTAR\", \"Tratamientos · Sauna · Piscina\" and \"Abierto todos los días de 7:00 a 22:00\". Keep the same engraved brass lettering, the same fonts, the same sizes and the same line positions. Keep the door, the wall, the framing and the lighting unchanged.",
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/guides/bfl-flux-3-1-image/text-rendering/translate-source.jpg"
    ]
  },
  "width": 1248,
  "height": 832
}
Response
{
  "data": [
    {
      "taskType": "imageInference",
      "taskUUID": "8d4f2a96-1c5b-4e73-a6d0-7b3e9f2c1a58",
      "imageUUID": "e2b6c4f8-9a13-4d57-8f20-5c1a7e3d9b06",
      "imageURL": "https://im.runware.ai/image/os/a14d18/ws/2/ii/e2b6c4f8-9a13-4d57-8f20-5c1a7e3d9b06.jpg"
    }
  ]
}

Tips for best results

  1. Quote every string. Anything outside quotes is a description, and the model writes its own copy to fit it.

  2. Keep each string short. Headlines and labels hold. Long paragraphs are where accuracy drops, so split them or set them outside the image.

  3. Size type against the frame. "The full width of the cover" and "a fifth of the title" are measurements the model can hit.

  4. Write strings in reading order. Top to bottom, each placed relative to the one before it.

  5. Give a string a container when it has to land in one part of the surface, such as a band or a button.

  6. Quote the survivors in an edit. Name the strings that must stay as precisely as the one that changes.

  7. Supply your own translations. Quote the target copy and ask for the same fonts, so the wording on the sign is the wording you approved.

  8. Keep the default mode for type. quality is the default, and the stronger mode on small and dense type.