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
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.05 | per 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.
| Model | Per generation |
|---|---|
| $0.05 | |
| $0.025 | |
| $0.05 | |
| $0.05 | |
| $0.05 |
How to use the FLUX.1 Fill API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport 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"
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "blackforestlabs/flux-fill",
"image_url": "https://example.com/input.jpg"
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "blackforestlabs/flux-fill",
"image_url": "https://example.com/input.jpg"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
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.


.webp)