Skip to main content
POST
Advanced Edit with Canvas

Headers

Request Body

Data Types

Canvas

CanvasImg

Mask

Polygon

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

multipart/form-data
imgUrl
string<uri>
required

URL of the source image

Maximum string length: 1024
canvas
object
required

Target canvas dimensions

imgPos
object
required

Image position relative to canvas

mask
object
required

Areas to edit on the original image

remixPrompt
string
required

Text prompt for the editing operation

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

Callback URL for task completion notifications

Response

Upload paint task created successfully