Light Mode
AI Resize API
POST
/image/edits/ai-resizeThe Outpaint API allows users to expand images by increasing their width and height, filling the new areas with contextually appropriate content. This feature intelligently extends images to fit into larger dimensions or complete partial scenes.
Request
Header Params
Authorization
string
required
A bearer token that authenticates the user for making the request.
Example:
Bearer {{API Token}}
Body Params multipart/form-data
prompt
string
required
A text description that guides the out-painting process. The image will be modified to align with this prompt in the masked areas.
Example:
A futuristic cityscape at night with neon lights
image
file
required
The image file to be edited.
mask
file
required
The mask image indicating the areas to be out-painted.
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : Binaryapplication/octet-stream
Example
The response for 200 code is bytes.
Last modified: 23 days ago