FLUX.1 Fill

Replicate
Image Generation

Black Forest Labs' inpainting/outpainting model for FLUX. Fill masked regions with prompt-guided content.

Generate with FLUX.1 Fill
Describe what you want and pick a size — the image renders inline.
Sign in to try this model with €5 free credits.
Sign in
Result appears here
TL;DR·Last updated May 16, 2026

FLUX.1 Fill is image generation AI model from Replicate, priced at €0.000 per 1M input tokens with a unknown context window.

Try FLUX.1 Fill
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€0.05

API Integration

Use our OpenAI-compatible API to integrate FLUX.1 Fill into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

const images = await rw.run("flux-1-fill", "A beautiful sunset over Tokyo");
console.log(images[0].url);

// Or use the image() method for full control
const res = await rw.image("flux-1-fill", "A cat in space", {
  size: "1024x1024",
  n: 1,
});
console.log(res.data[0].url);
Specifications
Price
€0.05
Developer
Replicate
Category
Image Generation
Supported Formats
image
text
Tags
flux
black-forest-labs
image-edit
inpainting
outpainting
edit

Deep dive — Black Forest Labs's FLUX.1 Fill

About Black Forest Labs
Founded 2024 · Freiburg, Germany

Black Forest Labs was founded in August 2024 in Freiburg, Germany by Robin Rombach, Patrick Esser, Andreas Blattmann and Dominik Lorenz, the team behind Latent Diffusion at LMU Munich and Stable Diffusion at Stability AI. A $31M seed round led by Andreessen Horowitz funded the launch of the FLUX.1 family (pro, dev, schnell) and the FLUX.1 Tools (Fill, Canny, Depth, Redux). The lab positions itself as the leading European open foundation-model lab for generative media.

Visit Black Forest Labs →
Architecture
Rectified-flow Diffusion Transformer (DiT) with inpainting/outpainting mask conditioning

FLUX.1 Fill is the inpainting and outpainting model in the FLUX.1 Tools suite released in November 2024. It is a fine-tune of the FLUX.1 base rectified-flow DiT that takes three inputs at training and inference: the source image, a binary mask indicating which pixels should be regenerated, and a text prompt describing the desired content. The architecture concatenates the masked image latent and the binary mask as extra channels into the DiT input, similar to the design of Stable Diffusion XL Inpainting and FLUX's predecessor models, allowing the same backbone to act as a powerful editor. Outpainting is achieved by zero-padding the latent and setting the mask to 1 outside the original bounds. The model uses T5-XXL plus CLIP-L text encoders and the standard 16x VAE, sampled with 28-50 flow-matching steps. Black Forest Labs reports state-of-the-art results on prompted inpainting benchmarks at launch, outperforming Adobe Firefly and Ideogram inpainting models.

Parameters
~12B (FLUX.1 dev backbone) plus mask-conditioning branch
Context
512 tokens
What it can do
  • Prompted inpainting: edit a masked region with natural-language instruction
  • Outpainting up to 2 MP for canvas extension
  • Photorealistic blending with the surrounding context
  • Strong prompt adherence via T5-XXL text encoder
  • Object removal, replacement and addition workflows
  • Compatible with depth/canny conditioning for hybrid pipelines
  • Best for: photo editing, e-commerce retouching, advertising mockups, comic panel completion.
Training & License

Fine-tuned from FLUX.1 base weights on synthetic masked image pairs with paired captions, sampled from a large licensed image corpus.

License: FLUX.1 Fill [dev] is released under the FLUX.1 [dev] non-commercial license; FLUX.1 Fill [pro] is available via API for commercial use.

Known limitations
  • Quality drops on very large mask regions (>50% of image)
  • Faces and hands inside masks can still degrade at small sizes
  • Dev weights are non-commercial only
  • Outpainting works best within ~1.5x of original canvas

Frequently asked questions

Start using FLUX.1 Fill today

Get started with free credits. No credit card required. Access FLUX.1 Fill and 100+ other models through a single API.