Class GeneratedImageData
OpenAI style Generated Image Data used by OpenAI and xAI.
Represents the Url or the content of an image generated by Image Generation AI.
Inheritance
GeneratedImageData
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class GeneratedImageData : IImageAsset, IImageChunk, IBase64Source, IUrlSource
Properties
|
Edit this page
View Source
B64Json
The base64-encoded JSON of the generated image, if response_format is Base64Json.
Declaration
[JsonProperty("b64_json")]
public string B64Json { get; set; }
Property Value
|
Edit this page
View Source
Encoding
Declaration
[JsonIgnore]
public ImageEncoding Encoding { get; set; }
Property Value
|
Edit this page
View Source
Declaration
[JsonIgnore]
public Metadata Metadata { get; }
Property Value
|
Edit this page
View Source
RevisedPrompt
The prompt that was used to generate the image, if there was any revision to the prompt.
Declaration
[JsonProperty("revised_prompt")]
public string RevisedPrompt { get; set; }
Property Value
|
Edit this page
View Source
Url
The URL of the generated image, if response_format is Url (default).
Declaration
[JsonProperty("url")]
public string Url { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetBase64String()
Declaration
public string GetBase64String()
Returns
|
Edit this page
View Source
GetDownloadUrl()
Declaration
public string GetDownloadUrl()
Returns
Implements
Extension Methods