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

BFL modelsimage generation api

bfl/flux-2/dev

Flux 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.

Input
The prompt to generate an image from.
020
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.
450
The number of inference steps to perform. Range: 4 to 50.
The format of the generated image. Allowed values: jpeg, png.
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 seed to use for the generation. If not provided, a random seed will be used.
Idle

Example output — click Run to generate your own

API README

FLUX.2 [dev]

FLUX.2 [dev] is a 32-billion-parameter rectified-flow transformer for image generation from text instructions. The model is positioned for maximum-quality FLUX.2 work when latency is not the primary constraint, making this endpoint a strong choice for deliberate concept development and detailed final-image exploration.

Its official model card describes leading open text-to-image performance and an ability to follow instructions that can also drive image generation, editing, and combination across the underlying model. This route focuses that visual intelligence on text-to-image output and returns one generated image asynchronously.

Highlights

  • High-end text-to-image generation. FLUX.2 [dev] is identified as the maximum-quality option in the FLUX.2 family when generation quality matters more than latency.
  • Detailed instruction interpretation. Translate a layered written brief into an image while retaining subject, environment, composition, lighting, material, and stylistic direction.
  • Character, object, and style understanding. The underlying model is trained to represent these visual identities without task-specific fine-tuning, strengthening descriptive prompts that depend on a coherent design language.
  • Prompt-upsampling gains. FLUX.2 [dev] benefits significantly from expanded prompts, so a concise idea can be developed into a richer production brief before generation.

Pricing

UnitBase price
Per request$0.0012

When to Use

Use caseWhy this model fits
High-detail concept artPrioritize the development model's maximum-quality positioning over low-latency output.
Layered cinematic scenesExpress subject, action, setting, camera, lighting, and texture in one descriptive brief.
Character and object designBuild a coherent visual identity from detailed appearance, material, and style language.
Prompt-expansion workflowsTurn a short concept into richer production prose before sending the final request.
Controlled visual comparisonsHold the seed stable while comparing meaningful prompt revisions.

Prompt Guide

Use descriptive prose rather than a keyword pile. Establish the main subject and framing first, then add action, environment, lighting, lens or perspective, palette, materials, and fine surface detail. If expanding a short idea, remove contradictions and repeated adjectives before generation.

{
  "prompt": "Dutch-angle close-up of a cheerful survivor in a post-apocalyptic market, dust on the face, layered weathered fabrics, harsh late-afternoon sunlight and deep shadows, desaturated earth palette, tactile material detail, cinematic gritty realism",
  "guidance_scale": 2.5,
  "num_inference_steps": 28,
  "aspect_ratio": "16:9",
  "output_format": "png",
  "seed": 41827
}

Technical Specs

PropertyDetails
Model IDbfl/flux-2/dev
Required inputprompt
Optional inputsguidance_scale, num_inference_steps, aspect_ratio, output_format, seed
Guidance scale020; default 2.5
Inference steps450; default 28
Aspect ratios21:9, 16:9 (default), 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16
Output formatspng (default) or jpeg
OutputDownloadable image URL with optional content type
ExecutionAsynchronous
LicenseFLUX.2-dev Non-Commercial License

Related Models

Related Models

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.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.