Search Results for

    Show / Hide Table of Contents

    Class StabilityEraseRequest

    Request body for POST /v2beta/stable-image/edit/erase. Removes objects defined by the mask, replacing them with AI-generated background.

    Inheritance
    object
    StabilityRequest
    StabilityEraseRequest
    Implements
    IMultipartFormRequest
    Inherited Members
    StabilityRequest.Prompt
    StabilityRequest.NegativePrompt
    StabilityRequest.Seed
    StabilityRequest.OutputFormat
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Stability
    Assembly: Glitch9.AIDevKit.Provider.Stability.dll
    Syntax
    public class StabilityEraseRequest : StabilityRequest, IMultipartFormRequest

    Properties

    | Edit this page View Source

    GrowMask

    Optional. Pixels to grow the mask outward. Range: 0 to 20. Default: 5.

    Declaration
    [JsonProperty("grow_mask")]
    public int? GrowMask { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Image

    Required. Raw bytes of the source image. Formats: jpeg, png, webp. Minimum 64 pixels per side.

    Declaration
    [JsonProperty("image")]
    public byte[] Image { get; set; }
    Property Value
    Type Description
    byte[]
    | Edit this page View Source

    Mask

    Optional. Grayscale mask defining areas to erase. White pixels are erased; black pixels are preserved. If omitted, the alpha channel is used.

    Declaration
    [JsonProperty("mask")]
    public byte[] Mask { get; set; }
    Property Value
    Type Description
    byte[]

    Implements

    IMultipartFormRequest

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation