Search Results for

    Show / Hide Table of Contents

    Class ImageContentData

    Inheritance
    object
    ImageContentData
    Implements
    IContentData
    IBase64Source
    IImageAsset
    IImageChunk
    IUrlSource
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class ImageContentData : IContentData, IBase64Source, IImageAsset, IImageChunk, IUrlSource

    Properties

    | Edit this page View Source

    Detail

    Specifies the detail level of the image. low uses fewer tokens, you can opt in to high resolution using high. Default value is auto

    Declaration
    public OpenAITypes.ImageDetail? Detail { get; set; }
    Property Value
    Type Description
    OpenAITypes.ImageDetail?
    | Edit this page View Source

    Encoding

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

    FileId

    The ID of the file to be sent to the model.

    Declaration
    public string FileId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Metadata

    Declaration
    public Metadata Metadata { get; set; }
    Property Value
    Type Description
    Metadata
    | Edit this page View Source

    Url

    The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

    Declaration
    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
    | Edit this page View Source

    IsBase64()

    Indicates if the image is in base64 format. This is true if the URL starts with "data:image/png;base64,".

    Declaration
    public bool IsBase64()
    Returns
    Type Description
    bool
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IContentData
    IBase64Source
    IImageAsset
    IImageChunk
    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