Class EditService
Service for Stability AI image editing endpoints.
POST /v2beta/stable-image/edit/inpaint
POST /v2beta/stable-image/edit/outpaint
POST /v2beta/stable-image/edit/erase
POST /v2beta/stable-image/edit/search-and-replace
POST /v2beta/stable-image/edit/search-and-recolor
POST /v2beta/stable-image/edit/remove-background
All endpoints return raw image bytes.
Assembly: Glitch9.AIDevKit.Provider.Stability.dll
Syntax
public class EditService : CrudServiceBase<StabilityClient>, ICrudService
Constructors
|
Edit this page
View Source
EditService(StabilityClient)
Declaration
public EditService(StabilityClient client)
Parameters
Methods
|
Edit this page
View Source
EraseAsync(StabilityEraseRequest, RequestOptions)
Removes objects in the masked area and fills with AI-generated background.
Declaration
public UniTask<Generated<IImageAsset>> EraseAsync(StabilityEraseRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
InpaintAsync(StabilityInpaintRequest, RequestOptions)
Fills masked or transparent areas of an image guided by the prompt.
Declaration
public UniTask<Generated<IImageAsset>> InpaintAsync(StabilityInpaintRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
OutpaintAsync(StabilityOutpaintRequest, RequestOptions)
Extends the canvas of an image on any side.
Declaration
public UniTask<Generated<IImageAsset>> OutpaintAsync(StabilityOutpaintRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
RemoveBackgroundAsync(StabilityRemoveBgRequest, RequestOptions)
Segments the foreground and removes the image background.
Declaration
public UniTask<Generated<IImageAsset>> RemoveBackgroundAsync(StabilityRemoveBgRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
SearchAndRecolorAsync(StabilitySearchRecolorRequest, RequestOptions)
Recolors a located object based on a description prompt.
Declaration
public UniTask<Generated<IImageAsset>> SearchAndRecolorAsync(StabilitySearchRecolorRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
SearchAndReplaceAsync(StabilitySearchReplaceRequest, RequestOptions)
Replaces a located object (described by search_prompt) with AI-generated content.
Declaration
public UniTask<Generated<IImageAsset>> SearchAndReplaceAsync(StabilitySearchReplaceRequest request, RequestOptions options = null)
Parameters
Returns
Implements
Extension Methods