Skip to main content
POST
Inpaint

Headers

Request Body

Data Types

Mask

Choose one of the following methods to define the repaint area:

Polygon

Example Request

Using Polygon Areas

Using Mask Image

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 generation task

imageNo
integer
required

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

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

0

mask
object
required

Regions to repaint (use either areas or url)

remixPrompt
string

Text prompt for the repaint area

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

Callback URL for task completion notifications

Response

Inpaint task created successfully