Class OpenAIImageData
Inheritance
OpenAIImageData
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
public sealed class OpenAIImageData : IImageAsset, IImageChunk, IBase64Source, IUsageProvider
Fields
|
Edit this page
View Source
EditCompleted
Declaration
public const string EditCompleted = "image_edit.completed"
Field Value
|
Edit this page
View Source
EditPartialImage
Declaration
public const string EditPartialImage = "image_edit.partial_image"
Field Value
|
Edit this page
View Source
GenerationCompleted
Declaration
public const string GenerationCompleted = "image_generation.completed"
Field Value
|
Edit this page
View Source
GenerationPartialImage
Declaration
public const string GenerationPartialImage = "image_generation.partial_image"
Field Value
Properties
|
Edit this page
View Source
B64Json
Required. Base64-encoded partial or final image data, suitable for rendering as an image.
Declaration
[JsonProperty("b64_json")]
public string B64Json { get; set; }
Property Value
|
Edit this page
View Source
Background
Required. The background setting for the requested or generated image.
Declaration
[JsonProperty("background")]
public OpenAITypes.ImageBackground? Background { get; set; }
Property Value
|
Edit this page
View Source
CreatedAt
Required. The Unix timestamp when the event was created.
Declaration
[JsonProperty("created_at")]
public UnixTime? CreatedAt { get; set; }
Property Value
|
Edit this page
View Source
Encoding
Declaration
[JsonIgnore]
public ImageEncoding Encoding { get; }
Property Value
|
Edit this page
View Source
Declaration
[JsonIgnore]
public Metadata Metadata { get; }
Property Value
|
Edit this page
View Source
Required. The output format for the requested or generated image.
Declaration
[JsonProperty("output_format")]
public string OutputFormat { get; set; }
Property Value
|
Edit this page
View Source
PartialImageIndex
Optional. 0-based index for the partial image (streaming).
Declaration
[JsonProperty("partial_image_index")]
public int? PartialImageIndex { get; set; }
Property Value
|
Edit this page
View Source
Quality
Required. The quality setting for the requested or generated image.
Declaration
[JsonProperty("quality")]
public OpenAITypes.ImageQuality? Quality { get; set; }
Property Value
|
Edit this page
View Source
Size
Required. The size of the requested or generated image.
Declaration
[JsonProperty("size")]
public MediaSize? Size { get; set; }
Property Value
|
Edit this page
View Source
Type
Required. The type of the event.
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
|
Edit this page
View Source
Usage
Optional. For gpt-image-1 only, the token usage information for the image generation.
Declaration
[JsonProperty("usage")]
public Usage Usage { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetBase64String()
Declaration
public string GetBase64String()
Returns
|
Edit this page
View Source
GetUsage()
Declaration
Returns
|
Edit this page
View Source
IsValid()
Declaration
Returns
Implements
Extension Methods