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 edit (0/1/2/3) |
canvas | Canvas | Yes | Target canvas dimensions |
imgPos | CanvasImg | Yes | Image position relative to canvas |
remixPrompt | string | Yes | Text prompt for the edit |
mask | Mask | No | Areas to repaint on the original image |
callback | string | No | Callback URL for task completion notifications |
Data Types
Canvas
Field | Type | Description |
---|---|---|
width | integer | Canvas width in pixels |
height | integer | Canvas height in pixels |
CanvasImg
Field | Type | Description |
---|---|---|
width | integer | Image width in pixels |
height | integer | Image height in pixels |
x | integer | Horizontal offset from canvas top-left |
y | integer | Vertical offset from canvas top-left |
Mask
Field | Type | Description |
---|---|---|
areas | Polygon[] | Polygonal areas to repaint (optional) |
url | string | Black and white mask image URL (optional) |
Polygon
Field | Type | Description |
---|---|---|
width | integer | Image width in pixels (500-4096) |
height | integer | Image height in pixels (500-4096) |
points | integer[] | Polygon coordinates in XYXY format, clockwise from top-left |