Search Results for

    Show / Hide Table of Contents

    Class UpscaleService

    Service for synchronous Stability AI upscale endpoints. POST /v2beta/stable-image/upscale/conservative POST /v2beta/stable-image/upscale/fast

    Note: The creative upscale endpoint is async (returns a job ID for polling) and is deferred to a future implementation.

    Inheritance
    object
    CrudServiceBase<StabilityClient>
    UpscaleService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<StabilityClient>.client
    CrudServiceBase<StabilityClient>.ApiKey
    CrudServiceBase<StabilityClient>.GetUrl(params string[])
    CrudServiceBase<StabilityClient>.GetChildUrl(string, params string[])
    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 UpscaleService : CrudServiceBase<StabilityClient>, ICrudService

    Constructors

    | Edit this page View Source

    UpscaleService(StabilityClient)

    Declaration
    public UpscaleService(StabilityClient client)
    Parameters
    Type Name Description
    StabilityClient client

    Methods

    | Edit this page View Source

    ConservativeAsync(StabilityUpscaleRequest, RequestOptions)

    Upscales an image while preserving its original details (conservative).

    Declaration
    public UniTask<Generated<IImageAsset>> ConservativeAsync(StabilityUpscaleRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    StabilityUpscaleRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Generated<IImageAsset>>
    | Edit this page View Source

    FastAsync(StabilityUpscaleRequest, RequestOptions)

    Upscales an image quickly (fast, lower quality than conservative).

    Declaration
    public UniTask<Generated<IImageAsset>> FastAsync(StabilityUpscaleRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    StabilityUpscaleRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<Generated<IImageAsset>>

    Implements

    ICrudService

    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