Search Results for

    Show / Hide Table of Contents

    Class OpenRouterModelInfo

    Inheritance
    object
    OpenRouterModelInfo
    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.OpenRouter
    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
    Type Description
    Api
    | Edit this page View Source

    Architecture

    Required. The architecture details of the model.

    Declaration
    [JsonProperty("architecture")]
    public ModelArchitecture Architecture { get; set; }
    Property Value
    Type Description
    ModelArchitecture
    | Edit this page View Source

    ContextLength

    Required. The context length of the model.

    Declaration
    [JsonProperty("context_length")]
    public int ContextLength { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    CreatedAt

    Required. The creation time of the model.

    Declaration
    [JsonProperty("created")]
    public UnixTime? CreatedAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    Description

    Required. The description of the model.

    Declaration
    [JsonProperty("description")]
    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, Imagen).

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

    Id

    Required. The ID of the model.

    Declaration
    [JsonProperty("id")]
    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
    [JsonIgnore]
    public 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
    [JsonIgnore]
    public int? InputTokenLimit { get; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Name

    Required. The name of the model.

    Declaration
    [JsonProperty("name")]
    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
    [JsonIgnore]
    public 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
    [JsonIgnore]
    public int? OutputTokenLimit { get; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    OwnedBy

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

    PerRequestLimits

    Optional. IDK what this is for, but it seems to be a dictionary of string to object. Official doc says nothing about it. (https://openrouter.ai/docs/api-reference/list-available-models)

    Declaration
    [JsonProperty("per_request_limits")]
    public Dictionary<string, object> PerRequestLimits { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>
    | Edit this page View Source

    Prices

    The pricing tiers for using this model.

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

    Pricing

    Required. The pricing details of the model.

    Declaration
    [JsonProperty("pricing")]
    public ModelPricing Pricing { get; set; }
    Property Value
    Type Description
    ModelPricing
    | Edit this page View Source

    TopProvider

    Required. The top provider details.

    Declaration
    [JsonProperty("top_provider")]
    public TopProvider TopProvider { get; set; }
    Property Value
    Type Description
    TopProvider

    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