Search Results for

    Show / Hide Table of Contents

    Class ModelInfo

    Inheritance
    object
    ModelInfo
    Implements
    IModelInfo
    IAIResource
    IData
    IHasId<string>
    IHasName
    IDeprecatable
    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 ModelInfo : IModelInfo, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    Api

    The AI provider this model belongs to.

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

    Capabilities

    The set of capabilities this model supports (e.g. Chat, Streaming, FunctionCalling).

    Declaration
    public ModelCapability[] Capabilities { get; set; }
    Property Value
    Type Description
    ModelCapability[]
    | Edit this page View Source

    CreatedAt

    The UTC timestamp when this model was created.

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

    Description

    A short description of the model and its intended use.

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

    Family

    The model family this model belongs to (e.g. GPT, Gemini).

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

    Id

    The unique identifier of the model (e.g. "gpt-4o").

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

    InputModalities

    The modalities this model accepts as input (e.g. Text, Image, Audio).

    Declaration
    public Modality[] InputModalities { get; set; }
    Property Value
    Type Description
    Modality[]
    | Edit this page View Source

    InputTokenLimit

    Maximum number of input tokens (context size). Null if not specified by the provider.

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

    Name

    The human-readable display name of the model.

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

    OutputModalities

    The modalities this model produces as output (e.g. Text, Image, Audio).

    Declaration
    public Modality[] OutputModalities { get; set; }
    Property Value
    Type Description
    Modality[]
    | Edit this page View Source

    OutputTokenLimit

    Maximum number of output tokens the model can generate. Null if not specified by the provider.

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

    OwnedBy

    The organization or user that owns this model.

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

    Performance

    Relative performance score. -1 means not rated.

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

    Prices

    The pricing tiers for using this model.

    Declaration
    public ModelPrice[] Prices { get; set; }
    Property Value
    Type Description
    ModelPrice[]
    | Edit this page View Source

    Provider

    The provider name string (e.g. "openai", "google").

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

    Speed

    Relative speed score. -1 means not rated.

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

    SupportedModes

    The connection modes this model supports (e.g. Rest, Streaming, WebSocket).

    Declaration
    public ConnectionMode[] SupportedModes { get; set; }
    Property Value
    Type Description
    ConnectionMode[]
    | Edit this page View Source

    Type

    The primary type of the model (e.g. Language, ImageGeneration, TextToSpeech).

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

    Voices

    Available voice IDs for local TTS models (e.g. SherpaOnnx). Null for cloud-based models.

    Declaration
    public string[] Voices { get; set; }
    Property Value
    Type Description
    string[]

    Implements

    IModelInfo
    IAIResource
    IData
    IHasId<TId>
    IHasName
    IDeprecatable

    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)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation