Class ModelInfo
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class ModelInfo : IModelInfo, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
| Edit this page View SourceApi
The AI provider this model belongs to.
Declaration
public Api Api { get; set; }
Property Value
| Type | Description |
|---|---|
| Api |
Capabilities
The set of capabilities this model supports (e.g. Chat, Streaming, FunctionCalling).
Declaration
public ModelCapability[] Capabilities { get; set; }
Property Value
| Type | Description |
|---|---|
| ModelCapability[] |
CreatedAt
The UTC timestamp when this model was created.
Declaration
public UnixTime? CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| UnixTime? |
Description
A short description of the model and its intended use.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Family
The model family this model belongs to (e.g. GPT, Gemini).
Declaration
public ModelFamily Family { get; set; }
Property Value
| Type | Description |
|---|---|
| ModelFamily |
Id
The unique identifier of the model (e.g. "gpt-4o").
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
InputModalities
The modalities this model accepts as input (e.g. Text, Image, Audio).
Declaration
public Modality[] InputModalities { get; set; }
Property Value
| Type | Description |
|---|---|
| Modality[] |
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? |
Name
The human-readable display name of the model.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OutputModalities
The modalities this model produces as output (e.g. Text, Image, Audio).
Declaration
public Modality[] OutputModalities { get; set; }
Property Value
| Type | Description |
|---|---|
| Modality[] |
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? |
OwnedBy
The organization or user that owns this model.
Declaration
public string OwnedBy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Performance
Relative performance score. -1 means not rated.
Declaration
public int Performance { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Prices
The pricing tiers for using this model.
Declaration
public ModelPrice[] Prices { get; set; }
Property Value
| Type | Description |
|---|---|
| ModelPrice[] |
Provider
The provider name string (e.g. "openai", "google").
Declaration
public string Provider { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Speed
Relative speed score. -1 means not rated.
Declaration
public int Speed { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SupportedModes
The connection modes this model supports (e.g. Rest, Streaming, WebSocket).
Declaration
public ConnectionMode[] SupportedModes { get; set; }
Property Value
| Type | Description |
|---|---|
| ConnectionMode[] |
Type
The primary type of the model (e.g. Language, ImageGeneration, TextToSpeech).
Declaration
public ModelType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ModelType |
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[] |