Search Results for

    Show / Hide Table of Contents

    Class StabilityRequest

    Shared base for all Stability AI native API generation and edit requests. All requests use multipart/form-data encoding.

    Inheritance
    object
    StabilityRequest
    StabilityCoreRequest
    StabilityEraseRequest
    StabilityInpaintRequest
    StabilityOutpaintRequest
    StabilityRemoveBgRequest
    StabilitySD3Request
    StabilitySearchRecolorRequest
    StabilitySearchReplaceRequest
    StabilityUltraRequest
    StabilityUpscaleRequest
    Implements
    IMultipartFormRequest
    Inherited Members
    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 abstract class StabilityRequest : IMultipartFormRequest

    Properties

    | Edit this page View Source

    NegativePrompt

    Optional. Keywords of what you do not wish to see in the output image. Max 10,000 characters.

    Declaration
    [JsonProperty("negative_prompt")]
    public string NegativePrompt { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    OutputFormat

    Optional. Output image format. Supported: png, jpeg, webp. Default: png.

    Declaration
    [JsonProperty("output_format")]
    public string OutputFormat { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Prompt

    Required. What you wish to see in the output image. A strong, descriptive prompt clearly defining elements, colors, and subjects leads to better results.

    Declaration
    [JsonProperty("prompt")]
    public string Prompt { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Seed

    Optional. A fixed value to guide the randomness of the generation. Omit or pass 0 for a random seed. Range: 0 to 4294967295.

    Declaration
    [JsonProperty("seed")]
    public int? Seed { get; set; }
    Property Value
    Type Description
    int?

    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