Skip to content
Local Cloud GPU

Expand image

Extend the canvas beyond the frame

Add space on any side and a generation model paints the new area to match. Turn a portrait into a landscape, or give a crop room to breathe.

Model

price of the model you pick, per run

$0

on your own machine

Any side

Drag the frame left, right, up or down.

The original stays

Only the new area is painted, the image itself is kept as is.

Free locally

On your GPU it costs nothing. In the cloud, the model's price.

Reference

Inputs and parameters

The same on every surface: the desktop app, Claude through MCP and the API. Unknown parameters are refused, so a typo never runs with a default.

Inputs

NameTypeLimitsNotes
image requiredimage30 MB, 4 MPSource image

Parameters

NameTypeDefaultAcceptedNotes
model requiredstring·up to 128 charactersGeneration model (a catalog model name that accepts an image input).
promptstring·up to 4000 charactersPrompt (default: empty; reuse the image's original prompt for best results).
negative_promptstring·up to 2000 characters
leftint00 to 2048
rightint00 to 2048
topint00 to 2048
bottomint00 to 2048
seedint·0 to 4294967295Fixed seed for a reproducible result (default: random).

Outputs

  • imageimage

API

Run Expand image from the API

curl https://imference.com/tools/outpaint \
  -H "Authorization: Bearer $IMFERENCE_API_KEY" \
  -F image=@image.png \
  -F 'params={"model": "anima-aesthetic", "prompt": "a red vintage car"}'

Files go in multipart fields named after the inputs; JSON works too, with {"inputs": {...}, "params": {...}} and https URLs or base64 data: URIs. The answer is a request_id: poll GET /status?request_id=... until it returns the outputs. Pay per call from a wallet instead at POST /ondemand/tools/outpaint. A run that fails is refunded to your credits. Details in the reference.

Specs

The details

Price
Same as a generation with the model
Model
Any image model that takes an image input (not an instruction-edit model).
Runs
Local and cloud
License
License of the selected model
Tool id
outpaint 1.0.0
MCP tool
outpaint

More tools

Often used with it

All tools

FAQ

Good to know

Which models work best?

Photo-real models like Z-Image give the most natural extensions. A prompt that describes the scene helps.

How much can I add?

Up to 2048 pixels per side, within 16 megapixels in total.

Try Expand image tonight