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
text-to-image
Organ Voicer Press Headshot$0.03~7s
Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall's restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border.
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: 'Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall\'s restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border.',
width: 1216,
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": "Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall's restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border.",
"width": 1216,
"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": "6e31a7aa-57cf-4c3b-a08a-8a5cbebd54cf",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall'\''s restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border.",
"width": 1216,
"height": 832
}
]'runware run bfl:flux@3.1-image \
positivePrompt="Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall's restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border." \
width=1216 \
height=832{
"taskType": "imageInference",
"taskUUID": "6e31a7aa-57cf-4c3b-a08a-8a5cbebd54cf",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Create a finished editorial headshot of a 62-year-old pipe-organ voicer for a concert hall's restoration announcement. Frame her from the upper chest in a 1216x832 landscape image. Place her just left of center with her shoulders angled slightly right and her eyes meeting the camera. She has short silver curls, deep brown skin, and an easy, closed-mouth smile. She wears a rust corduroy work jacket over a charcoal crewneck. On the right, a row of dull pewter organ pipes resolves into broad, soft verticals: enough context to place her in the workshop without competing with her face. Use a large soft key from camera left and gentle bounce from the right. Keep the light soft but directional so the cheekbones and jacket ribs retain their shape. Give the portrait a light editorial retouch: soften the shine on her forehead, lift the deepest under-eye shadows slightly, and remove a few lint specks from the jacket. Keep her smile lines, natural pores, and the small mole below her left cheekbone. The palette is warm rust, charcoal, and cool pewter. Make it quietly assured and ready to publish as a standalone photograph, with no text, graphics, or border.",
"width": 1216,
"height": 832
}Response
{
"taskType": "imageInference",
"taskUUID": "6e31a7aa-57cf-4c3b-a08a-8a5cbebd54cf",
"imageUUID": "9bab75e6-78a0-4b9a-931c-e745a3226001",
"imageURL": "https://im.runware.ai/image/os/a05d22/ws/3/ii/9bab75e6-78a0-4b9a-931c-e745a3226001.jpg",
"cost": 0.03
}reference-to-image
Rotary Snowplow Phone Wallpaper$0.042~12s
Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow's outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference's flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image's head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup.
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: 'Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow\'s outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference\'s flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image\'s head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup.',
resolution: '1.5K',
inputs: {
referenceImages: [
'https://assets.runware.ai/assets/inputs/a8b87477-9ac1-4a5d-91fe-288bdbbc7863.jpg',
'https://assets.runware.ai/assets/inputs/c6fa84f1-d674-47ad-988f-d2ee53c9489e.jpg'
]
}
})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": "Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow's outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference's flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image's head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup.",
"resolution": "1.5K",
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/a8b87477-9ac1-4a5d-91fe-288bdbbc7863.jpg",
"https://assets.runware.ai/assets/inputs/c6fa84f1-d674-47ad-988f-d2ee53c9489e.jpg"
]
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "b03a9656-a135-44f1-ba11-e3df0968856e",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow'\''s outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference'\''s flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image'\''s head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup.",
"resolution": "1.5K",
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/a8b87477-9ac1-4a5d-91fe-288bdbbc7863.jpg",
"https://assets.runware.ai/assets/inputs/c6fa84f1-d674-47ad-988f-d2ee53c9489e.jpg"
]
}
}
]'runware run bfl:flux@3.1-image \
positivePrompt="Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow's outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference's flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image's head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup." \
resolution=1.5K \
inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/a8b87477-9ac1-4a5d-91fe-288bdbbc7863.jpg \
inputs.referenceImages.1=https://assets.runware.ai/assets/inputs/c6fa84f1-d674-47ad-988f-d2ee53c9489e.jpg{
"taskType": "imageInference",
"taskUUID": "b03a9656-a135-44f1-ba11-e3df0968856e",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Finish a full-bleed 4:9 phone lock-screen wallpaper for a mountain railway museum shop. Use the first reference as the composition to edit. Replace only the muted red paint on the rotary snowplow's outer circular housing with the pale glacier-turquoise porcelain enamel from the second reference. Borrow its fine irregular navy flecks and satin sheen, not the second reference's flat lighting or macro framing. Keep the flecks small enough to read as a finish at this distance, and let the enamel follow the curved housing and its existing blue-hour highlights. Preserve the first image's head-on camera angle, low placement of the rotary head, dark bare-steel scoops, frost along the housing lip, converging rails, snowbanks, and depot roofline. Keep the upper third a quiet, dark slate-blue sky so a white lock-screen clock will be legible over it. Deliver only the finished wallpaper artwork, with no clock, interface, lettering, border, or device mockup.",
"resolution": "1.5K",
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/a8b87477-9ac1-4a5d-91fe-288bdbbc7863.jpg",
"https://assets.runware.ai/assets/inputs/c6fa84f1-d674-47ad-988f-d2ee53c9489e.jpg"
]
}
}Response
{
"taskType": "imageInference",
"taskUUID": "b03a9656-a135-44f1-ba11-e3df0968856e",
"imageUUID": "372b6e99-28f4-4a2f-b15b-6f13b20d4cd6",
"imageURL": "https://im.runware.ai/image/os/a01d21/ws/3/ii/372b6e99-28f4-4a2f-b15b-6f13b20d4cd6.jpg",
"cost": 0.042
}inpaint
Pinball Restorer Birthday Portrait$0.03~10s
Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in's height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering.
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: 'Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in\'s height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering.',
resolution: '1K',
inputs: {
referenceImages: [
'https://assets.runware.ai/assets/inputs/367965b2-f8d9-46ee-abb3-b10d13238d23.jpg'
],
maskImage: 'https://assets.runware.ai/assets/inputs/df1adb89-3f78-4d8e-9fdd-def4263765d8.png'
}
})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": "Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in's height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering.",
"resolution": "1K",
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/367965b2-f8d9-46ee-abb3-b10d13238d23.jpg"
],
"maskImage": "https://assets.runware.ai/assets/inputs/df1adb89-3f78-4d8e-9fdd-def4263765d8.png"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "98244e29-818a-4829-9690-f37b36b90bce",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in'\''s height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering.",
"resolution": "1K",
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/367965b2-f8d9-46ee-abb3-b10d13238d23.jpg"
],
"maskImage": "https://assets.runware.ai/assets/inputs/df1adb89-3f78-4d8e-9fdd-def4263765d8.png"
}
}
]'runware run bfl:flux@3.1-image \
positivePrompt="Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in's height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering." \
resolution=1K \
inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/367965b2-f8d9-46ee-abb3-b10d13238d23.jpg \
inputs.maskImage=https://assets.runware.ai/assets/inputs/df1adb89-3f78-4d8e-9fdd-def4263765d8.png{
"taskType": "imageInference",
"taskUUID": "98244e29-818a-4829-9690-f37b36b90bce",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Replace the entire masked display mannequin with a woman who restores vintage pinball machines, posing for her 50th-birthday portrait. Remove all traces of the mannequin. Keep the butter-yellow cyclorama, floor, existing shadow, camera position and crop unchanged. Match the soft studio light from upper camera left. Keep her head and shoes at the stand-in's height and floor position, with her whole figure within its outline. She has a close-cropped salt-and-pepper fade, dark brown skin with natural texture, and a dry, almost-smile straight into the lens. Dress her in a sculptural cherry-red quilted satin coat with rounded bumper-like panels, electric-blue trousers and ivory loafers. Her hands are tucked in the coat pockets and her feet are close together. Give the portrait the crisp color and playful poise of a 1980s toy-catalog photograph, but let her expression carry the joke. No props or lettering.",
"resolution": "1K",
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/367965b2-f8d9-46ee-abb3-b10d13238d23.jpg"
],
"maskImage": "https://assets.runware.ai/assets/inputs/df1adb89-3f78-4d8e-9fdd-def4263765d8.png"
}
}Response
{
"taskType": "imageInference",
"taskUUID": "98244e29-818a-4829-9690-f37b36b90bce",
"imageUUID": "0a6eb8f7-34b0-4e87-b1ea-29c27d170430",
"imageURL": "https://im.runware.ai/image/os/a03d21/ws/3/ii/0a6eb8f7-34b0-4e87-b1ea-29c27d170430.jpg",
"cost": 0.03
}bounding-boxes
Bell Foundry Editorial Photograph$0.03~6s
Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell's crown and flared lip as well as the fork's shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays.
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: 'Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell\'s crown and flared lip as well as the fork\'s shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays.',
width: 1024,
height: 1024,
settings: {
boundingBoxes: [
{
id: 'main',
targetBox: [
180,
100,
800,
480
]
},
{
id: 'accent',
targetBox: [
480,
570,
810,
900
]
}
]
}
})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": "Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell's crown and flared lip as well as the fork's shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays.",
"width": 1024,
"height": 1024,
"settings": {
"boundingBoxes": [
{
"id": "main",
"targetBox": [
180,
100,
800,
480
]
},
{
"id": "accent",
"targetBox": [
480,
570,
810,
900
]
}
]
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "d0f756f7-e045-4497-a96e-03ba05ae54d9",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell'\''s crown and flared lip as well as the fork'\''s shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays.",
"width": 1024,
"height": 1024,
"settings": {
"boundingBoxes": [
{
"id": "main",
"targetBox": [
180,
100,
800,
480
]
},
{
"id": "accent",
"targetBox": [
480,
570,
810,
900
]
}
]
}
}
]'runware run bfl:flux@3.1-image \
positivePrompt="Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell's crown and flared lip as well as the fork's shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays." \
width=1024 \
height=1024 \
settings.boundingBoxes.0.id=main \
settings.boundingBoxes.0.targetBox.0=180 \
settings.boundingBoxes.0.targetBox.1=100 \
settings.boundingBoxes.0.targetBox.2=800 \
settings.boundingBoxes.0.targetBox.3=480 \
settings.boundingBoxes.1.id=accent \
settings.boundingBoxes.1.targetBox.0=480 \
settings.boundingBoxes.1.targetBox.1=570 \
settings.boundingBoxes.1.targetBox.2=810 \
settings.boundingBoxes.1.targetBox.3=900{
"taskType": "imageInference",
"taskUUID": "d0f756f7-e045-4497-a96e-03ba05ae54d9",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Square editorial photograph for an architecture magazine story about how historic civic bells are tuned. Place a large cast-bronze tower bell upright at <main> and a much smaller steel tuning fork lying flat at <accent>. Both rest on the same dusty slate-blue foundry floor, with a clear strip of bare floor between their silhouettes. The bell dominates the frame; the fork is small by comparison but both prongs and its stem are clearly legible. Shoot from an elevated three-quarter angle that shows the bell's crown and flared lip as well as the fork's shape. Hard winter daylight from a high window rakes across the bronze, bringing out pitting and fine circular machining marks near the rim. Keep the palette cool and restrained: slate blue, dark umber bronze, and a narrow silver highlight on the fork. Let the floor run to all four edges. The picture should feel like a quiet moment on a working foundry floor, not a polished product shoot. No people, extra tools, lettering, or graphic overlays.",
"width": 1024,
"height": 1024,
"settings": {
"boundingBoxes": [
{
"id": "main",
"targetBox": [
180,
100,
800,
480
]
},
{
"id": "accent",
"targetBox": [
480,
570,
810,
900
]
}
]
}
}Response
{
"taskType": "imageInference",
"taskUUID": "d0f756f7-e045-4497-a96e-03ba05ae54d9",
"imageUUID": "194706f3-74cd-4247-9a1d-03d76b14cd9e",
"imageURL": "https://im.runware.ai/image/os/a06dlim3/ws/3/ii/194706f3-74cd-4247-9a1d-03d76b14cd9e.jpg",
"cost": 0.03
}reference-bounding-boxes
Stained Glass Grinder Lifestyle Photo$0.03~8s
Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props.
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: 'Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props.',
resolution: '1K',
settings: {
boundingBoxes: [
{
id: 'subject',
referenceIndex: 0,
sourceBox: [
300,
100,
700,
400
],
targetBox: [
300,
600,
700,
900
]
}
]
},
inputs: {
referenceImages: [
'https://assets.runware.ai/assets/inputs/1a197d34-2a4b-4107-89b3-cb40ff725a37.jpg'
]
}
})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": "Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props.",
"resolution": "1K",
"settings": {
"boundingBoxes": [
{
"id": "subject",
"referenceIndex": 0,
"sourceBox": [
300,
100,
700,
400
],
"targetBox": [
300,
600,
700,
900
]
}
]
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/1a197d34-2a4b-4107-89b3-cb40ff725a37.jpg"
]
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "imageInference",
"taskUUID": "875330e2-99a0-47eb-b13c-9418664667f5",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props.",
"resolution": "1K",
"settings": {
"boundingBoxes": [
{
"id": "subject",
"referenceIndex": 0,
"sourceBox": [
300,
100,
700,
400
],
"targetBox": [
300,
600,
700,
900
]
}
]
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/1a197d34-2a4b-4107-89b3-cb40ff725a37.jpg"
]
}
}
]'runware run bfl:flux@3.1-image \
positivePrompt="Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props." \
resolution=1K \
settings.boundingBoxes.0.id=subject \
settings.boundingBoxes.0.referenceIndex=0 \
settings.boundingBoxes.0.sourceBox.0=300 \
settings.boundingBoxes.0.sourceBox.1=100 \
settings.boundingBoxes.0.sourceBox.2=700 \
settings.boundingBoxes.0.sourceBox.3=400 \
settings.boundingBoxes.0.targetBox.0=300 \
settings.boundingBoxes.0.targetBox.1=600 \
settings.boundingBoxes.0.targetBox.2=700 \
settings.boundingBoxes.0.targetBox.3=900 \
inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/1a197d34-2a4b-4107-89b3-cb40ff725a37.jpg{
"taskType": "imageInference",
"taskUUID": "875330e2-99a0-47eb-b13c-9418664667f5",
"model": "bfl:flux@3.1-image",
"positivePrompt": "Move <subject>, the stained-glass grinder, from its current position on the left into the configured target region on the right. Slide it sideways along the same workbench plane without moving it closer to or farther from the camera. Keep its exact scale, three-quarter orientation, seafoam housing, charcoal grid, brass grinding bit, and rocker switch. Preserve the cool window light and recreate the soft contact shadow directly beneath the grinder at its new position. Remove the old shadow and reveal the matching slate beneath the original footprint. Keep the camera, crop, focus, workbench, windows, wall, and color grade unchanged. Leave the cleared left side empty; do not add text or props.",
"resolution": "1K",
"settings": {
"boundingBoxes": [
{
"id": "subject",
"referenceIndex": 0,
"sourceBox": [
300,
100,
700,
400
],
"targetBox": [
300,
600,
700,
900
]
}
]
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/1a197d34-2a4b-4107-89b3-cb40ff725a37.jpg"
]
}
}Response
{
"taskType": "imageInference",
"taskUUID": "875330e2-99a0-47eb-b13c-9418664667f5",
"imageUUID": "e00ed42d-1ceb-4a40-9ed0-5b143d7ac4de",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/3/ii/e00ed42d-1ceb-4a40-9ed0-5b143d7ac4de.jpg",
"cost": 0.03
}