FLUX.1 Fill API

FLUX.1 inpainting and masked image filling model.

Modalities
Image, TextImage
Price
$0.05per generation
Model type
Image generation
Released
Jun 12, 2026

FLUX.1 Fill overview

FLUX.1 Fill specs

Model ID
blackforestlabs/flux-fill
Developer
Black Forest Labs
Input
Image, Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

FLUX.1 inpainting and masked image filling model.

FLUX.1 Fill API Pricing
- Pricing on request

High-volume image generation
Produce product visuals, thumbnails, and marketing assets programmatically at scale.

Creative and concept art
Turn text prompts into illustrations, mockups, and design explorations.

Use cases

Use FLUX.1 Fill for text-driven inpainting and outpainting to edit selected regions of an image or extend its borders. It is suited to transforming parts of an image while preserving the surrounding context, such as changing objects, enhancing details, or removing unwanted elements naturally.

It is also suited to adding new pixels at the image borders to extend images beyond their original boundaries. This makes it useful for expanding scenes or adapting content for different aspect ratios and formats.

The model is documented as enabling seamless edits that integrate naturally with existing images. It is also described as supporting editing and expansion of real and generated images given a text description and a binary mask.

FLUX.1 Fill API pricing

FLUX.1 Fill pricing in US dollars
UsagePriceUnit
Image generation$0.05per generation

The final price depends on request parameters such as resolution or duration.

Prices from the AI/ML API price list, checked on Nov 4, 2026.

FLUX.1 Fill vs other image models: prices

AI/ML API rates for 5 models, per generation.

AI/ML API prices in USD per generation
ModelPer generation
FLUX.1 Fill$0.05
FLUX.1 Dev$0.025
FLUX.1 Expand$0.05
Grok Imagine Image Pro$0.05
Wan 2.2 Plus$0.05

How to use the FLUX.1 Fill API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "blackforestlabs/flux-fill",
  "image_url": "https://example.com/input.jpg"
}'

Related articles

All posts

FLUX.1 Fill FAQ

What inputs and outputs does FLUX.1 Fill support?

FLUX.1 Fill takes image, text as input and returns image.

How much does FLUX.1 Fill cost?

FLUX.1 Fill costs $0.05 per generation on AI/ML API, billed as you go with no subscription.

How is FLUX.1 Fill billed?

FLUX.1 Fill is billed per generation, a fixed charge per output rather than by prompt length.

Can FLUX.1 Fill take an existing image as input?

Yes, FLUX.1 Fill accepts image input as well as a text prompt.

Who created FLUX.1 Fill?

FLUX.1 Fill was built by Black Forest Labs.

How do I call FLUX.1 Fill on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with blackforestlabs/flux-fill as the model id.

Is FLUX.1 Fill available through a single API key?

Yes. FLUX.1 Fill is served through AI/ML API, so the same key and endpoint format used for other models applies.

What is the FLUX.1 Fill model ID?

Use blackforestlabs/flux-fill as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with FLUX.1 Fill

FLUX.1 Fill API

blackforestlabs/flux-fill

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "blackforestlabs/flux-fill",
  "image_url": "https://example.com/input.jpg"
}'