Outpainting
Outpainting
POST https://api.novita.ai/v3/outpainting
Extending the borders of the image or providing additional variations to the edges of the image.
Example
Extending the borders of the image or providing additional variations to the edges of the image.
Try it in playground.
Request:
curl --location --request POST 'https://api.novita.ai/v3/outpainting' \
--header 'Authorization: Bearer {{API Key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_file":"{{Base64 encoded image}}",
"width": 1024,
"height": 1024,
"center_x": 0,
"center_y": 0
}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted. A code 400 means there is a request parameter error, while status codes in the 5xx range indicate internal server errors.
You can obtain the image URL in the image_file
of the response in base64 format.
Response:
{
"image_file": "{{Base64 encoded image}}",
"image_type": "png"
}