Class PixelGenerationRequest
Request for generating a pixel-art image from text prompt.
Inheritance
PixelGenerationRequest
Implements
Inherited Members
GenerativeRequest<PixelGenerationRequest, Prompt, IImageAsset, IPixelArtGenerationOptions>.ModelType
Namespace: Glitch9.AIDevKit.PixelArt
Assembly: Glitch9.AIDevKit.PixelArt.dll
Syntax
public class PixelGenerationRequest : PixelArtRequest<PixelGenerationRequest, Prompt, IPixelArtGenerationOptions>, IGenerativeRequest
Constructors
| Edit this page View SourcePixelGenerationRequest(Prompt)
Creates a pixel-art generation request.
Declaration
public PixelGenerationRequest(Prompt prompt)
Parameters
| Type | Name | Description |
|---|---|---|
| Prompt | prompt |
Properties
| Edit this page View SourceDirection
Optional target direction metadata for consumers that place outputs into directional cells. Providers that don't support direction can ignore this at API layer.
Declaration
public SpriteDirection? Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| SpriteDirection? |
FallbackModel
Declaration
protected override string FallbackModel { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceRequestType
The endpoint type for this
Declaration
public override RequestType RequestType { get; }
Property Value
| Type | Description |
|---|---|
| RequestType |
Overrides
Methods
| Edit this page View SourceExecuteAsyncInternal()
Executes the actual task logic. Must be implemented in derived classes.
Declaration
protected override UniTask<Generated<IImageAsset>> ExecuteAsyncInternal()
Returns
| Type | Description |
|---|---|
| UniTask<Generated<IImageAsset>> |
Overrides
| Edit this page View SourceSetDirection(SpriteDirection?)
Declaration
public PixelGenerationRequest SetDirection(SpriteDirection? direction)
Parameters
| Type | Name | Description |
|---|---|---|
| SpriteDirection? | direction |
Returns
| Type | Description |
|---|---|
| PixelGenerationRequest |