Skip to content
Dashboard

FLUX.1 Fill [pro]

FLUX.1 Fill [pro] is Black Forest Labs's dedicated inpainting model. It fills masked regions of images using text instructions while preserving the coherence, lighting, and style of the surrounding content. Your use is subject to Black Forest Labs's Terms & Privacy Policies.

Price
$0.05, Per image
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'bfl/flux-pro-1.0-fill',
prompt: 'A red balloon on a wooden table.'
});
Read docs

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Checking availability for your team
Provider
Input
Output
Cache
Search
Capabilities
ZDR
No Training
Free AI Gateway Credit
Release Date
$0.05/img
—
10/01/2024

Copy link to headingMore models by Black Forest Labs

Model
Context
Latency
Throughput
Input
Output
Cache
Search
Capabilities
Providers
ZDR
No Training
Free AI Gateway Credit
Release Date
—
$0.02/img+9 more
—
bfl logo
10/05/2026
—
$0.06/sec+2 more
—
bfl logo
08/04/2026
—
$0.014/MP
—
bfl logo
01/15/2026
—
$0.06/MP
—
bfl logo
11/25/2025
512
$0.08/img
—
bfl logo
05/29/2025
512
$0.04/img
—
bfl logo
prodia logo
05/29/2025

Copy link to headingAbout FLUX.1 Fill [pro]

FLUX.1 Fill [pro] is a specialized model within Black Forest Labs's FLUX.1 lineup, available through AI Gateway since October 1, 2024 as part of the image-only model expansion. Unlike the Kontext models that focus on instruction-based editing, Fill Pro is specifically engineered for inpainting: generating content for a defined masked area within an existing image.

Inpainting requires a model that simultaneously understands the unmasked context (colors, textures, lighting direction, perspective, stylistic character) and generates new content for the masked region that blends seamlessly. FLUX.1 Fill [pro] treats this as its primary function, making it more appropriate for mask-based fill workflows than general-purpose editing models.

Practical applications include object removal and replacement, background extension (outpainting), e-commerce product photo cleanup, and generative content insertion (placing a new element by masking its target region and describing it in a text prompt).

Copy link to headingWhat To Consider When Choosing a Provider

  • Configuration: Inpainting workflows typically involve user-defined masks, so request shapes vary. Per-request cost tracking in AI Gateway helps you monitor spend on variable-complexity fill operations. See $0.05 for list pricing.
  • Zero Data Retention: Zero Data Retention is offered on a per-provider and model basis. See the documentation for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen to Use FLUX.1 Fill [pro]

Best for

  • Object removal and replacement: Workflows where a specific element must be erased and replaced with contextually appropriate generated content
  • Background completion and outpainting: Masking the edge of an existing image to generate new background content that extends the scene
  • E-commerce product cleanup: Filling distracting elements, shadows, or artifacts cleanly in product photography
  • Generative object insertion: Placing a new element into an image by masking the target region and describing the desired content in a text prompt

Consider alternatives when

  • Instruction-based edits: Kontext Pro or Kontext Max handle local edits like "change the color of the hat" better when no mask is used
  • Multi-reference consistency: Kontext Pro or FLUX.2 Pro with multi-reference input are better suited for character consistency across scenes
  • Real-time interactive speed: FLUX.2 Klein handles sub-second latency better than a fill-specialized model

FLUX.1 Fill [pro] brings a dedicated inpainting architecture to AI Gateway. For applications that need to remove objects, extend backgrounds, or insert new content into photographs and designs, Fill Pro is the purpose-built choice in the FLUX family.

Copy link to headingFrequently Asked Questions

  • What is the difference between inpainting and instruction-based image editing?

    Inpainting takes an image plus a mask and generates pixels for the masked region only. Instruction-based editing takes an image plus natural language and changes the image without a pixel mask. Fill Pro is built for the first pattern; Kontext Pro and Max target the second.

  • What does FLUX.1 Fill [pro] cost per image?

    See the pricing section on this page for today's rates. AI Gateway exposes each provider's pricing for FLUX.1 Fill [pro].

  • What inputs does FLUX.1 Fill [pro] require?

    An input image, a mask defining the region to fill, and a text prompt describing the desired content for the masked area. This is the standard inpainting input format.

  • Can Fill Pro be used for background extension (outpainting)?

    Yes. By placing the mask at the border or edge of an image, Fill Pro can generate new background content that extends the scene, a technique called outpainting.

  • How does Fill Pro differ from the Kontext models?

    Fill Pro is specialized for mask-based inpainting, generating content for a defined region. The Kontext models (Pro and Max) are specialized for text-instruction-based editing that understands the full image context and makes modifications described in natural language, without requiring an explicit pixel mask.

  • Is FLUX.1 Fill [pro] a chat or language model?

    No. Fill Pro is a dedicated image generation model, not a language model or multimodal LLM. Use generateImage from the AI SDK; it processes image and mask inputs to produce image outputs.

  • Does FLUX.1 Fill [pro] support generating completely new images without an inpainting mask?

    Fill Pro is purpose-built for inpainting. For text-to-image generation without an existing image, use FLUX.1 Pro, FLUX.2 Pro, or other members of the FLUX family.