Media · Image · Outpaint / extend image beyond borders
Extend an image BEYOND its original borders (uncrop), generating new
surrounding content from prompt. Requires mask_url marking the new
area. Different from generativeFill (fills a region inside the image)
and magicInpaint (edits existing content). Async — returns a task_id
(auto-polled).
Authentication
AuthorizationApi-Key
Header authentication of the form Api-Key <token>
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
image_url
URL of the source image.
mask_url
URL of the mask defining the region to extend into.
prompt
Text description of what to generate in the extended area.
negative_prompt
What to avoid in the generated content.
guidance_scale
How closely to follow the prompt (higher = more literal).
count
Number of variations to generate.
Response
Async task queued.
task_id
Poll GET /api/v1/tasks/{task_id} until SUCCESS or FAILURE.
