Search Results for

    Show / Hide Table of Contents

    Class GenerativeVisualRequest<TSelf, TAsset, TEvent, TOptions>

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

    Constructors

    | Edit this page View Source

    GenerativeVisualRequest(ImagePrompt)

    Declaration
    protected GenerativeVisualRequest(ImagePrompt prompt)
    Parameters
    Type Name Description
    ImagePrompt prompt

    Properties

    | Edit this page View Source

    NegativePrompt

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

    ResponseFormat

    The format of the response.

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

    Size

    The size of the generated image or video frame. Must be one of 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default value) for gpt-image-1, one of 256x256, 512x512, or 1024x1024 for dall-e-2, and one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3.

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

    Methods

    | Edit this page View Source

    SetNegativePrompt(string)

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

    SetResponseFormat(FileResponseFormat)

    Declaration
    public TSelf SetResponseFormat(FileResponseFormat responseFormat)
    Parameters
    Type Name Description
    FileResponseFormat responseFormat
    Returns
    Type Description
    TSelf
    | Edit this page View Source

    SetSize(MediaSize)

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

    SetSize(int, int)

    Declaration
    public TSelf SetSize(int width, int height)
    Parameters
    Type Name Description
    int width
    int height
    Returns
    Type Description
    TSelf

    Implements

    IStreamingGenerativeRequest<TEvent, TAsset>
    IGenerativeVisualRequest
    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