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

BFL modelsimage generation api

bfl/flux-2/klein/realtime

Flux 2 Klein Realtime 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 guide image editing.

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

Base64-encoded image data URI for editing. CDN URLs are not supported for realtime. For optimal performance, use 704x704 JPEG images with 50% quality. Other sizes will be resized automatically.
18
Range: 1 to 8.
0.32.5
Schedule mu for time shift. 2.3=default, lower=more even denoising, 0.3=nearly linear. Range: 0.3 to 2.5.
01
Output feedback loop. 1.0 = pure noise (no feedback), 0.9 = 90% noise + 10% previous output latent. Range: 0 to 1.
Enable RIFE frame interpolation between consecutive frames (doubles output frames).
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.
Idle

Example output — click Run to generate your own

API README

Flux 2 [klein] Realtime

Flux 2 Klein Realtime edits an existing image from a required text prompt. The required image anchors the visual material, while the prompt states the change, making the input relationship explicit from the start.

The request supports 1–8 inference steps, ten aspect ratios, seed control, interpolation, output-feedback strength from 0 to 1, and schedule-mu values from 0.3 to 2.5. These controls provide several ways to shape and repeat an edit while keeping image and prompt inputs required.

Highlights

Required image foundation. Every request begins with an image that supplies the visual material to revise.

Required written direction. A prompt accompanies the image and defines the requested edit.

Short inference range. Select 1–8 inference steps for the generation pass.

Realtime control set. Configure interpolation, output-feedback strength, schedule mu, aspect ratio, and seed for the intended run.

Pricing

Billing unitPrice
Per request$0.00194

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 image-conditioned 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",
  "image": "https://example.com/start-frame.png",
  "prompt": "Turn this into a watercolor painting"
}

Technical Specs

SpecValue
Model IDbfl/flux-2/klein/realtime
Inputsaspect_ratio, enable_interpolation, image, num_inference_steps, output_feedback_strength, prompt, schedule_mu, seed
Required inputsprompt, image
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

Related Models

Related Models

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.bfl/flux-2/klein/4b/base/editFlux 2 Klein 4b 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/klein/4b/base/edit/loraFlux 2 Klein 4b 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/4b/base/loraFlux 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/editFlux 2 Klein 4b 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/4b/edit/loraFlux 2 Klein 4b 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/klein/4b/loraFlux 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.