SandBase is live — $1 in free credits on signupStart free ›
Use in agentBFL models

BFL modelsimage generation api

bfl/flux-lora-fill

Flux Lora Fill by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.

Input
The prompt to generate an image from.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

URL of image to use for fill operation

PNG, JPEG, WebP, or GIF · 20 MiB maximum

The mask to area to Inpaint in.
2835
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Range: 28 to 35.
150
The number of inference steps to perform. Range: 1 to 50.
The format of the generated image. Allowed values: jpeg, png.
Resizes the image back to the original size. Use when you wish to preserve the exact image size as the originally provided image.
Use an image fill input to fill in particular images into the masked area.
Specifies whether to paste-back the original image onto to the non-inpainted areas of the output
The LoRAs to use for the image generation. You can use any number of LoRAs and they will be merged together to generate the final image.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
The same seed and the same prompt given to the same version of the model will output the same image every time.
Idle

Example output — click Run to generate your own

API README

Flux Lora Fill

Flux Lora Fill belongs at the customized repair and canvas completion stage of a visual workflow. Rather than treating the model as an isolated demonstration, teams can place it inside briefing, review, selection, and handoff practices where the adapted visual language remains available when selected content is replaced or when an image must grow beyond its original crop. This positioning clarifies why the model earns a place in a real creative pipeline and what kind of decision it helps people make.

A practical use of Flux Lora Fill is brand-consistent cleanup, character corrections, styled background extension, and production fixes that should not introduce a generic-looking patch. Begin by agreeing on the creative objective and review criteria, prepare only the source material needed for that objective, and compare results against audience, brand, editorial, and production needs. Technical request choices remain documented below so the prose can stay focused on planning and creative value.

Highlights

Context-aware reconstruction. Rebuilds masked content with lighting, perspective, texture, and scale matched to its surroundings.

Semantic replacement. Follows written direction for new objects or materials instead of simply cloning nearby pixels.

Natural boundary blending. Integrates regenerated content across the mask edge without a pasted-on appearance.

Unmasked-area preservation. Concentrates generative change on the intended region while retaining the broader composition. FLUX LoRA Fill applies a learned subject or style specifically while reconstructing masked still-image content.

Pricing

ConfigurationBilling unitPrice
Base generationPer request$0.035

When to Use

✅ Good fit❌ Consider alternatives
The project needs this exact FLUX capabilityThe intended task belongs to a different media workflow
Required source and control media are availableNecessary assets or usage rights are unavailable
Creative direction can state change and preservation goalsOutput must be deterministic at pixel or frame level
Supported dimensions and formats match final deliveryPlacement requires unsupported specifications
An asynchronous generated result fits productionA live frame-synchronous response is mandatory

Prompt Guide

Lead with the main subject and action, then specify composition, context, lighting, materials, style, typography, and atmosphere. For editing, identify each source and clearly separate the requested transformation from the subjects, regions, geometry, or identity that must remain unchanged.

{
  "image": "https://example.com/start-frame.png",
  "loras": [],
  "mask": "https://example.com/reference.png",
  "prompt": "",
  "seed": 1
}

Technical Specs

SpecValue
Model IDbfl/flux-lora-fill
Input fieldsmask (string)<br>seed (integer)<br>image (string)<br>loras (array)<br>prompt (string)<br>fill_image (string)<br>paste_back (boolean)<br>aspect_ratio (string; 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16)<br>output_format (string; jpeg, png)<br>guidance_scale (number; 28–35)<br>resize_to_original (boolean)<br>num_inference_steps (integer; 1–50)
Required inputprompt, image
Output fieldsurl, content_type
ExecutionAsynchronous job

Related Models

Related Models

bfl/flux-1.1/proFlux 1.1 Pro by BFL - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.bfl/flux-1.1/pro-ultraFlux 1.1 Pro Ultra by BFL - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.bfl/flux-1.1/ultra/reduxFlux 1.1 Ultra Redux by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bfl/flux-1/devFlux 1 Dev by BFL - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.bfl/flux-1/dev/editFlux 1 Dev Edit is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bfl/flux-1/dev/image-to-imageFlux 1 Dev is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bfl/flux-1/dev/reduxFlux 1 Dev Redux by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bfl/flux-1/fillFlux 1 Fill is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.