Class OpenRouterModelInfo
Inheritance
OpenRouterModelInfo
Assembly: Glitch9.AIDevKit.Provider.OpenRouter.dll
Syntax
public sealed class OpenRouterModelInfo : IModelInfo, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
|
Edit this page
View Source
Api
Declaration
[JsonIgnore]
public Api Api { get; }
Property Value
|
Edit this page
View Source
Architecture
Required. The architecture details of the model.
Declaration
[JsonProperty("architecture")]
public ModelArchitecture Architecture { get; set; }
Property Value
|
Edit this page
View Source
ContextLength
Required. The context length of the model.
Declaration
[JsonProperty("context_length")]
public int ContextLength { get; set; }
Property Value
|
Edit this page
View Source
CreatedAt
Required. The creation time of the model.
Declaration
[JsonProperty("created")]
public UnixTime? CreatedAt { get; set; }
Property Value
|
Edit this page
View Source
Description
Required. The description of the model.
Declaration
[JsonProperty("description")]
public string Description { get; set; }
Property Value
|
Edit this page
View Source
Family
The model family this model belongs to (e.g. GPT, Gemini, Imagen).
Declaration
[JsonIgnore]
public ModelFamily Family { get; }
Property Value
|
Edit this page
View Source
Id
Required. The ID of the model.
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
The modalities this model accepts as input (e.g. Text, Image, Audio).
Declaration
[JsonIgnore]
public Modality[] InputModalities { get; }
Property Value
|
Edit this page
View Source
Maximum number of tokens this model accepts as input.
Also known as: Max Prompt Tokens, Max Context Tokens, Context Size, Context Length.
Declaration
[JsonIgnore]
public int? InputTokenLimit { get; }
Property Value
|
Edit this page
View Source
Name
Required. The name of the model.
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
|
Edit this page
View Source
OutputModalities
The modalities this model produces as output (e.g. Text, Image, Audio).
Declaration
[JsonIgnore]
public Modality[] OutputModalities { get; }
Property Value
|
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
[JsonIgnore]
public int? OutputTokenLimit { get; }
Property Value
|
Edit this page
View Source
OwnedBy
Declaration
[JsonIgnore]
public string OwnedBy { get; }
Property Value
|
Edit this page
View Source
PerRequestLimits
Declaration
[JsonProperty("per_request_limits")]
public Dictionary<string, object> PerRequestLimits { get; set; }
Property Value
|
Edit this page
View Source
Prices
The pricing tiers for using this model.
Declaration
[JsonIgnore]
public ModelPrice[] Prices { get; }
Property Value
|
Edit this page
View Source
Pricing
Required. The pricing details of the model.
Declaration
[JsonProperty("pricing")]
public ModelPricing Pricing { get; set; }
Property Value
|
Edit this page
View Source
TopProvider
Required. The top provider details.
Declaration
[JsonProperty("top_provider")]
public TopProvider TopProvider { get; set; }
Property Value
Implements
Extension Methods