Skip to navigation

Media · Image · Magic inpaint — AI object removal / replacement

View as Markdown

Remove or replace objects in an image, guided by prompt, with no mask needed (the model locates the target). Use for “remove the person” / “replace the car with a bike”. With an explicit mask region use generativeFill; to extend beyond the borders use imageOutpainting. 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_urlstringRequired
URL of the source image.
promptstringRequired
Text description of the desired result.
scaledoubleOptionalDefaults to 2
Guidance scale for generation strength.

Response

Async task queued.
task_idstringOptional

Poll GET /api/v1/tasks/{task_id} until SUCCESS or FAILURE.