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

BFL modelsimage generation api

bfl/flux-2/virtual-tryon

Flux 2 Virtual Tryon 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 a virtual try-on image.

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

The URLs of the images for virtual try-on. Provide person image and clothing image.
020
The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt. Range: 0 to 20.
450
The number of inference steps to perform. Range: 4 to 50.
The format of the output image Allowed values: png, jpeg.
02
The strength of the virtual try-on 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.
Idle

Example output — click Run to generate your own

API README

FLUX.2 Virtual Try-On

FLUX.2 Virtual Try-On transfers a garment from one image onto a person in another image. It is a specialized clothing-editing workflow built around the person and garment assets rather than a general text-to-image request. A written instruction defines the intended wardrobe change while the paired images establish the visual material.

The route is useful for producing a dressed-person visualization without preparing a mask or removing the background first. It keeps the try-on operation within one image-editing request and returns a finished raster image. Additional controls let teams tune edit strength, composition shape, and inference settings when the default balance is not enough.

Highlights

  • Two-image virtual try-on workflow. The exact workflow is defined around a person image and a garment image. This gives the model both the wearer context and the clothing reference in the same request.
  • Specialized garment transfer. The route uses a clothing-focused FLUX.2 LoRA rather than treating the task as unrestricted image manipulation. Its purpose is transferring the referenced garment onto the depicted person.
  • No manual masking or background removal. The documented dual-input workflow eliminates those preparation steps. Teams can start from the two visual assets instead of producing a separate cutout or mask.
  • Broader clothing-editing foundation. FLUX.2 documentation covers outfit changes, accessories, garment recoloring, and clothing-style adaptation. The virtual try-on specialization places garment transfer within that established editing family.

Pricing

Billing unitPrice
Base price per request$0.021

When to Use

✅ Good fit❌ Consider alternatives
Previewing a referenced garment on a photographed personGenerating a person and outfit with no input images
Creating outfit variations from an existing wearer imageRequiring a production sewing pattern or garment CAD file
Testing a clothing concept without preparing a manual maskEditing an unrelated object or scene element
Producing raster try-on imagery for reviewNeeding a layered design document with independently editable pieces
Comparing garment references on the same person assetRequiring measured physical fit or size prediction

Prompt Guide

Provide the person image first and the garment image second. Write a concise instruction that names the clothing transfer and any visible treatment you need; the images carry the primary identity and garment information.

Images:
1. <person image URL>
2. <garment image URL>
Prompt: Put the garment from image 2 on the person in image 1. <optional visible styling direction>

Example request:

{
  "images": [
    "https://example.com/person.jpg",
    "https://example.com/garment.jpg"
  ],
  "prompt": "Put the garment from image 2 on the person in image 1.",
  "lora_scale": 1,
  "aspect_ratio": "4:5",
  "output_format": "png"
}

Technical Specs

SpecValue
Model IDbfl/flux-2/virtual-tryon
Required fieldprompt
Image inputsimages array for person and garment references
LoRA scale0 to 2; default 1
Guidance scale0 to 20; default 2.5
Inference steps4 to 50; default 40
Aspect ratio10 supported presets from 21:9 through 9:16
Output formatpng or jpeg; default png
OutputImage URL and content type
ExecutionAsynchronous job

Related

  • FLUX.2 Pro Edit — use the sibling editing route for broader image transformations beyond virtual try-on.

Related Models

bfl/flux-2/devFlux 2 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-2/dev/editFlux 2 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-2/flashFlux 2 Flash 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/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.