Runflow
Back to Gallery

runflow/outpaint

Expand the canvas of an image with AI-generated content that matches the existing scene. Specify percent expand on each side — required so the customer is intentional.

$0.55/request 2026-04-28

Install

pip install requests

Run the model

import requests

response = requests.post(
    "https://api.runflow.io/v1/run/outpaint",
    headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
    json={
    "image_url": "https://public.runflow.io/images/models/runflow/outpaint/examples/1/before.webp",
    "expand_top": 10,
    "file_input": "10-couple-half-frame.png",
    "expand_left": 70,
    "expand_right": 0,
    "expand_bottom": 30
    },
)

data = response.json()
print(data["images"][0]["url"])

Input schema

ParameterTypeDescription
image_urlimageURL of the image to process. HTTPS required.
expand_topinteger0–80% expand on the top edge.
file_inputstringFilename inside `image_url` (e.g. `photo.png` if the zip contains `photo.png`). Frontend should set this to match the inner filename when composing the zip.
expand_bottominteger0–80% expand on the bottom edge.
expand_leftinteger0–80% expand on the left edge.
expand_rightinteger0–80% expand on the right edge.

Output schema

FieldTypeDescription
outputsjsonArray of result items, each with at minimum a `url` field.
seedjsonRandom seed used (null if N/A).
timingjsonProvider timing breakdown (null if not surfaced).
nsfw_detectedjsonProvider NSFW flag (null if not surfaced).

Related models

Start generating with Outpaint (Expand)

Get API access in minutes. No GPU setup, no infrastructure to manage.