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

BFL modelsimage generation api

bfl/flux-2/lora-gallery/add-background

Flux 2 Lora Gallery Add Background 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 describing the background to add. Must start with 'Add Background' followed by your description.

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

The URLs of the images. Provide an image with a white or clean background.
The format of the output image Allowed values: png, jpeg.
02
The strength of the add background effect. Range: 0 to 2.
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.
Random seed for reproducibility. Same seed with same prompt will produce same result.
020
Range: 0 to 20.
450
Range: 4 to 50.
Idle

Example output — click Run to generate your own

API README

Flux 2 LoRA Gallery Add Background

Flux 2 LoRA Gallery Add Background places a described background behind an existing image. The input guidance calls for an image with a white or clean background, while the prompt must begin with Add Background and continue with the setting to create.

The effect strength is adjustable through LoRA scale from 0 to 2. Guidance ranges from 0 to 20 and inference steps from 4 to 50, with ten aspect ratios, PNG or JPEG output, and seed control for repeatable results.

Highlights

Clean-background starting point. Supply an image with a white or clean background so the requested environment can be added around its existing content.

Structured background prompt. Begin the prompt with Add Background, then name the setting; supported examples include a forest, modern office, beach sunset, or city skyline at night.

Adjustable effect strength. Use LoRA scale from 0–2 to control the strength of the added-background effect.

Tunable delivery. Set guidance from 0–20 and inference steps from 4–50, then choose among ten aspect ratios, PNG or JPEG, and a seed.

Pricing

Billing unitPrice
Per request$0.021

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "aspect_ratio": "21:9",
  "images": [
    "https://example.com/reference-1.png",
    "https://example.com/reference-2.png"
  ],
  "output_format": "png",
  "prompt": "Add Background forest"
}

Technical Specs

SpecValue
Model IDbfl/flux-2/lora-gallery/add-background
Inputsaspect_ratio, guidance_scale, images, lora_scale, num_inference_steps, output_format, prompt, seed
Required inputsprompt
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)
Aspect Ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16
Output Formatpng / jpeg

Related Models

Related Models

bfl/flux-2/lora-gallery/hdr-styleFlux 2 Lora Gallery Hdr Style is BFL's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.bfl/flux-2/lora-gallery/satellite-view-styleFlux 2 Lora Gallery Satellite View Style 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-2/lora-gallery/sepia-vintageFlux 2 Lora Gallery Sepia Vintage is BFL's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.bfl/flux-2/flash/editFlux 2 Flash 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-2/flexFlux 2 Flex is BFL's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.bfl/flux-2/flex/editFlux 2 Flex Edit 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-2/klein/4bFlux 2 Klein 4b is BFL's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.bfl/flux-2/klein/4b/baseFlux 2 Klein 4b 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.