Search Results for

    Show / Hide Table of Contents

    Class PixelArtRequest<TSelf, TInput, TOptions>

    Base request for pixel-art image generation/editing calls.

    Inheritance
    object
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>
    PixelArtRequest<TSelf, TInput, TOptions>
    PixelAnimationRequest
    PixelGenerationRequest
    PixelInpaintingRequest
    PixelRotationRequest
    PixelTilesetRequest
    Implements
    IGenerativeRequest
    Inherited Members
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.FileNameKey
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.FallbackModel
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ModelType
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.Api
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.Prompt
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.Model
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.N
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.Seed
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.MeasureLatency
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.OnLatencyMeasured
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.RequestedAt
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.RecordOptions
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.RecordedContext
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetModel(Api, string)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetModel(ModelBase)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetCount(int)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetN(int)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetSeed(long)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetRecordOptions(bool?, bool?, string, string, GenerationRecord, RecordMerger, Action<GenerationRecord>)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetRecordOptions(GenerationRecordOptions)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetMeasureLatency(Action<double>)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetMeasureLatency(bool, Action<double>)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.SetPlaygroundSettings(string, string, string, bool, Action<double>, Action<GenerationRecord>)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ExecuteAsync(CancellationToken)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ExecuteAsyncT<T>(CancellationToken)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ProcessPostRequestTasks<T>(Generated<T>)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ProcessPostRequestTasks(IResult)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.GetPrompt()
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.GetPromptStringToRecord()
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ResolveDownloadOptions(DownloadOptions)
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ValidateRequest()
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.GenerateDefaultFileName()
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.PrepareRequestAsync()
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.m_Api
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.Api
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.RequestType
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.HttpOptions
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.DownloadOptions
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.Sender
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.LogOptions
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ContentType
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ResponseType
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.IsCanceled
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.Stream
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SafetyIdentifier
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ServiceTier
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.Metadata
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ProviderOptions
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.Options
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetSender(string)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetLogOptions(CurlLogOptions)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetOutputPath(string)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetOutputPath(string, string)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetOutputDirectory(string)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetDownloadOptions(DownloadOptions)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetRequestMimeType(MimeType)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetResponseMimeType(MimeType)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetStream(bool)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetMetadata(ServerDictionary)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetSafetyIdentifier(string)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetProviderOptions(TOptions)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetSpecificOptions(TOptions)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ValidateRequest()
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.GetConfig<T>()
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.SetApi(Api)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ExecuteAsync(CancellationToken)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.Cancel()
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ExecuteAsyncInternal()
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.ResolveDownloadOptions(DownloadOptions)
    UnifiedApiRequestBase<TSelf, Generated<IImageAsset>, TOptions>.GenerateDefaultFileName()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.PixelArt
    Assembly: Glitch9.AIDevKit.PixelArt.dll
    Syntax
    public abstract class PixelArtRequest<TSelf, TInput, TOptions> : GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>, IGenerativeRequest where TSelf : PixelArtRequest<TSelf, TInput, TOptions> where TInput : IPrompt where TOptions : IPixelArtRequestOptions
    Type Parameters
    Name Description
    TSelf
    TInput
    TOptions

    Constructors

    | Edit this page View Source

    PixelArtRequest(TInput)

    Declaration
    protected PixelArtRequest(TInput prompt)
    Parameters
    Type Name Description
    TInput prompt

    Properties

    | Edit this page View Source

    ModelType

    Declaration
    public override ModelType ModelType { get; }
    Property Value
    Type Description
    ModelType
    Overrides
    GenerativeRequest<TSelf, TInput, IImageAsset, TOptions>.ModelType
    | Edit this page View Source

    NegativePrompt

    Optional. Text description of what to avoid in the generated image

    Declaration
    public string NegativePrompt { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    NoBackground

    Optional. Generate with transparent background

    Declaration
    public bool? NoBackground { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    PaletteImage

    Optional. Use this to guide output colors. Keep palette images small (below 1MB, recommended 200k characters or less).

    Declaration
    public Texture2D PaletteImage { get; set; }
    Property Value
    Type Description
    Texture2D
    | Edit this page View Source

    Size

    Required.

    Declaration
    public MediaSize? Size { get; set; }
    Property Value
    Type Description
    MediaSize?

    Methods

    | Edit this page View Source

    SetNegativePrompt(string)

    Sets negative prompt text.

    Declaration
    public TSelf SetNegativePrompt(string negativePrompt)
    Parameters
    Type Name Description
    string negativePrompt
    Returns
    Type Description
    TSelf
    | Edit this page View Source

    SetNoBackground(bool)

    Enables or disables transparent background.

    Declaration
    public TSelf SetNoBackground(bool noBackground)
    Parameters
    Type Name Description
    bool noBackground
    Returns
    Type Description
    TSelf
    | Edit this page View Source

    SetPaletteImage(Texture2D)

    Declaration
    public TSelf SetPaletteImage(Texture2D paletteImage)
    Parameters
    Type Name Description
    Texture2D paletteImage
    Returns
    Type Description
    TSelf
    | Edit this page View Source

    SetSize(MediaSize)

    Sets output image size.

    Declaration
    public TSelf SetSize(MediaSize size)
    Parameters
    Type Name Description
    MediaSize size
    Returns
    Type Description
    TSelf
    | Edit this page View Source

    SetSize(SpriteSize)

    Sets square output image size from sprite size enum.

    Declaration
    public TSelf SetSize(SpriteSize size)
    Parameters
    Type Name Description
    SpriteSize size
    Returns
    Type Description
    TSelf

    Implements

    IGenerativeRequest

    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