FLUX.1 Fill [pro]

FLUX.1 Fill Pro provides advanced inpainting and outpainting for real and generated images. Supply an input image, mask, and text prompt. The model fills or extends regions with seamless content that matches context and style. Ideal for edits, layout fixes, and content-aware expansion.
![FLUX.1 Fill [pro]](https://assets.runware.ai/covers/bfl-flux-1-fill-pro.jpg)
Complete technical specification for integration
Ready-to-use code snippets for common workflows
inpaint
Polar Institute Director Headshot$0.05~12s
Replace only the masked person with a meticulously retouched, publication-ready version of the same woman while preserving the surrounding pale blue-gray studio background exactly. Maintain her unmistakable facial identity, Greenlandic ancestry, age, face shape, brown eyes, nose, mouth, natural asymmetry, short salt-and-pepper hair, direct gaze, calm expression, body proportions, pose, framing, and head position. Create an authoritative but approachable leadership headshot for a polar research institute director, not a fashion portrait. Refine stray hairs while retaining believable individual strands and a natural silver-and-charcoal texture. Apply restrained professional retouching: balanced complexion, softened temporary redness and under-eye darkness, subtle catchlights, clean color, and gently improved contrast while preserving pores, fine lines, sun exposure, and the authentic character of a veteran Arctic field leader. No plastic skin, face reshaping, age reduction, heavy makeup, or glamour styling. Replace the rumpled technical fleece with a precisely tailored deep navy wool blazer over a matte slate-blue fine-gauge crewneck, understated and practical, with realistic seams, folds, and fabric texture. Use soft directional studio light from camera left with delicate fill, natural facial modeling, controlled highlights, and a subtle clean rim along the hair and shoulders that integrates seamlessly with the existing background. Neutral-cool institutional editorial color grade with navy, slate, silver, and pale ice-blue tones. Crisp focus on the eyes, realistic skin and hair, polished medium-format photographic quality. Keep the result as one standalone vertical headshot with no props, logos, badges, text, borders, or added background elements.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'bfl:1@2',
positivePrompt: 'Replace only the masked person with a meticulously retouched, publication-ready version of the same woman while preserving the surrounding pale blue-gray studio background exactly. Maintain her unmistakable facial identity, Greenlandic ancestry, age, face shape, brown eyes, nose, mouth, natural asymmetry, short salt-and-pepper hair, direct gaze, calm expression, body proportions, pose, framing, and head position. Create an authoritative but approachable leadership headshot for a polar research institute director, not a fashion portrait. Refine stray hairs while retaining believable individual strands and a natural silver-and-charcoal texture. Apply restrained professional retouching: balanced complexion, softened temporary redness and under-eye darkness, subtle catchlights, clean color, and gently improved contrast while preserving pores, fine lines, sun exposure, and the authentic character of a veteran Arctic field leader. No plastic skin, face reshaping, age reduction, heavy makeup, or glamour styling. Replace the rumpled technical fleece with a precisely tailored deep navy wool blazer over a matte slate-blue fine-gauge crewneck, understated and practical, with realistic seams, folds, and fabric texture. Use soft directional studio light from camera left with delicate fill, natural facial modeling, controlled highlights, and a subtle clean rim along the hair and shoulders that integrates seamlessly with the existing background. Neutral-cool institutional editorial color grade with navy, slate, silver, and pale ice-blue tones. Crisp focus on the eyes, realistic skin and hair, polished medium-format photographic quality. Keep the result as one standalone vertical headshot with no props, logos, badges, text, borders, or added background elements.',
inputs: {
seedImage: 'https://assets.runware.ai/assets/inputs/7e532244-391d-42cb-8147-6521a8659db4.jpg',
maskImage: 'https://assets.runware.ai/assets/inputs/7fe9ba3b-8868-43bb-850f-b1c925a9aea9.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:1@2",
"positivePrompt": "Replace only the masked person with a meticulously retouched, publication-ready version of the same woman while preserving the surrounding pale blue-gray studio background exactly. Maintain her unmistakable facial identity, Greenlandic ancestry, age, face shape, brown eyes, nose, mouth, natural asymmetry, short salt-and-pepper hair, direct gaze, calm expression, body proportions, pose, framing, and head position. Create an authoritative but approachable leadership headshot for a polar research institute director, not a fashion portrait. Refine stray hairs while retaining believable individual strands and a natural silver-and-charcoal texture. Apply restrained professional retouching: balanced complexion, softened temporary redness and under-eye darkness, subtle catchlights, clean color, and gently improved contrast while preserving pores, fine lines, sun exposure, and the authentic character of a veteran Arctic field leader. No plastic skin, face reshaping, age reduction, heavy makeup, or glamour styling. Replace the rumpled technical fleece with a precisely tailored deep navy wool blazer over a matte slate-blue fine-gauge crewneck, understated and practical, with realistic seams, folds, and fabric texture. Use soft directional studio light from camera left with delicate fill, natural facial modeling, controlled highlights, and a subtle clean rim along the hair and shoulders that integrates seamlessly with the existing background. Neutral-cool institutional editorial color grade with navy, slate, silver, and pale ice-blue tones. Crisp focus on the eyes, realistic skin and hair, polished medium-format photographic quality. Keep the result as one standalone vertical headshot with no props, logos, badges, text, borders, or added background elements.",
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/7e532244-391d-42cb-8147-6521a8659db4.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/7fe9ba3b-8868-43bb-850f-b1c925a9aea9.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": "37c1bc34-11b9-4b84-9030-54dc7d9ec363",
"model": "bfl:1@2",
"positivePrompt": "Replace only the masked person with a meticulously retouched, publication-ready version of the same woman while preserving the surrounding pale blue-gray studio background exactly. Maintain her unmistakable facial identity, Greenlandic ancestry, age, face shape, brown eyes, nose, mouth, natural asymmetry, short salt-and-pepper hair, direct gaze, calm expression, body proportions, pose, framing, and head position. Create an authoritative but approachable leadership headshot for a polar research institute director, not a fashion portrait. Refine stray hairs while retaining believable individual strands and a natural silver-and-charcoal texture. Apply restrained professional retouching: balanced complexion, softened temporary redness and under-eye darkness, subtle catchlights, clean color, and gently improved contrast while preserving pores, fine lines, sun exposure, and the authentic character of a veteran Arctic field leader. No plastic skin, face reshaping, age reduction, heavy makeup, or glamour styling. Replace the rumpled technical fleece with a precisely tailored deep navy wool blazer over a matte slate-blue fine-gauge crewneck, understated and practical, with realistic seams, folds, and fabric texture. Use soft directional studio light from camera left with delicate fill, natural facial modeling, controlled highlights, and a subtle clean rim along the hair and shoulders that integrates seamlessly with the existing background. Neutral-cool institutional editorial color grade with navy, slate, silver, and pale ice-blue tones. Crisp focus on the eyes, realistic skin and hair, polished medium-format photographic quality. Keep the result as one standalone vertical headshot with no props, logos, badges, text, borders, or added background elements.",
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/7e532244-391d-42cb-8147-6521a8659db4.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/7fe9ba3b-8868-43bb-850f-b1c925a9aea9.png"
}
}
]'runware run bfl:1@2 \
positivePrompt="Replace only the masked person with a meticulously retouched, publication-ready version of the same woman while preserving the surrounding pale blue-gray studio background exactly. Maintain her unmistakable facial identity, Greenlandic ancestry, age, face shape, brown eyes, nose, mouth, natural asymmetry, short salt-and-pepper hair, direct gaze, calm expression, body proportions, pose, framing, and head position. Create an authoritative but approachable leadership headshot for a polar research institute director, not a fashion portrait. Refine stray hairs while retaining believable individual strands and a natural silver-and-charcoal texture. Apply restrained professional retouching: balanced complexion, softened temporary redness and under-eye darkness, subtle catchlights, clean color, and gently improved contrast while preserving pores, fine lines, sun exposure, and the authentic character of a veteran Arctic field leader. No plastic skin, face reshaping, age reduction, heavy makeup, or glamour styling. Replace the rumpled technical fleece with a precisely tailored deep navy wool blazer over a matte slate-blue fine-gauge crewneck, understated and practical, with realistic seams, folds, and fabric texture. Use soft directional studio light from camera left with delicate fill, natural facial modeling, controlled highlights, and a subtle clean rim along the hair and shoulders that integrates seamlessly with the existing background. Neutral-cool institutional editorial color grade with navy, slate, silver, and pale ice-blue tones. Crisp focus on the eyes, realistic skin and hair, polished medium-format photographic quality. Keep the result as one standalone vertical headshot with no props, logos, badges, text, borders, or added background elements." \
inputs.seedImage=https://assets.runware.ai/assets/inputs/7e532244-391d-42cb-8147-6521a8659db4.jpg \
inputs.maskImage=https://assets.runware.ai/assets/inputs/7fe9ba3b-8868-43bb-850f-b1c925a9aea9.png{
"taskType": "imageInference",
"taskUUID": "37c1bc34-11b9-4b84-9030-54dc7d9ec363",
"model": "bfl:1@2",
"positivePrompt": "Replace only the masked person with a meticulously retouched, publication-ready version of the same woman while preserving the surrounding pale blue-gray studio background exactly. Maintain her unmistakable facial identity, Greenlandic ancestry, age, face shape, brown eyes, nose, mouth, natural asymmetry, short salt-and-pepper hair, direct gaze, calm expression, body proportions, pose, framing, and head position. Create an authoritative but approachable leadership headshot for a polar research institute director, not a fashion portrait. Refine stray hairs while retaining believable individual strands and a natural silver-and-charcoal texture. Apply restrained professional retouching: balanced complexion, softened temporary redness and under-eye darkness, subtle catchlights, clean color, and gently improved contrast while preserving pores, fine lines, sun exposure, and the authentic character of a veteran Arctic field leader. No plastic skin, face reshaping, age reduction, heavy makeup, or glamour styling. Replace the rumpled technical fleece with a precisely tailored deep navy wool blazer over a matte slate-blue fine-gauge crewneck, understated and practical, with realistic seams, folds, and fabric texture. Use soft directional studio light from camera left with delicate fill, natural facial modeling, controlled highlights, and a subtle clean rim along the hair and shoulders that integrates seamlessly with the existing background. Neutral-cool institutional editorial color grade with navy, slate, silver, and pale ice-blue tones. Crisp focus on the eyes, realistic skin and hair, polished medium-format photographic quality. Keep the result as one standalone vertical headshot with no props, logos, badges, text, borders, or added background elements.",
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/7e532244-391d-42cb-8147-6521a8659db4.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/7fe9ba3b-8868-43bb-850f-b1c925a9aea9.png"
}
}Response
{
"taskType": "imageInference",
"taskUUID": "37c1bc34-11b9-4b84-9030-54dc7d9ec363",
"imageUUID": "6e273541-d308-43c3-9a26-1ceeafff9773",
"imageURL": "https://im.runware.ai/image/os/a09dlim3/ws/3/ii/6e273541-d308-43c3-9a26-1ceeafff9773.jpg",
"seed": 1719447897,
"cost": 0.05
}inpaint
Hydroelectric Intake Tower Night Relight$0.05~16s
Transform only the masked hydroelectric intake tower into a finished nighttime architectural lighting visualization while preserving the surrounding reservoir, horizon, and blue-hour sky exactly as photographed. Retain the tower's precise silhouette, cylindrical geometry, concrete panel seams, narrow windows, parapet, and weathered mineral texture. Relight the entire structure with concealed 2700K amber fixtures producing elegant upward grazing illumination from the base, soft vertical bands that reveal the concrete relief, and a restrained warm glow inside the existing narrow windows. Add subtle cool blue ambient light along the shadowed edges so the tower remains naturally integrated into the blue-hour scene. Use physically plausible falloff, controlled highlights, realistic deep shadows, and museum-grade heritage lighting with no theatrical colors or overexposure. Photorealistic professional architectural photography, refined civic-infrastructure mood, no signage, lettering, people, added structures, or changes outside the masked subject.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'bfl:1@2',
positivePrompt: 'Transform only the masked hydroelectric intake tower into a finished nighttime architectural lighting visualization while preserving the surrounding reservoir, horizon, and blue-hour sky exactly as photographed. Retain the tower\'s precise silhouette, cylindrical geometry, concrete panel seams, narrow windows, parapet, and weathered mineral texture. Relight the entire structure with concealed 2700K amber fixtures producing elegant upward grazing illumination from the base, soft vertical bands that reveal the concrete relief, and a restrained warm glow inside the existing narrow windows. Add subtle cool blue ambient light along the shadowed edges so the tower remains naturally integrated into the blue-hour scene. Use physically plausible falloff, controlled highlights, realistic deep shadows, and museum-grade heritage lighting with no theatrical colors or overexposure. Photorealistic professional architectural photography, refined civic-infrastructure mood, no signage, lettering, people, added structures, or changes outside the masked subject.',
inputs: {
seedImage: 'https://assets.runware.ai/assets/inputs/719e0949-fbc5-4652-8395-fd016408a4ed.jpg',
maskImage: 'https://assets.runware.ai/assets/inputs/f1fa0b78-beb7-4e8c-927f-475c71eed6b0.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:1@2",
"positivePrompt": "Transform only the masked hydroelectric intake tower into a finished nighttime architectural lighting visualization while preserving the surrounding reservoir, horizon, and blue-hour sky exactly as photographed. Retain the tower's precise silhouette, cylindrical geometry, concrete panel seams, narrow windows, parapet, and weathered mineral texture. Relight the entire structure with concealed 2700K amber fixtures producing elegant upward grazing illumination from the base, soft vertical bands that reveal the concrete relief, and a restrained warm glow inside the existing narrow windows. Add subtle cool blue ambient light along the shadowed edges so the tower remains naturally integrated into the blue-hour scene. Use physically plausible falloff, controlled highlights, realistic deep shadows, and museum-grade heritage lighting with no theatrical colors or overexposure. Photorealistic professional architectural photography, refined civic-infrastructure mood, no signage, lettering, people, added structures, or changes outside the masked subject.",
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/719e0949-fbc5-4652-8395-fd016408a4ed.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/f1fa0b78-beb7-4e8c-927f-475c71eed6b0.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": "bdefec21-1539-4ccf-b3bb-feacc6de768b",
"model": "bfl:1@2",
"positivePrompt": "Transform only the masked hydroelectric intake tower into a finished nighttime architectural lighting visualization while preserving the surrounding reservoir, horizon, and blue-hour sky exactly as photographed. Retain the tower's precise silhouette, cylindrical geometry, concrete panel seams, narrow windows, parapet, and weathered mineral texture. Relight the entire structure with concealed 2700K amber fixtures producing elegant upward grazing illumination from the base, soft vertical bands that reveal the concrete relief, and a restrained warm glow inside the existing narrow windows. Add subtle cool blue ambient light along the shadowed edges so the tower remains naturally integrated into the blue-hour scene. Use physically plausible falloff, controlled highlights, realistic deep shadows, and museum-grade heritage lighting with no theatrical colors or overexposure. Photorealistic professional architectural photography, refined civic-infrastructure mood, no signage, lettering, people, added structures, or changes outside the masked subject.",
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/719e0949-fbc5-4652-8395-fd016408a4ed.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/f1fa0b78-beb7-4e8c-927f-475c71eed6b0.png"
}
}
]'runware run bfl:1@2 \
positivePrompt="Transform only the masked hydroelectric intake tower into a finished nighttime architectural lighting visualization while preserving the surrounding reservoir, horizon, and blue-hour sky exactly as photographed. Retain the tower's precise silhouette, cylindrical geometry, concrete panel seams, narrow windows, parapet, and weathered mineral texture. Relight the entire structure with concealed 2700K amber fixtures producing elegant upward grazing illumination from the base, soft vertical bands that reveal the concrete relief, and a restrained warm glow inside the existing narrow windows. Add subtle cool blue ambient light along the shadowed edges so the tower remains naturally integrated into the blue-hour scene. Use physically plausible falloff, controlled highlights, realistic deep shadows, and museum-grade heritage lighting with no theatrical colors or overexposure. Photorealistic professional architectural photography, refined civic-infrastructure mood, no signage, lettering, people, added structures, or changes outside the masked subject." \
inputs.seedImage=https://assets.runware.ai/assets/inputs/719e0949-fbc5-4652-8395-fd016408a4ed.jpg \
inputs.maskImage=https://assets.runware.ai/assets/inputs/f1fa0b78-beb7-4e8c-927f-475c71eed6b0.png{
"taskType": "imageInference",
"taskUUID": "bdefec21-1539-4ccf-b3bb-feacc6de768b",
"model": "bfl:1@2",
"positivePrompt": "Transform only the masked hydroelectric intake tower into a finished nighttime architectural lighting visualization while preserving the surrounding reservoir, horizon, and blue-hour sky exactly as photographed. Retain the tower's precise silhouette, cylindrical geometry, concrete panel seams, narrow windows, parapet, and weathered mineral texture. Relight the entire structure with concealed 2700K amber fixtures producing elegant upward grazing illumination from the base, soft vertical bands that reveal the concrete relief, and a restrained warm glow inside the existing narrow windows. Add subtle cool blue ambient light along the shadowed edges so the tower remains naturally integrated into the blue-hour scene. Use physically plausible falloff, controlled highlights, realistic deep shadows, and museum-grade heritage lighting with no theatrical colors or overexposure. Photorealistic professional architectural photography, refined civic-infrastructure mood, no signage, lettering, people, added structures, or changes outside the masked subject.",
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/719e0949-fbc5-4652-8395-fd016408a4ed.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/f1fa0b78-beb7-4e8c-927f-475c71eed6b0.png"
}
}Response
{
"taskType": "imageInference",
"taskUUID": "bdefec21-1539-4ccf-b3bb-feacc6de768b",
"imageUUID": "8b11911b-503a-49b0-8271-d7e3e83300c4",
"imageURL": "https://im.runware.ai/image/os/a07dlim3/ws/3/ii/8b11911b-503a-49b0-8271-d7e3e83300c4.jpg",
"seed": 1233676478,
"cost": 0.05
}inpaint
Taiko Ensemble Press Photo Update$0.05~16s
Remove the masked performer at the far right completely and reconstruct the studio set behind them. Replace the entire figure with an uninterrupted continuation of the matte saffron seamless-paper backdrop and floor, matching the existing color, fine paper texture, gentle tonal falloff, lighting, perspective, and natural floor shading. The finished publicity photograph should show only the four-person taiko ensemble grouped on the left, with intentional clean negative space on the right. Preserve every unmasked performer, face, garment, drum, cord, pose, edge, and shadow exactly as photographed. Create a seamless, photorealistic removal with no human fragments, ghosting, duplicated limbs, new props, text, or visible retouching.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'bfl:1@2',
positivePrompt: 'Remove the masked performer at the far right completely and reconstruct the studio set behind them. Replace the entire figure with an uninterrupted continuation of the matte saffron seamless-paper backdrop and floor, matching the existing color, fine paper texture, gentle tonal falloff, lighting, perspective, and natural floor shading. The finished publicity photograph should show only the four-person taiko ensemble grouped on the left, with intentional clean negative space on the right. Preserve every unmasked performer, face, garment, drum, cord, pose, edge, and shadow exactly as photographed. Create a seamless, photorealistic removal with no human fragments, ghosting, duplicated limbs, new props, text, or visible retouching.',
steps: 30,
CFGScale: 60,
providerSettings: {
bfl: {
promptUpsampling: false,
safetyTolerance: 6
}
},
inputs: {
seedImage: 'https://assets.runware.ai/assets/inputs/8b1c25c7-e31c-47ab-8451-3d3fb26d250d.jpg',
maskImage: 'https://assets.runware.ai/assets/inputs/dc2710e8-d512-4da9-b336-9dd773da9dba.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:1@2",
"positivePrompt": "Remove the masked performer at the far right completely and reconstruct the studio set behind them. Replace the entire figure with an uninterrupted continuation of the matte saffron seamless-paper backdrop and floor, matching the existing color, fine paper texture, gentle tonal falloff, lighting, perspective, and natural floor shading. The finished publicity photograph should show only the four-person taiko ensemble grouped on the left, with intentional clean negative space on the right. Preserve every unmasked performer, face, garment, drum, cord, pose, edge, and shadow exactly as photographed. Create a seamless, photorealistic removal with no human fragments, ghosting, duplicated limbs, new props, text, or visible retouching.",
"steps": 30,
"CFGScale": 60,
"providerSettings": {
"bfl": {
"promptUpsampling": False,
"safetyTolerance": 6
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/8b1c25c7-e31c-47ab-8451-3d3fb26d250d.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/dc2710e8-d512-4da9-b336-9dd773da9dba.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": "22c20fcb-1484-4e13-a1fa-f387e534937e",
"model": "bfl:1@2",
"positivePrompt": "Remove the masked performer at the far right completely and reconstruct the studio set behind them. Replace the entire figure with an uninterrupted continuation of the matte saffron seamless-paper backdrop and floor, matching the existing color, fine paper texture, gentle tonal falloff, lighting, perspective, and natural floor shading. The finished publicity photograph should show only the four-person taiko ensemble grouped on the left, with intentional clean negative space on the right. Preserve every unmasked performer, face, garment, drum, cord, pose, edge, and shadow exactly as photographed. Create a seamless, photorealistic removal with no human fragments, ghosting, duplicated limbs, new props, text, or visible retouching.",
"steps": 30,
"CFGScale": 60,
"providerSettings": {
"bfl": {
"promptUpsampling": false,
"safetyTolerance": 6
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/8b1c25c7-e31c-47ab-8451-3d3fb26d250d.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/dc2710e8-d512-4da9-b336-9dd773da9dba.png"
}
}
]'runware run bfl:1@2 \
positivePrompt="Remove the masked performer at the far right completely and reconstruct the studio set behind them. Replace the entire figure with an uninterrupted continuation of the matte saffron seamless-paper backdrop and floor, matching the existing color, fine paper texture, gentle tonal falloff, lighting, perspective, and natural floor shading. The finished publicity photograph should show only the four-person taiko ensemble grouped on the left, with intentional clean negative space on the right. Preserve every unmasked performer, face, garment, drum, cord, pose, edge, and shadow exactly as photographed. Create a seamless, photorealistic removal with no human fragments, ghosting, duplicated limbs, new props, text, or visible retouching." \
steps=30 \
CFGScale=60 \
providerSettings.bfl.promptUpsampling=false \
providerSettings.bfl.safetyTolerance=6 \
inputs.seedImage=https://assets.runware.ai/assets/inputs/8b1c25c7-e31c-47ab-8451-3d3fb26d250d.jpg \
inputs.maskImage=https://assets.runware.ai/assets/inputs/dc2710e8-d512-4da9-b336-9dd773da9dba.png{
"taskType": "imageInference",
"taskUUID": "22c20fcb-1484-4e13-a1fa-f387e534937e",
"model": "bfl:1@2",
"positivePrompt": "Remove the masked performer at the far right completely and reconstruct the studio set behind them. Replace the entire figure with an uninterrupted continuation of the matte saffron seamless-paper backdrop and floor, matching the existing color, fine paper texture, gentle tonal falloff, lighting, perspective, and natural floor shading. The finished publicity photograph should show only the four-person taiko ensemble grouped on the left, with intentional clean negative space on the right. Preserve every unmasked performer, face, garment, drum, cord, pose, edge, and shadow exactly as photographed. Create a seamless, photorealistic removal with no human fragments, ghosting, duplicated limbs, new props, text, or visible retouching.",
"steps": 30,
"CFGScale": 60,
"providerSettings": {
"bfl": {
"promptUpsampling": false,
"safetyTolerance": 6
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/8b1c25c7-e31c-47ab-8451-3d3fb26d250d.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/dc2710e8-d512-4da9-b336-9dd773da9dba.png"
}
}Response
{
"taskType": "imageInference",
"taskUUID": "22c20fcb-1484-4e13-a1fa-f387e534937e",
"imageUUID": "54eb4a59-11f4-4744-9faa-f63a30bc3199",
"imageURL": "https://im.runware.ai/image/os/a02d21/ws/3/ii/54eb4a59-11f4-4744-9faa-f63a30bc3199.jpg",
"seed": 1408912869,
"cost": 0.05
}inpaint
Boro Textile Collection Panorama$0.05~17s
Replace the entire neutral-gray matte with a seamless, photorealistic continuation of the antique boro textile visible in the preserved central photograph, converting the narrow source crop into a wide 16:9 museum editorial panorama. Extend the existing patchwork naturally toward every edge: irregular overlapping indigo cotton panels, faded cobalt and deep navy dye, restrained ecru areas, hand-sewn sashiko running stitches, subtle puckering, frayed fibers, repaired seams, and authentic age variation. Match the exact weave scale, camera angle, focus, soft raking light, shadows, color response, and tactile archival-photography character of the preserved center. Continue partial seams and stitch lines across the former matte boundary without visible joins, repetition, borders, frames, or abrupt pattern changes. Keep the composition quiet, scholarly, tactile, and suitable as a premium museum collection hero image. Edge-to-edge textile only, no text, labels, people, tools, display case, wall, or remaining gray matte.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'bfl:1@2',
positivePrompt: 'Replace the entire neutral-gray matte with a seamless, photorealistic continuation of the antique boro textile visible in the preserved central photograph, converting the narrow source crop into a wide 16:9 museum editorial panorama. Extend the existing patchwork naturally toward every edge: irregular overlapping indigo cotton panels, faded cobalt and deep navy dye, restrained ecru areas, hand-sewn sashiko running stitches, subtle puckering, frayed fibers, repaired seams, and authentic age variation. Match the exact weave scale, camera angle, focus, soft raking light, shadows, color response, and tactile archival-photography character of the preserved center. Continue partial seams and stitch lines across the former matte boundary without visible joins, repetition, borders, frames, or abrupt pattern changes. Keep the composition quiet, scholarly, tactile, and suitable as a premium museum collection hero image. Edge-to-edge textile only, no text, labels, people, tools, display case, wall, or remaining gray matte.',
steps: 32,
CFGScale: 55,
providerSettings: {
bfl: {
promptUpsampling: true,
safetyTolerance: 6
}
},
inputs: {
seedImage: 'https://assets.runware.ai/assets/inputs/104b953d-351a-4f50-aa05-e31fa734931a.jpg',
maskImage: 'https://assets.runware.ai/assets/inputs/15c4d516-bb0c-41c9-849d-fe82ba1d4e33.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:1@2",
"positivePrompt": "Replace the entire neutral-gray matte with a seamless, photorealistic continuation of the antique boro textile visible in the preserved central photograph, converting the narrow source crop into a wide 16:9 museum editorial panorama. Extend the existing patchwork naturally toward every edge: irregular overlapping indigo cotton panels, faded cobalt and deep navy dye, restrained ecru areas, hand-sewn sashiko running stitches, subtle puckering, frayed fibers, repaired seams, and authentic age variation. Match the exact weave scale, camera angle, focus, soft raking light, shadows, color response, and tactile archival-photography character of the preserved center. Continue partial seams and stitch lines across the former matte boundary without visible joins, repetition, borders, frames, or abrupt pattern changes. Keep the composition quiet, scholarly, tactile, and suitable as a premium museum collection hero image. Edge-to-edge textile only, no text, labels, people, tools, display case, wall, or remaining gray matte.",
"steps": 32,
"CFGScale": 55,
"providerSettings": {
"bfl": {
"promptUpsampling": True,
"safetyTolerance": 6
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/104b953d-351a-4f50-aa05-e31fa734931a.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/15c4d516-bb0c-41c9-849d-fe82ba1d4e33.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": "bee376ea-9b69-4fb5-a46c-66cfa6982617",
"model": "bfl:1@2",
"positivePrompt": "Replace the entire neutral-gray matte with a seamless, photorealistic continuation of the antique boro textile visible in the preserved central photograph, converting the narrow source crop into a wide 16:9 museum editorial panorama. Extend the existing patchwork naturally toward every edge: irregular overlapping indigo cotton panels, faded cobalt and deep navy dye, restrained ecru areas, hand-sewn sashiko running stitches, subtle puckering, frayed fibers, repaired seams, and authentic age variation. Match the exact weave scale, camera angle, focus, soft raking light, shadows, color response, and tactile archival-photography character of the preserved center. Continue partial seams and stitch lines across the former matte boundary without visible joins, repetition, borders, frames, or abrupt pattern changes. Keep the composition quiet, scholarly, tactile, and suitable as a premium museum collection hero image. Edge-to-edge textile only, no text, labels, people, tools, display case, wall, or remaining gray matte.",
"steps": 32,
"CFGScale": 55,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 6
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/104b953d-351a-4f50-aa05-e31fa734931a.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/15c4d516-bb0c-41c9-849d-fe82ba1d4e33.png"
}
}
]'runware run bfl:1@2 \
positivePrompt="Replace the entire neutral-gray matte with a seamless, photorealistic continuation of the antique boro textile visible in the preserved central photograph, converting the narrow source crop into a wide 16:9 museum editorial panorama. Extend the existing patchwork naturally toward every edge: irregular overlapping indigo cotton panels, faded cobalt and deep navy dye, restrained ecru areas, hand-sewn sashiko running stitches, subtle puckering, frayed fibers, repaired seams, and authentic age variation. Match the exact weave scale, camera angle, focus, soft raking light, shadows, color response, and tactile archival-photography character of the preserved center. Continue partial seams and stitch lines across the former matte boundary without visible joins, repetition, borders, frames, or abrupt pattern changes. Keep the composition quiet, scholarly, tactile, and suitable as a premium museum collection hero image. Edge-to-edge textile only, no text, labels, people, tools, display case, wall, or remaining gray matte." \
steps=32 \
CFGScale=55 \
providerSettings.bfl.promptUpsampling=true \
providerSettings.bfl.safetyTolerance=6 \
inputs.seedImage=https://assets.runware.ai/assets/inputs/104b953d-351a-4f50-aa05-e31fa734931a.jpg \
inputs.maskImage=https://assets.runware.ai/assets/inputs/15c4d516-bb0c-41c9-849d-fe82ba1d4e33.png{
"taskType": "imageInference",
"taskUUID": "bee376ea-9b69-4fb5-a46c-66cfa6982617",
"model": "bfl:1@2",
"positivePrompt": "Replace the entire neutral-gray matte with a seamless, photorealistic continuation of the antique boro textile visible in the preserved central photograph, converting the narrow source crop into a wide 16:9 museum editorial panorama. Extend the existing patchwork naturally toward every edge: irregular overlapping indigo cotton panels, faded cobalt and deep navy dye, restrained ecru areas, hand-sewn sashiko running stitches, subtle puckering, frayed fibers, repaired seams, and authentic age variation. Match the exact weave scale, camera angle, focus, soft raking light, shadows, color response, and tactile archival-photography character of the preserved center. Continue partial seams and stitch lines across the former matte boundary without visible joins, repetition, borders, frames, or abrupt pattern changes. Keep the composition quiet, scholarly, tactile, and suitable as a premium museum collection hero image. Edge-to-edge textile only, no text, labels, people, tools, display case, wall, or remaining gray matte.",
"steps": 32,
"CFGScale": 55,
"providerSettings": {
"bfl": {
"promptUpsampling": true,
"safetyTolerance": 6
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/104b953d-351a-4f50-aa05-e31fa734931a.jpg",
"maskImage": "https://assets.runware.ai/assets/inputs/15c4d516-bb0c-41c9-849d-fe82ba1d4e33.png"
}
}Response
{
"taskType": "imageInference",
"taskUUID": "bee376ea-9b69-4fb5-a46c-66cfa6982617",
"imageUUID": "b4d2ae3f-8974-4674-aedf-7e68fdde0914",
"imageURL": "https://im.runware.ai/image/os/a08dlim3/ws/3/ii/b4d2ae3f-8974-4674-aedf-7e68fdde0914.jpg",
"seed": 1911339863,
"cost": 0.05
}