FLUX.1 Expand overview
FLUX.1 Expand specs
- Model ID
blackforestlabs/flux-expand- Developer
- Black Forest Labs
- Input
- Image, Text
- Output
- Image
- Endpoint
POST https://api.aimlapi.com/v1/images/generations
FLUX.1 image expansion and outpainting model.
FLUX.1 Expand 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
FLUX.1 Expand is documented for expanding images beyond their original boundaries to increase resolution or change aspect ratios.
It is suited to outpainting and panorama creation, including extending a source photograph horizontally into a seamless wide-format image.
It is also suited to adapting images for different formats, such as turning an image into a wide editorial panorama or other campaign-ready aspect ratios.
It is used for adding new pixels on any side of an image, with text guidance for the changes to the expanded areas.
FLUX.1 Expand 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 Expand 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 Expand 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-expand",
"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-expand",
"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-expand",
"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 Expand FAQ
What inputs and outputs does FLUX.1 Expand support?
FLUX.1 Expand takes image, text as input and returns image.
How much does FLUX.1 Expand cost?
FLUX.1 Expand costs $0.05 per generation on AI/ML API, billed as you go with no subscription.
How is FLUX.1 Expand billed?
FLUX.1 Expand is billed per generation, a fixed charge per output rather than by prompt length.
Can FLUX.1 Expand take an existing image as input?
Yes, FLUX.1 Expand accepts image input as well as a text prompt.
Who created FLUX.1 Expand?
FLUX.1 Expand was built by Black Forest Labs.
How do I call FLUX.1 Expand on AI/ML API?
Send a request to https://api.aimlapi.com/v1/images/generations with blackforestlabs/flux-expand as the model id.
Is FLUX.1 Expand available through a single API key?
Yes. FLUX.1 Expand is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is the FLUX.1 Expand model ID?
Use blackforestlabs/flux-expand as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.


.webp)