Table of Contents

Class ImageGenerationRequest

Namespace
Glitch9.AIDevKit

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

public class ImageGenerationRequest : VisualMediaGenerationRequest<ImageGenerationRequest, Prompt, Generated<Texture2D>, Texture2D, IGenerativeImageEvent>, IGenerativeRequest, ISequentialRequest
Inheritance
object
ImageGenerationRequest
Implements
Inherited Members
Extension Methods

Constructors

ImageGenerationRequest(Prompt)

public ImageGenerationRequest(Prompt prompt)

Parameters

prompt Prompt

Properties

ModelType

public override ModelType ModelType { get; }

Property Value

ModelType

Type

public override FluentApiRequestType Type { get; }

Property Value

FluentApiRequestType

Methods

CreateStreamAsyncInternal()

protected override UniTask<IRESTStream<IGenerativeImageEvent>> CreateStreamAsyncInternal()

Returns

UniTask<IRESTStream<IGenerativeImageEvent>>

ExecuteAsyncInternal()

protected override UniTask<Generated<Texture2D>> ExecuteAsyncInternal()

Returns

UniTask<Generated<Texture2D>>