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

BFL modelsimage generation api

bfl/flux-kontext-lora

Flux Kontext Lora is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.

Input
The prompt to edit the image.

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

The URL of the image to edit. Max width: 14142px, Max height: 14142px, Timeout: 20s
020
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: 0 to 20.
1050
The number of inference steps to perform. Range: 10 to 50.
The format of the generated image. Allowed values: jpeg, png.
Determines how the output resolution is set for image editing. - `auto`: The model selects an optimal resolution from a predefined set that best matches the input image's aspect ratio. This is the recommended setting for most use cases as it's what the model was trained on. - `match_input`: The model will attempt to use the same resolution as the input image. The resolution will be adjusted to be compatible with the model's requirements (e.g. dimensions must be multiples of 16 and within supported limits). Apart from these, a few aspect ratios are also supported. Allowed values: auto, match_input, 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21.
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 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 Kontext Lora

Flux Kontext Lora belongs at the context-aware creation shaped by a learned visual identity 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 project combines iterative visual understanding with a compact customization layer, helping a series remain recognizable across changing briefs. 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 Kontext Lora is branded content systems, recurring characters, specialized editorial styles, and client programs that mix new imagery with later revisions. 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

Semantic instruction following. Understands requested changes at the level of objects, attributes, relationships, and scene intent.

Identity retention. Keeps important people, products, and branded details recognizable through iterative revisions.

Context-aware integration. Matches new content to source lighting, perspective, materials, and composition.

Iterative edit stability. Supports successive creative changes without unnecessarily redesigning unaffected image content. Kontext-LoRA combines semantic image understanding with a learned concept, allowing both source-aware change and specialized identity.

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": [],
  "output_format": "jpeg",
  "prompt": "A cinematic, precisely composed result with a clear subject, controlled camera or viewpoint, realistic lighting, exact materials, and intentional atmosphere",
  "seed": 1
}

Technical Specs

SpecValue
Model IDbfl/flux-kontext-lora
Input fieldsseed (integer)<br>image (string)<br>loras (array)<br>prompt (string)<br>output_format (string; jpeg, png)<br>guidance_scale (number; 0–20)<br>resolution_mode (string; auto, match_input, 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21)<br>num_inference_steps (integer; 10–50)
Required inputprompt, image
Output fieldsurl, content_type
ExecutionAsynchronous job

Related Models

Related Models

bfl/flux-kontext-lora/inpaintFlux Kontext Lora Inpaint 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-kontext-lora/text-to-imageFlux Kontext Lora 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-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.