FLUX Outpainting overview
FLUX Outpainting specs
- Model ID
blackforestlabs/flux-outpainting- Developer
- Black Forest Labs
- Input
- Image, Text
- Output
- Image
- Endpoint
POST https://api.aimlapi.com/v1/images/generations
Extends an image beyond its original canvas.
FLUX Outpainting 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 Outpainting is documented as suited to aspect-ratio changes, such as converting images into widescreen, vertical, or banner formats. It is also suited to banner generation and social media reformatting, where an image needs to be extended to fit a new layout. The model is documented for giving a composition more room to breathe, which applies when a subject needs extra surrounding space without re-framing. It is also suited to extending natural scenes or textures, including landscapes, interiors, fabrics, food, and skies, where the goal is “more of the same.”
FLUX Outpainting API pricing
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.13 | per Megapixel |
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 Outpainting vs other image models: prices
AI/ML API rates for 5 models, per Megapixel.
| Model | Per Megapixel |
|---|---|
| $0.13 | |
| $0.014 | |
| $0.015 | |
| $0.015 | |
| $0.05 |
How to use the FLUX Outpainting 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-outpainting",
"image_url": "https://example.com/input.jpg",
"width": null,
"height": null
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "blackforestlabs/flux-outpainting",
"image_url": "https://example.com/input.jpg",
"width": null,
"height": null
}
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-outpainting",
"image_url": "https://example.com/input.jpg",
"width": null,
"height": null
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
FLUX Outpainting FAQ
What inputs and outputs does FLUX Outpainting support?
FLUX Outpainting takes image, text as input and returns image.
How much does FLUX Outpainting cost?
FLUX Outpainting costs $0.13 per Megapixel on AI/ML API, billed as you go with no subscription.
How is FLUX Outpainting billed?
FLUX Outpainting is billed per generation, a fixed charge per output rather than by prompt length.
Can FLUX Outpainting take an existing image as input?
Yes, FLUX Outpainting accepts image input as well as a text prompt.
Who created FLUX Outpainting?
FLUX Outpainting was built by Black Forest Labs.
How do I call FLUX Outpainting on AI/ML API?
Send a request to https://api.aimlapi.com/v1/images/generations with blackforestlabs/flux-outpainting as the model id.
Is FLUX Outpainting available through a single API key?
Yes. FLUX Outpainting is served through AI/ML API, so the same key and endpoint format used for other models applies.
Can FLUX Outpainting be used for video editing as well as image extension?
Yes, video editing is listed as a feature of FLUX Outpainting in addition to extending images beyond their original canvas.
What is the FLUX Outpainting model ID?
Use blackforestlabs/flux-outpainting as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.


.webp)