Skip to main content
POST
Outpaint

Headers

Request Body

Parameters Detail

Scale Parameter

The scale parameter defines how much larger the final image will be compared to the original:
  • Range: 1.1 to 2.0
  • Example: For a 1:1 aspect ratio image:
    • scale = 1.2 means the original image will occupy 83% of the new image (20% extension)
    • scale = 2.0 means the original image will occupy 50% of the new image (100% extension)

Example Request

Response

Returns a task object containing the task information.
This is the initial success response. Use the job_id to check the task status via the Get Task endpoint to retrieve the completed result with image URLs.

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
jobId
string<uuid>
required

ID of the original image

imageNo
integer
required

Image number to extend (0, 1, 2, or 3)

Required range: 0 <= x <= 3
Example:

0

scale
number<float>
required

Extension scale ratio (1.1-2.0)

Required range: 1.1 <= x <= 2
remixPrompt
string

Text prompt for the extended areas

Required string length: 1 - 8192
callback
string<uri>

Callback URL for task completion notifications

Response

Outpaint task created successfully