Class GenerativeVisualRequest<TSelf, TAsset, TEvent, TOptions>
Inheritance
UnifiedApiRequestBase<TSelf, Generated<TAsset>, TOptions>
GenerativeRequest<TSelf, ImagePrompt, TAsset, TOptions>
StreamingGenerativeRequest<TSelf, ImagePrompt, TAsset, TEvent, TOptions>
GenerativeVisualRequest<TSelf, TAsset, TEvent, TOptions>
Inherited Members
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 SourceGenerativeVisualRequest(ImagePrompt)
Declaration
protected GenerativeVisualRequest(ImagePrompt prompt)
Parameters
| Type | Name | Description |
|---|---|---|
| ImagePrompt | prompt |
Properties
| Edit this page View SourceNegativePrompt
Declaration
public string NegativePrompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResponseFormat
The format of the response.
Declaration
public FileResponseFormat? ResponseFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| FileResponseFormat? |
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 SourceSetNegativePrompt(string)
Declaration
public TSelf SetNegativePrompt(string negativePrompt)
Parameters
| Type | Name | Description |
|---|---|---|
| string | negativePrompt |
Returns
| Type | Description |
|---|---|
| TSelf |
SetResponseFormat(FileResponseFormat)
Declaration
public TSelf SetResponseFormat(FileResponseFormat responseFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| FileResponseFormat | responseFormat |
Returns
| Type | Description |
|---|---|
| TSelf |
SetSize(MediaSize)
Declaration
public TSelf SetSize(MediaSize size)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaSize | size |
Returns
| Type | Description |
|---|---|
| TSelf |
SetSize(int, int)
Declaration
public TSelf SetSize(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height |
Returns
| Type | Description |
|---|---|
| TSelf |