FLUX Outpainting API

Extends an image beyond its original canvas.

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

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

FLUX Outpainting pricing in US dollars
UsagePriceUnit
Image generation$0.13per 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.

AI/ML API prices in USD per Megapixel
ModelPer Megapixel
FLUX Outpainting$0.13
FLUX.2 Klein 4B$0.014
FLUX.2 Klein 9B$0.015
FLUX.2 Klein 9B Preview$0.015
FLUX.2 Flex$0.05

How to use the FLUX Outpainting 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-outpainting",
  "image_url": "https://example.com/input.jpg",
  "width": null,
  "height": null
}'

Related articles

All posts

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.

Start building with FLUX Outpainting

FLUX Outpainting API

blackforestlabs/flux-outpainting

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-outpainting",
  "image_url": "https://example.com/input.jpg",
  "width": null,
  "height": null
}'