FLUX 3.1 Image

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.

Complete technical specification for integration
Ready-to-use code snippets for common workflows
Step-by-step tutorials for advanced use cases
← All GuidesRendering 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.

A matte white aluminum drinks can standing on a wet slate ledge beside a halved pink grapefruit, beads of condensation on the metal. The can reads "SALTMEADOW" in tall dark green condensed capitals across its upper half, "Sparkling Water · Pink Grapefruit & Thyme" in a smaller dark green serif beneath it, and "330 ml" in fine capitals near the base. A plain pale sage backdrop. Soft daylight from the left, a gentle highlight running down the curve of the can. Straight-on shot at can height, 85mm lens, the can centered with clear space above it. Photoreal beverage packaging photography, fresh cool palette.
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.

A backlit advertising poster in a city bus shelter for a fitness app, with a large headline saying the first month is free and a smaller line telling people to download the app, 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.

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.
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.
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 hardcover novel standing upright on a pale wooden shelf with the title "Nine Summers North" and the author "Ines Calloway" on the cover. Soft daylight. Straight-on shot, 50mm lens. Photoreal product photography.

A hardcover novel standing upright on a pale wooden shelf, its cover a flat deep forest green. "NINE SUMMERS NORTH" runs across the top half of the cover in tall cream serif capitals stacked on three lines and filling the full width of the cover, a thin gold horizontal rule sits below the title, and "INES CALLOWAY" is set in small letterspaced cream capitals along the bottom edge at a fifth of the height of the title letters. Soft daylight from the left, a faint shadow on the shelf. Straight-on shot at cover height, 50mm lens, the book filling two thirds of the frame. Photoreal book cover mockup photography, muted warm palette.
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.

A smartphone lying flat on a pale oak desk, its screen filling most of the frame and showing the onboarding screen of a sleep app on a deep indigo background. A small crescent moon illustration at the top, "Sleep better tonight" in large white sans-serif below it, "Two minutes of wind-down a night is enough to start." in a smaller light lavender sans-serif beneath that, a wide rounded white button reading "Get started" near the bottom, and "I already have an account" in small lavender text under the button. Soft daylight, no glare on the screen. Overhead shot, 50mm lens. Photoreal app product photography, calm cool palette.

A printed recipe card leaning against a glass bottle of olive oil on a white marble kitchen counter. The card reads "Lemon Herb Chicken" in a large dark green serif at the top, "Serves 4 · 35 minutes" in small gray capitals beneath it, then an ingredient list reading "4 chicken thighs", "2 lemons, sliced", "3 garlic cloves" and "1 bunch fresh thyme" in a dark sans-serif. A sprig of thyme lies on the counter beside the card. Soft window light from the left. Three-quarter view at counter height, 50mm lens, shallow depth of field. Photoreal food photography, fresh bright palette.

A printed concert ticket in bright orange card lying on a dark slate table. The ticket reads "THE NIGHT ORCHARD" in bold black condensed capitals across the top, "Live at Harbor Hall" in a smaller black serif below it, "14 March · Doors 7pm" in fine black capitals in the middle, and "Row F · Seat 22" inside a black box on the perforated stub at the right end. Warm overhead light. Overhead shot, 50mm lens, the ticket running diagonally across the frame. Photoreal event photography, warm palette.

A white A-frame real estate sign standing on the front lawn of a gray clapboard house. The sign reads "OPEN HOUSE" in large navy capitals at the top, "Sunday 1 to 4pm" in a smaller navy sans-serif below it, "24 Linden Avenue" beneath that, and "Willow & Pine Realty" in small navy capitals along the bottom edge. Bright afternoon sun, a soft shadow on the grass. Straight-on shot at sign height, 35mm lens, the house out of focus behind the sign. Photoreal real estate photography, fresh bright palette.
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.
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.
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.
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
-
Quote every string. Anything outside quotes is a description, and the model writes its own copy to fit it.
-
Keep each string short. Headlines and labels hold. Long paragraphs are where accuracy drops, so split them or set them outside the image.
-
Size type against the frame. "The full width of the cover" and "a fifth of the title" are measurements the model can hit.
-
Write strings in reading order. Top to bottom, each placed relative to the one before it.
-
Give a string a container when it has to land in one part of the surface, such as a band or a button.
-
Quote the survivors in an edit. Name the strings that must stay as precisely as the one that changes.
-
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.
-
Keep the default mode for type.
qualityis the default, and the stronger mode on small and dense type.



