AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GENImageTask

    Task for generating image(s) from text using supported models (e.g., OpenAI DALLĀ·E, Google Imagen).

    Inheritance
    object
    GENTask<GENImageTask, string, GeneratedImage>
    GENImageTask
    Implements
    IGENTask
    Inherited Members
    GENTask<GENImageTask, string, GeneratedImage>.token
    GENTask<GENImageTask, string, GeneratedImage>.enableHistory
    GENTask<GENImageTask, string, GeneratedImage>.isCanceled
    GENTask<GENImageTask, string, GeneratedImage>.outputMimeType
    GENTask<GENImageTask, string, GeneratedImage>.Cancel()
    GENTask<GENImageTask, string, GeneratedImage>.SetOption(string, object)
    GENTask<GENImageTask, string, GeneratedImage>.TryGetOption<T>(string, out T)
    GENTask<GENImageTask, string, GeneratedImage>.SetModel(Model)
    GENTask<GENImageTask, string, GeneratedImage>.SetCount(int)
    GENTask<GENImageTask, string, GeneratedImage>.SetOutputPath(string)
    GENTask<GENImageTask, string, GeneratedImage>.SetSender(string)
    GENTask<GENImageTask, string, GeneratedImage>.SetIgnoreLogs(bool)
    GENTask<GENImageTask, string, GeneratedImage>.EnablePromptHistory(bool)
    GENTask<GENImageTask, string, GeneratedImage>.SetTextToTarget(GeneratedText)
    GENTask<GENImageTask, string, GeneratedImage>.SetImageToTarget(GeneratedImage)
    GENTask<GENImageTask, string, GeneratedImage>.SetAudioToTarget(GeneratedAudio)
    GENTask<GENImageTask, string, GeneratedImage>.ExecuteAsync()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class GENImageTask : GENTask<GENImageTask, string, GeneratedImage>, IGENTask

    Constructors

    GENImageTask(string, Object)

    Declaration
    public GENImageTask(string prompt, UnityEngine.Object target = null)
    Parameters
    Type Name Description
    string prompt
    Object target

    Properties

    outputMimeType

    Declaration
    public override MIMEType outputMimeType { get; set; }
    Property Value
    Type Description
    MIMEType
    Overrides
    GENTask<GENImageTask, string, GeneratedImage>.outputMimeType

    Methods

    ExecuteAsync()

    Executes the task and returns the generated result.

    Declaration
    public override UniTask<GeneratedImage> ExecuteAsync()
    Returns
    Type Description
    UniTask<GeneratedImage>
    Overrides
    GENTask<GENImageTask, string, GeneratedImage>.ExecuteAsync()

    YieldAsync()

    Allows to set N more than the selected model allows. This is useful for streaming the images one by one.

    Declaration
    public IAsyncEnumerable<GeneratedImage> YieldAsync()
    Returns
    Type Description
    IAsyncEnumerable<GeneratedImage>

    Implements

    IGENTask

    Extension Methods

    FluentAPIExtensions.SetAspectRatio<TTask>(TTask, AspectRatio)
    FluentAPIExtensions.SetPersonGeneration<TTask>(TTask, PersonGeneration)
    FluentAPIExtensions.SetQuality(GENImageTask, ImageQuality)
    FluentAPIExtensions.SetSize<T>(T, ImageSize)
    FluentAPIExtensions.SetStyle(GENImageTask, ImageStyle)
    In this article
    Back to top Generated by DocFX