Endpoint
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your API key |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | string | Yes | ID of the original image generation task |
imageNo | integer | Yes | Image number to extend (0/1/2/3) |
scale | float | Yes | Extension scale ratio (1.1-2.0) |
remixPrompt | string | No | Text prompt for the extended areas (1-8192 characters) |
callback | string | No | Callback URL for task completion notifications |
Parameters Detail
Scale Parameter
Thescale 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.2means the original image will occupy 83% of the new image (20% extension)scale = 2.0means the original image will occupy 50% of the new image (100% extension)
Example Request
Response
Returns a task object containing the task information.Authorizations
API key for authentication
Body
application/json
ID of the original image
Image number to extend (0, 1, 2, or 3)
Required range:
0 <= x <= 3Example:
0
Extension scale ratio (1.1-2.0)
Required range:
1.1 <= x <= 2Text prompt for the extended areas
Required string length:
1 - 8192Callback URL for task completion notifications
Response
200
Outpaint task created successfully