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
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public interface IModelInfo : IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
| Edit this page View SourceActive
Whether this model is currently active and available for use.
Declaration
bool Active { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Capabilities
The set of capabilities this model supports (e.g. Chat, Streaming, FunctionCalling).
Declaration
ModelCapability[] Capabilities { get; }
Property Value
| Type | Description |
|---|---|
| ModelCapability[] |
Family
The model family this model belongs to (e.g. GPT, Gemini, Imagen).
Declaration
ModelFamily Family { get; }
Property Value
| Type | Description |
|---|---|
| ModelFamily |
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 |
InputModalities
The modalities this model accepts as input (e.g. Text, Image, Audio).
Declaration
Modality[] InputModalities { get; }
Property Value
| Type | Description |
|---|---|
| Modality[] |
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? |
Legacy
Whether this model is considered legacy and may be deprecated in the future.
Declaration
bool Legacy { get; }
Property Value
| Type | Description |
|---|---|
| bool |
OutputModalities
The modalities this model produces as output (e.g. Text, Image, Audio).
Declaration
Modality[] OutputModalities { get; }
Property Value
| Type | Description |
|---|---|
| Modality[] |
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? |
Performance
Relative performance score compared to other models. -1 means not rated.
Declaration
int Performance { get; }
Property Value
| Type | Description |
|---|---|
| int |
Prices
The pricing tiers for using this model.
Declaration
ModelPrice[] Prices { get; }
Property Value
| Type | Description |
|---|---|
| ModelPrice[] |
Speed
Relative speed score compared to other models. -1 means not rated.
Declaration
int Speed { get; }
Property Value
| Type | Description |
|---|---|
| int |
SupportedModes
The connection modes this model supports (e.g. Rest, Streaming, WebSocket).
Declaration
ConnectionMode[] SupportedModes { get; }
Property Value
| Type | Description |
|---|---|
| ConnectionMode[] |
Type
The primary type of the model (e.g. Language, ImageGeneration, TextToSpeech).
Declaration
ModelType Type { get; }
Property Value
| Type | Description |
|---|---|
| ModelType |