Search Results for

    Show / Hide Table of Contents

    Class DeepSeekUserBalance

    Inheritance
    object
    DeepSeekUserBalance
    Implements
    ICreditInfo
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.DeepSeek
    Assembly: Glitch9.AIDevKit.Provider.DeepSeek.dll
    Syntax
    public sealed class DeepSeekUserBalance : ICreditInfo

    Properties

    | Edit this page View Source

    BalanceInfos

    Required. The list of balance information.

    Declaration
    [JsonProperty("balance_infos")]
    public DeepSeekUserBalance.BalanceInfo[] BalanceInfos { get; set; }
    Property Value
    Type Description
    BalanceInfo[]
    | Edit this page View Source

    IsAvailable

    Required. Whether the user's balance is sufficient for API calls.

    Declaration
    [JsonProperty("is_available")]
    public bool IsAvailable { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    TotalCredits

    DeepSeek API only exposes remaining balance per currency. This returns the sum of total_balance across all entries (as double).

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

    UsedCredits

    DeepSeek does not provide "used credits" via the balance API. We only know current remaining balance, not historical usage. Use 0 (or treat this as "unknown") for now.

    Declaration
    [JsonIgnore]
    public double UsedCredits { get; }
    Property Value
    Type Description
    double

    Implements

    ICreditInfo

    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)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation