Skip to main content
POST
Image outpainting

Outpaint

Outpainting endpoint result

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl

Body

json

Body

application/json
key
string
required

Your API Key used for request authorization

image
string<uri>
required

URL of the initial image to outpaint

prompt
string
default:high quality

The text prompt to guide image generation

negative_prompt
string
default:low quality

Aspects to avoid in the generated image

width
integer
default:1280

Width of the output image

Required range: x <= 1440
height
integer
default:720

Height of the output image

Required range: x <= 1440
overlap_width
integer
default:10

Width of the mask overlap area

Required range: x <= 42
num_inference_steps
integer
default:10

Number of denoising steps

Required range: x <= 30
guidance_scale
number
default:8

How closely to follow the prompt

seed
integer

Seed for reproducible results

temp
boolean
default:true

Whether to save output temporarily

base64
boolean
default:false

Whether the image is base64 encoded

webhook
string<uri>

URL to receive POST API call when complete

track_id
integer

ID for webhook identification

Response

200 - application/json

Outpainting response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the image in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of generated image URLs

Array of proxy image URLs

meta
object

Metadata about the generation process