Search Results for

    Show / Hide Table of Contents

    Interface IModelInfo

    Defines the contract for model metadata retrieved from AI provider APIs (e.g. GET /v1/models). All provider-specific model data classes implement this interface to ensure a consistent structure for model type, capabilities, token limits, pricing, and benchmark information.

    Inherited Members
    IAIResource.Api
    IAIResource.OwnedBy
    IAIResource.CreatedAt
    IAIResource.Description
    IAIResource.IsCustom
    IAIResource.GetMetadata()
    IHasId<string>.Id
    IHasName.Name
    IDeprecatable.IsDeprecated
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface IModelInfo : IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    Active

    Whether this model is currently active and available for use.

    Declaration
    bool Active { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Capabilities

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

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

    Family

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

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

    FineTuningInfo

    Base model information for fine-tuned models. Null if this is not a fine-tuned model. Use IsCustom to check whether this model is fine-tuned.

    Declaration
    BaseModelInfo FineTuningInfo { get; }
    Property Value
    Type Description
    BaseModelInfo
    | Edit this page View Source

    InputModalities

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

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

    InputTokenLimit

    Maximum number of tokens this model accepts as input. Also known as: Max Prompt Tokens, Max Context Tokens, Context Size, Context Length.

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

    Legacy

    Whether this model is considered legacy and may be deprecated in the future.

    Declaration
    bool Legacy { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    OutputModalities

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

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

    OutputTokenLimit

    Maximum number of tokens this model can generate as output. Also known as: Max Completion Tokens, Max Response Tokens.

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

    Performance

    Relative performance score compared to other models. -1 means not rated.

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

    Prices

    The pricing tiers for using this model.

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

    Speed

    Relative speed score compared to other models. -1 means not rated.

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

    SupportedModes

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

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

    Type

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

    Declaration
    ModelType Type { get; }
    Property Value
    Type Description
    ModelType

    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