Inpaint
Partially redraw an area of an image.
POST https://api.apiframe.ai/pro/inpaint
Headers
Name
Value
Content-Type
application/json
Authorization*
Your APIFRAME API Key
Body
Name
Type
Description
parent_task_id*
string
The task ID of the original task
index *
string
Can be 1, 2, 3, or 4
mask*
string
Base64 encoding of the image corresponding to the selected area
prompt*
string
Drawing prompt for selected areas
webhook_url
string
Task updates will be posted at this URL
webhook_secret
string
Will be passed as x-webhook-secret in the webhook call headers for authentication.
Response
// Success
{
"task_id": "29e983ca-7e86-4017-a9e3-ef6fe9cd5f2a"
}// Bad request
{
"errors": [{ msg: "Invalid request" }]
}// UnauthorizedThis endpoint doesn't generate images instantly; You can use the Fetch endpoint to fetch the result or webhooks.
Last updated
Was this helpful?