Search Results for

    Show / Hide Table of Contents

    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
    object
    GeneratedImageData
    Implements
    IImageAsset
    IImageChunk
    IBase64Source
    IUrlSource
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    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
    Type Description
    string
    | Edit this page View Source

    Encoding

    Declaration
    [JsonIgnore]
    public ImageEncoding Encoding { get; set; }
    Property Value
    Type Description
    ImageEncoding
    | Edit this page View Source

    Metadata

    Declaration
    [JsonIgnore]
    public Metadata Metadata { get; }
    Property Value
    Type Description
    Metadata
    | 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
    Type Description
    string
    | 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
    Type Description
    string

    Methods

    | Edit this page View Source

    GetBase64String()

    Declaration
    public string GetBase64String()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetDownloadUrl()

    Declaration
    public string GetDownloadUrl()
    Returns
    Type Description
    string

    Implements

    IImageAsset
    IImageChunk
    IBase64Source
    IUrlSource

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    IOExtensions.ToSprite(IImageAsset)
    IOExtensions.ToSpriteAsync(IImageAsset)
    IOExtensions.ToTexture2D(IImageAsset)
    IOExtensions.ToTexture2DAsync(IImageAsset)
    IOExtensions.ToTexture2D(IImageChunk)
    IOExtensions.ToTexture2DAsync(IImageChunk)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation